mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add max exchange
This commit is contained in:
parent
31be04cc74
commit
dd55857423
|
@ -50,7 +50,7 @@ type Withdraw struct {
|
|||
Amount float64 `json:"amount"`
|
||||
Address string `json:"address"`
|
||||
AddressTag string `json:"addressTag"`
|
||||
Status string `json:"status"`
|
||||
Status string `json:"status"`
|
||||
|
||||
TransactionID string `json:"txId"`
|
||||
TransactionFee float64 `json:"transactionFee"`
|
||||
|
@ -107,16 +107,16 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since
|
|||
|
||||
txIDs[d.TxID] = struct{}{}
|
||||
allWithdraws = append(allWithdraws, Withdraw{
|
||||
ApplyTime: time.Unix(0, d.ApplyTime*int64(time.Millisecond)),
|
||||
Asset: d.Asset,
|
||||
Amount: d.Amount,
|
||||
Address: d.Address,
|
||||
AddressTag: d.AddressTag,
|
||||
TransactionID: d.TxID,
|
||||
TransactionFee: d.TransactionFee,
|
||||
ApplyTime: time.Unix(0, d.ApplyTime*int64(time.Millisecond)),
|
||||
Asset: d.Asset,
|
||||
Amount: d.Amount,
|
||||
Address: d.Address,
|
||||
AddressTag: d.AddressTag,
|
||||
TransactionID: d.TxID,
|
||||
TransactionFee: d.TransactionFee,
|
||||
WithdrawOrderID: d.WithdrawOrderID,
|
||||
Network: d.Network,
|
||||
Status: status,
|
||||
Network: d.Network,
|
||||
Status: status,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -493,4 +493,3 @@ func (e *Exchange) BatchQueryKLineWindows(ctx context.Context, symbol string, in
|
|||
|
||||
return klineWindows, nil
|
||||
}
|
||||
|
||||
|
|
9
bbgo/exchange/max/exchange.go
Normal file
9
bbgo/exchange/max/exchange.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package max
|
||||
|
||||
type Exchange struct {
|
||||
}
|
||||
|
||||
func NewExchange(key, secret string) *Exchange {
|
||||
return &Exchange{
|
||||
}
|
||||
}
|
1
bbgo/exchange/max/stream.go
Normal file
1
bbgo/exchange/max/stream.go
Normal file
|
@ -0,0 +1 @@
|
|||
package max
|
Loading…
Reference in New Issue
Block a user