-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathwithdrawal.go
44 lines (39 loc) · 1.5 KB
/
withdrawal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package bittrex
import (
"github.com/shopspring/decimal"
"time"
)
type Withdrawal struct {
PaymentUuid string `json:"PaymentUuid"`
Currency string `json:"Currency"`
Amount decimal.Decimal `json:"Amount"`
Address string `json:"Address"`
Opened jTime `json:"Opened"`
Authorized bool `json:"Authorized"`
PendingPayment bool `json:"PendingPayment"`
TxCost decimal.Decimal `json:"TxCost"`
TxId string `json:"TxId"`
Canceled bool `json:"Canceled"`
}
type WithdrawalParams struct {
CurrencySymbol string `json:"currencySymbol"`
Quantity string `json:"quantity"`
CryptoAddress string `json:"cryptoAddress"`
CryptoAddressTag string `json:"cryptoAddressTag"`
}
type WithdrawalV3 struct {
ID string `json:"id"`
CurrencySymbol string `json:"currencySymbol"`
Quantity decimal.Decimal `json:"quantity"`
CryptoAddress string `json:"cryptoAddress"`
CryptoAddressTag string `json:"cryptoAddressTag"`
TxCost decimal.Decimal `json:"txCost"`
TxID string `json:"txId"`
Status WithdrawalStatus `json:"status"`
CreatedAt time.Time `json:"createdAt"`
CompletedAt time.Time `json:"completedAt"`
}
type WithdrawalHistoryParams struct {
Status string `url:"status,omitempty"`
CurrencySymbol string `url:"currencySymbol,omitempty"`
}