mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
max: drop unused function
This commit is contained in:
parent
f6865f664c
commit
ed51eff242
|
@ -247,29 +247,6 @@ func toGlobalTradeV3(t v3.Trade) ([]types.Trade, error) {
|
|||
return trades, nil
|
||||
}
|
||||
|
||||
func toGlobalTradeV2(t max.Trade) (*types.Trade, error) {
|
||||
isMargin := t.WalletType == max.WalletTypeMargin
|
||||
side := toGlobalSideType(t.Side)
|
||||
return &types.Trade{
|
||||
ID: t.ID,
|
||||
OrderID: t.OrderID,
|
||||
Price: t.Price,
|
||||
Symbol: toGlobalSymbol(t.Market),
|
||||
Exchange: types.ExchangeMax,
|
||||
Quantity: t.Volume,
|
||||
Side: side,
|
||||
IsBuyer: t.IsBuyer(),
|
||||
IsMaker: t.IsMaker(),
|
||||
Fee: t.Fee,
|
||||
FeeCurrency: toGlobalCurrency(t.FeeCurrency),
|
||||
QuoteQuantity: t.Funds,
|
||||
Time: types.Time(t.CreatedAt),
|
||||
IsMargin: isMargin,
|
||||
IsIsolated: false,
|
||||
IsFutures: false,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func toGlobalDepositStatus(a max.DepositState) types.DepositStatus {
|
||||
switch a {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user