Documentation
¶
Index ¶
- type AccountGetReq
- type AccountGetResp
- type AddressGetReq
- type AddressGetResp
- type Balances
- type ListenKeyValue
- type Parameters
- type RecordCashGetReq
- type RecordCashGetResp
- type RecordCashStatus
- type RecordChargeGetReq
- type RecordChargeGetResp
- type RecordChargeStatus
- type TransferReq
- type TransferResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountGetReq ¶
type AccountGetReq struct {
RecvWindow int64 `json:"recvWindow"`
Timestamp int64 `json:"timestamp"`
}
func (*AccountGetReq) ToString ¶
func (a *AccountGetReq) ToString() string
type AccountGetResp ¶
type AccountGetResp struct {
MakerCommission int `json:"makerCommission"`
TakerCommission int `json:"takerCommission"`
BuyerCommission int `json:"buyerCommission"`
SellerCommission int `json:"sellerCommission"`
CanTrade bool `json:"canTrade"`
CanWithdraw bool `json:"canWithdraw"`
CanDeposit bool `json:"canDeposit"`
UpdateTime int `json:"updateTime"`
AccountType string `json:"accountType"`
Balances []Balances `json:"balances"`
Permissions []string `json:"permissions"`
}
type AddressGetReq ¶
type AddressGetReq struct {
Coin string `json:"coin"`
Network string `json:"network"`
RecvWindow int64 `json:"recvWindow"`
Timestamp int64 `json:"timestamp"`
}
func (*AddressGetReq) ToString ¶
func (a *AddressGetReq) ToString() string
type AddressGetResp ¶
type ListenKeyValue ¶
type ListenKeyValue struct {
ListenKey string `json:"listenKey"`
}
type Parameters ¶
type Parameters struct {
RecvWindow int64 `json:"recvWindow"` // 时间差
Timestamp int64 `json:"timestamp"` // 时间戳
}
func (*Parameters) ToString ¶
func (a *Parameters) ToString() string
type RecordCashGetReq ¶
type RecordCashGetReq struct {
Coin string `json:"coin"`
WithdrawOrderId string `json:"withdrawOrderId"`
Status RecordCashStatus `json:"status"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
Offset int `json:"offset"`
Limit int `json:"limit"`
RecvWindow int64 `json:"recvWindow"`
Timestamp int64 `json:"timestamp"`
}
func (RecordCashGetReq) ToString ¶
func (r RecordCashGetReq) ToString() string
type RecordCashGetResp ¶
type RecordCashGetResp struct {
Address string `json:"address"`
Amount string `json:"amount"` // 提现转出金额
ApplyTime string `json:"applyTime"` // UTC 时间
Coin string `json:"coin"`
ID string `json:"id"` // 该笔提现在币安的id
WithdrawOrderID string `json:"withdrawOrderId"` // 自定义ID, 如果没有则不返回该字段
Network string `json:"network"`
TransferType int `json:"transferType"` // 1: 站内转账, 0: 站外转账
Status int `json:"status"`
TransactionFee string `json:"transactionFee"` // 手续费
ConfirmNo int `json:"confirmNo"` // 提现确认数
TxID string `json:"txId"` // 提现交易id
}
type RecordCashStatus ¶
type RecordCashStatus int
const ( RecordCashStatus_SendEmail RecordCashStatus = 0 // 已发送确认Email RecordCashStatus_Cancel RecordCashStatus = 1 // 已被用户取消 RecordCashStatus_Waiting RecordCashStatus = 2 // 等待确认 RecordCashStatus_Refuse RecordCashStatus = 3 // 被拒绝 RecordCashStatus_Processing RecordCashStatus = 4 // 处理中 RecordCashStatus_Failed RecordCashStatus = 5 // 提现交易失败 RecordCashStatus_Success RecordCashStatus = 6 // 提现完成 )
type RecordChargeGetReq ¶
type RecordChargeGetReq struct {
Coin string `json:"coin"`
Status RecordChargeStatus `json:"status"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
Offset int `json:"offset"`
Limit int `json:"limit"`
RecvWindow int64 `json:"recvWindow"`
Timestamp int64 `json:"timestamp"`
}
func (RecordChargeGetReq) ToString ¶
func (r RecordChargeGetReq) ToString() string
type RecordChargeGetResp ¶
type RecordChargeGetResp struct {
Amount string `json:"amount"`
Coin string `json:"coin"`
Network string `json:"network"`
Status int `json:"status"`
Address string `json:"address"`
AddressTag string `json:"addressTag"`
TxID string `json:"txId"`
InsertTime int64 `json:"insertTime"`
TransferType int `json:"transferType"`
ConfirmTimes string `json:"confirmTimes"`
UnlockConfirm int `json:"unlockConfirm"` // 解锁需要的网络确认次数
WalletType int `json:"walletType"`
}
type RecordChargeStatus ¶
type RecordChargeStatus int
const ( RecordStatus_Pending RecordChargeStatus = 0 // pending RecordStatus_Credited RecordChargeStatus = 6 // 质押中,无法提取 RecordStatus_Success RecordChargeStatus = 1 // 成功 )
type TransferReq ¶
type TransferReq struct {
Coin string `json:"coin"`
WithdrawOrderId string `json:"withdrawOrderId"` // 自定义提币id
Network string `json:"network"` // 提币网络
Address string `json:"address"` // 提币地址
AddressTag string `json:"addressTag"` // 某些币种例如 XRP,XMR 允许填写次级地址标签
Amount string `json:"amount"` // 提币金额
TransactionFeeFlag bool `json:"transactionFeeFlag"` // 当站内转账时免手续费, true: 手续费归资金转入方; false: 手续费归资金转出方; . 默认 false.
Name string `json:"name"` // 地址的备注,填写该参数后会加入该币种的提现地址簿。地址簿上限为20,超出后会造成提现失败。地址中的空格需要encode成%20
WalletType int `json:"walletType"` // 表示出金使用的钱包,0为现货钱包,1为资金钱包,默认为现货钱包
RecvWindow int64 `json:"recvWindow"`
Timestamp int64 `json:"timestamp"`
}
func (*TransferReq) ToString ¶
func (a *TransferReq) ToString() string
type TransferResp ¶
type TransferResp struct {
ID string `json:"id"` // 订单号
}
Click to show internal directories.
Click to hide internal directories.