Fixed some typos in binance types and updated binance trading symbols in config example (#148)

* Added marcofranssen to contributors

* Added missing doc for binance type Response

* Fixed some typos in binance_types and aligned the doc blocks

* Updated binance trading pairs in config_example.json

* Enable all USDT trading pairs in example config for binance exchange
This commit is contained in:
Marco Franssen
2018-07-10 03:48:31 +02:00
committed by Adrian Gallagher
parent dd757a738e
commit f920298d1a
3 changed files with 17 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
package binance
// Response holds basic binance api response data
type Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
@@ -208,22 +209,22 @@ type QueryOrderData struct {
IsWorking bool `json:"isWorking"`
}
// QueryOrderData holds query order data
type Blance struct {
// Balance holds query order data
type Balance struct {
Asset string `json:"asset"`
Free string `json:"free"`
Locked string `json:"locked"`
}
// AccountInfo holds the account data
// Account holds the account data
type Account 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 int64 `json:"updateTime"`
Blances []Blance `json:"balances"`
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 int64 `json:"updateTime"`
Balances []Balance `json:"balances"`
}