Skip to content

Commit

Permalink
Fixed some typos in binance types and updated binance trading symbols…
Browse files Browse the repository at this point in the history
… in config example (thrasher-corp#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
  • Loading branch information
marcofranssen authored and thrasher- committed Jul 10, 2018
1 parent dd757a7 commit f920298
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ tongxiaofeng | https://github.com/tongxiaofeng
idealhack | https://github.com/idealhack
askew- | https://github.com/askew-
snipesjr | https://github.com/snipesjr

marcofranssen | https://github.com/marcofranssen
6 changes: 3 additions & 3 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@
"AuthenticatedAPISupport": false,
"APIKey": "Key",
"APISecret": "Secret",
"AvailablePairs": "ETH-BTC,LTC-BTC,BNB-BTC,NEO-BTC,QTUM-ETH,EOS-ETH,SNT-ETH,BNT-ETH,BCC-BTC,GAS-BTC,BNB-ETH,BTC-USDT,ETH-USDT,HSR-BTC,OAX-ETH,DNT-ETH,MCO-ETH,ICN-ETH,MCO-BTC,WTC-BTC,WTC-ETH,LRC-BTC,LRC-ETH,QTUM-BTC,YOYO-BTC,OMG-BTC,OMG-ETH,ZRX-BTC,ZRX-ETH,STRAT-BTC,STRAT-ETH,SNGLS-BTC,SNGLS-ETH,BQX-BTC,BQX-ETH,KNC-BTC,KNC-ETH,FUN-BTC,FUN-ETH,SNM-BTC,SNM-ETH,NEO-ETH,IOTA-BTC,IOTA-ETH,LINK-BTC,LINK-ETH,XVG-BTC,XVG-ETH,SALT-BTC,SALT-ETH,MDA-BTC,MDA-ETH,MTL-BTC,MTL-ETH,SUB-BTC,SUB-ETH,EOS-BTC,SNT-BTC,ETC-ETH,ETC-BTC,MTH-BTC,MTH-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ETA-ETH,THETA-BNB,XRP-BNB,TUSD-USDT,IOTA-USDT,XLM-USDT,IOTX-BTC,IOTX-ETH,QKC-BTC,QKC-ETH,AGI-BTC,AGI-ETH,AGI-BNB,NXS-BTC,NXS-ETH,NXS-BNB,ENJ-BNB,DATA-BTC,DATA-ETH,ONT-USDT,TRX-USDT,ETC-USDT,ETC-BNB,ICX-USDT,SC-BTC,SC-ETH,SC-BNB,NPXS-BTC,NPXS-ETH,VEN-USDT,KEY-BTC,KEY-ETH,NAS-BTC,NAS-ETH,NAS-BNB,MFT-BTC,MFT-ETH,MFT-BNB,DENT-BTC,DENT-ETH",
"EnabledPairs": "BTC-USDT,ETH-USDT,BCC-USDT,LTC-USDT,ADA-USDT,XRP-USDT,VEN-USDT",
"BaseCurrencies": "USD",
"AssetTypes": "SPOT",
"SupportsAutoPairUpdates": true,
Expand Down Expand Up @@ -766,4 +766,4 @@
}
}
]
}
}
25 changes: 13 additions & 12 deletions exchanges/binance/binance_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package binance

// Response holds basic binance api response data
type Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
Expand Down Expand Up @@ -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"`
}

0 comments on commit f920298

Please sign in to comment.