Skip to content

Commit

Permalink
Release: v1.0.20-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Oct 3, 2021
1 parent 5dad581 commit 4e175aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ Changelog
=========
All notable changes to this project will be documented in this file.

v1.0.20-alpha
------------

### Changed

- Fixed account models json tags

v1.0.19-alpha
------------

Expand Down
10 changes: 5 additions & 5 deletions models/account/account_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ type (
LiabCcy string `json:"liabCcy,omitempty"`
OptVal string `json:"optVal,omitempty"`
Ccy string `json:"ccy"`
PosID okex.JSONFloat64 `json:"posId"`
PosID string `json:"posId"`
TradeID string `json:"tradeId"`
Pos okex.JSONFloat64 `json:"pos"`
AvailPos okex.JSONFloat64 `json:"availPos,omitempty"`
AvgPx okex.JSONFloat64 `json:"avgPx"`
Expand All @@ -62,7 +63,6 @@ type (
Mmr okex.JSONFloat64 `json:"mmr"`
Liab okex.JSONFloat64 `json:"liab,omitempty"`
Interest okex.JSONFloat64 `json:"interest"`
TradeID okex.JSONFloat64 `json:"tradeId"`
NotionalUsd okex.JSONFloat64 `json:"notionalUsd"`
ADL okex.JSONFloat64 `json:"adl"`
Last okex.JSONFloat64 `json:"last"`
Expand Down Expand Up @@ -113,15 +113,15 @@ type (
Ccy string `json:"ccy"`
InstID string `json:"instId"`
Notes string `json:"notes"`
BillID okex.JSONFloat64 `json:"billId"`
BillID string `json:"billId"`
OrdID string `json:"ordId"`
BalChg okex.JSONFloat64 `json:"balChg"`
PosBalChg okex.JSONFloat64 `json:"posBalChg"`
Bal okex.JSONFloat64 `json:"bal"`
PosBal okex.JSONFloat64 `json:"posBal"`
Sz okex.JSONFloat64 `json:"sz"`
Pnl okex.JSONFloat64 `json:"pnl"`
Fee okex.JSONFloat64 `json:"fee"`
OrdID okex.JSONFloat64 `json:"ordId"`
From okex.AccountType `json:"from,string"`
To okex.AccountType `json:"to,string"`
InstType okex.InstrumentType `json:"instType"`
Expand All @@ -135,7 +135,7 @@ type (
LevelTmp string `json:"levelTmp"`
AcctLv string `json:"acctLv"`
AutoLoan bool `json:"autoLoan"`
UID okex.JSONFloat64 `json:"uid"`
UID string `json:"uid"`
GreeksType okex.GreekType `json:"greeksType"`
PosMode okex.PositionType `json:"posMode"`
}
Expand Down

0 comments on commit 4e175aa

Please sign in to comment.