add max exchange

This commit is contained in:
c9s 2020-08-31 12:32:51 +08:00
parent 31be04cc74
commit dd55857423
3 changed files with 20 additions and 11 deletions

View File

@ -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
}

View File

@ -0,0 +1,9 @@
package max
type Exchange struct {
}
func NewExchange(key, secret string) *Exchange {
return &Exchange{
}
}

View File

@ -0,0 +1 @@
package max