Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json tag 't' used twice in same structure #7

Open
gpmn opened this issue Jul 17, 2019 · 1 comment
Open

json tag 't' used twice in same structure #7

gpmn opened this issue Jul 17, 2019 · 1 comment

Comments

@gpmn
Copy link

gpmn commented Jul 17, 2019

TakerCommision int64 `json:"t"`

tag 't' used twice in same structure.

./service_websocket.go:344: struct field TakerCommision repeats json tag "t" also at ./service_websocket.go:342

according to https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream_CN.md

			rawAccount := struct {
				Type string  `json:"e"`
				Time float64 `json:"E"`

// remove this -> //OpenTime float64 json:"t"
MakerCommision int64 json:"m"
TakerCommision int64 json:"t"
BuyerCommision int64 json:"b"
SellerCommision int64 json:"s"
CanTrade bool json:"T"
CanWithdraw bool json:"W"
CanDeposit bool json:"D"
Uptime float64 json:"u" // <------------ add this
Balances []struct {

@filinvadim
Copy link

I support this repo here: https://github.com/filinvadim/go-binance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants