Skip to content

Commit

Permalink
Release: v1.0.21-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Oct 8, 2021
1 parent 4e175aa commit 84f69ab
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 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.21-alpha
------------

### Changed

- Fixed public data models json tags

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

Expand Down
32 changes: 16 additions & 16 deletions models/publicdata/publicdata_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ type (
LotSz okex.JSONFloat64 `json:"lotSz,omitempty"`
MinSz okex.JSONFloat64 `json:"minSz,omitempty"`
Lever okex.JSONFloat64 `json:"lever"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
Category okex.FeeCategory `json:"category,string"`
OptType okex.OptionType `json:"optType,string,omitempty"`
OptType okex.OptionType `json:"optType,omitempty"`
ListTime okex.JSONTime `json:"listTime"`
ExpTime okex.JSONTime `json:"expTime,omitempty"`
CtType okex.ContractType `json:"ctType,string,omitempty"`
Alias okex.AliasType `json:"alias,string,omitempty"`
State okex.InstrumentState `json:"state,string"`
CtType okex.ContractType `json:"ctType,omitempty"`
Alias okex.AliasType `json:"alias,omitempty"`
State okex.InstrumentState `json:"state"`
}
DeliveryExerciseHistory struct {
Details []*DeliveryExerciseHistoryDetails `json:"details"`
Expand All @@ -35,40 +35,40 @@ type (
DeliveryExerciseHistoryDetails struct {
InstID string `json:"instId"`
Px okex.JSONFloat64 `json:"px"`
Type okex.DeliveryExerciseType `json:"type,string"`
Type okex.DeliveryExerciseType `json:"type"`
}
OpenInterest struct {
InstID string `json:"instId"`
Oi okex.JSONFloat64 `json:"oi"`
OiCcy okex.JSONFloat64 `json:"oiCcy"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
TS okex.JSONTime `json:"ts"`
}
FundingRate struct {
InstID string `json:"instId"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
FundingRate okex.JSONFloat64 `json:"fundingRate"`
NextFundingRate okex.JSONFloat64 `json:"NextFundingRate"`
FundingTime okex.JSONTime `json:"fundingTime"`
NextFundingTime okex.JSONTime `json:"nextFundingTime"`
}
LimitPrice struct {
InstID string `json:"instId"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
BuyLmt okex.JSONFloat64 `json:"buyLmt"`
SellLmt okex.JSONFloat64 `json:"sellLmt"`
TS okex.JSONTime `json:"ts"`
}
EstimatedDeliveryExercisePrice struct {
InstID string `json:"instId"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
SettlePx okex.JSONFloat64 `json:"settlePx"`
TS okex.JSONTime `json:"ts"`
}
OptionMarketData struct {
InstID string `json:"instId"`
Uly string `json:"uly"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
Delta okex.JSONFloat64 `json:"delta"`
Gamma okex.JSONFloat64 `json:"gamma"`
Vega okex.JSONFloat64 `json:"vega"`
Expand Down Expand Up @@ -101,29 +101,29 @@ type (
LiquidationOrder struct {
InstID string `json:"instId"`
Uly string `json:"uly,omitempty"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
TotalLoss okex.JSONFloat64 `json:"totalLoss"`
Details []*LiquidationOrderDetail `json:"details"`
}
LiquidationOrderDetail struct {
Ccy string `json:"ccy,omitempty"`
Side okex.OrderSide `json:"side,string"`
OosSide okex.PositionSide `json:"posSide,string"`
Side okex.OrderSide `json:"side"`
OosSide okex.PositionSide `json:"posSide"`
BkPx okex.JSONFloat64 `json:"bkPx"`
Sz okex.JSONFloat64 `json:"sz"`
BkLoss okex.JSONFloat64 `json:"bkLoss"`
TS okex.JSONTime `json:"ts"`
}
MarkPrice struct {
InstID string `json:"instId"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
MarkPx okex.JSONFloat64 `json:"markPx"`
TS okex.JSONTime `json:"ts"`
}
PositionTier struct {
InstID string `json:"instId"`
Uly string `json:"uly,omitempty"`
InstType okex.InstrumentType `json:"instType,string"`
InstType okex.InstrumentType `json:"instType"`
Tier okex.JSONInt64 `json:"tier"`
MinSz okex.JSONFloat64 `json:"minSz"`
MaxSz okex.JSONFloat64 `json:"maxSz"`
Expand Down

0 comments on commit 84f69ab

Please sign in to comment.