mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
remove unused ConvertTrades
This commit is contained in:
parent
1c1fbb1633
commit
ce6fd387be
|
@ -583,20 +583,6 @@ func toGlobalFuturesOrderStatus(orderStatus futures.OrderStatusType) types.Order
|
||||||
return types.OrderStatus(orderStatus)
|
return types.OrderStatus(orderStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConvertTrades converts the binance v3 trade into the global trade type
|
|
||||||
func ConvertTrades(remoteTrades []*binance.TradeV3) (trades []types.Trade, err error) {
|
|
||||||
for _, t := range remoteTrades {
|
|
||||||
trade, err := toGlobalTrade(*t, false)
|
|
||||||
if err != nil {
|
|
||||||
return nil, errors.Wrapf(err, "binance v3 trade parse error, trade: %+v", *t)
|
|
||||||
}
|
|
||||||
|
|
||||||
trades = append(trades, *trade)
|
|
||||||
}
|
|
||||||
|
|
||||||
return trades, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func convertSubscription(s types.Subscription) string {
|
func convertSubscription(s types.Subscription) string {
|
||||||
// binance uses lower case symbol name,
|
// binance uses lower case symbol name,
|
||||||
// for kline, it's "<symbol>@kline_<interval>"
|
// for kline, it's "<symbol>@kline_<interval>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user