Skip to content

Commit

Permalink
Release: v1.0.17-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Oct 2, 2021
1 parent b48e024 commit 06802e6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 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.17-alpha
------------

### Changed

- Fixed api requests json tag issues

v1.0.16-alpha
------------

Expand Down
6 changes: 3 additions & 3 deletions models/account/account_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ type (
To okex.AccountType `json:"to,string"`
InstType okex.InstrumentType `json:"instType"`
MgnMode okex.MarginMode `json:"MgnMode"`
Type okex.BillType `json:"type"`
SubType okex.BillSubType `json:"subType"`
Type okex.BillType `json:"type,string"`
SubType okex.BillSubType `json:"subType,string"`
TS okex.JSONTime `json:"ts"`
}
Config struct {
Expand Down Expand Up @@ -179,7 +179,7 @@ type (
Maker okex.JSONFloat64 `json:"maker"`
Delivery okex.JSONFloat64 `json:"delivery,omitempty"`
Exercise okex.JSONFloat64 `json:"exercise,omitempty"`
Category okex.FeeCategory `json:"category"`
Category okex.FeeCategory `json:"category,string"`
InstType okex.InstrumentType `json:"instType"`
TS okex.JSONTime `json:"ts"`
}
Expand Down
2 changes: 1 addition & 1 deletion models/subaccount/subaccount_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type (
SubAcct string `json:"subAcct,omitempty"`
Ccy string `json:"ccy,omitempty"`
BillId okex.JSONInt64 `json:"billId,omitempty"`
Type okex.BillType `json:"type,string,omitempty"`
Type okex.BillType `json:"type,string,omitempty,string"`
TS okex.JSONTime `json:"ts,omitempty"`
}
Transfer struct {
Expand Down
6 changes: 3 additions & 3 deletions requests/rest/account/account_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type (
InstType okex.InstrumentType `json:"instType,omitempty"`
MgnMode okex.MarginMode `json:"mgnMode,omitempty"`
CtType okex.ContractType `json:"ctType,omitempty"`
Type okex.BillType `json:"type,omitempty"`
SubType okex.BillSubType `json:"subType,omitempty"`
Type okex.BillType `json:"type,omitempty,string"`
SubType okex.BillSubType `json:"subType,omitempty,string"`
}
SetPositionMode struct {
PositionMode okex.PositionType `json:"positionMode"`
Expand Down Expand Up @@ -65,7 +65,7 @@ type (
GetFeeRates struct {
InstID string `json:"instId,omitempty"`
Uly string `json:"uly,omitempty"`
Category okex.FeeCategory `json:"category,omitempty"`
Category okex.FeeCategory `json:"category,omitempty,string"`
InstType okex.InstrumentType `json:"instType"`
}
GetInterestAccrued struct {
Expand Down
2 changes: 1 addition & 1 deletion requests/rest/subaccount/subaccount_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type (
After int64 `json:"after,omitempty,string"`
Before int64 `json:"before,omitempty,string"`
Limit int64 `json:"limit,omitempty,string"`
Type okex.TransferType `json:"type,omitempty"`
Type okex.TransferType `json:"type,omitempty,string"`
}
ManageTransfers struct {
Ccy string `json:"ccy"`
Expand Down

0 comments on commit 06802e6

Please sign in to comment.