Skip to content

Commit

Permalink
Release: v1.1.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Mar 27, 2023
1 parent b447478 commit 01f09ea
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Changelog
=========
All notable changes to this project will be documented in this file.

v1.1.1-alpha
-------------

### Changed

- Fixed all float64 that were mapped to int64
- Changed destination constants values to start from iota

v1.1.0-alpha
-------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Installation
-----------------

```bash
go get github.com/amir-the-h/[email protected].0-alpha
go get github.com/amir-the-h/[email protected].1-alpha
```

Usage
Expand Down
8 changes: 4 additions & 4 deletions definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ type (
)

const (
NormalServer Destination = iota
AwsServer
DemoServer

RestURL = BaseURL("https://www.okx.com")
PublicWsURL = BaseURL("wss://ws.okx.com:8443/ws/v5/public")
PrivateWsURL = BaseURL("wss://ws.okx.com:8443/ws/v5/private")
Expand All @@ -70,10 +74,6 @@ const (
DemoPublicWsURL = BaseURL("wss://wspap.okx.com:8443/ws/v5/public?brokerId=9999")
DemoPrivateWsURL = BaseURL("wss://wspap.okx.com:8443/ws/v5/private?brokerId=9999")

NormalServer = Destination(iota + 1)
AwsServer = NormalServer + 1
DemoServer = AwsServer + 1

SpotInstrument = InstrumentType("SPOT")
MarginInstrument = InstrumentType("MARGIN")
SwapInstrument = InstrumentType("SWAP")
Expand Down
2 changes: 1 addition & 1 deletion models/funding/funding_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type (
PmtID string `json:"pmtId,omitempty"`
Memo string `json:"memo,omitempty"`
Amt okex.JSONFloat64 `json:"amt"`
Fee okex.JSONInt64 `json:"fee"`
Fee okex.JSONFloat64 `json:"fee"`
WdID okex.JSONInt64 `json:"wdId"`
State okex.WithdrawalState `json:"state,string"`
TS okex.JSONTime `json:"ts"`
Expand Down
14 changes: 7 additions & 7 deletions models/trade/trade_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ type (
FeeCcy string `json:"feeCcy"`
RebateCcy string `json:"rebateCcy"`
Px okex.JSONFloat64 `json:"px"`
Sz okex.JSONInt64 `json:"sz"`
Sz okex.JSONFloat64 `json:"sz"`
Pnl okex.JSONFloat64 `json:"pnl"`
AccFillSz okex.JSONInt64 `json:"accFillSz"`
AccFillSz okex.JSONFloat64 `json:"accFillSz"`
FillPx okex.JSONFloat64 `json:"fillPx"`
FillSz okex.JSONInt64 `json:"fillSz"`
FillSz okex.JSONFloat64 `json:"fillSz"`
FillTime okex.JSONFloat64 `json:"fillTime"`
AvgPx okex.JSONFloat64 `json:"avgPx"`
Lever okex.JSONFloat64 `json:"lever"`
Expand Down Expand Up @@ -107,14 +107,14 @@ type (
PxVar okex.JSONFloat64 `json:"pxVar"`
PxSpread okex.JSONFloat64 `json:"pxSpread"`
PxLimit okex.JSONFloat64 `json:"pxLimit"`
Sz okex.JSONInt64 `json:"sz"`
SzLimit okex.JSONInt64 `json:"szLimit"`
Sz okex.JSONFloat64 `json:"sz"`
SzLimit okex.JSONFloat64 `json:"szLimit"`
ActualSz okex.JSONFloat64 `json:"actualSz"`
ActualPx okex.JSONFloat64 `json:"actualPx"`
Pnl okex.JSONFloat64 `json:"pnl"`
AccFillSz okex.JSONInt64 `json:"accFillSz"`
AccFillSz okex.JSONFloat64 `json:"accFillSz"`
FillPx okex.JSONFloat64 `json:"fillPx"`
FillSz okex.JSONInt64 `json:"fillSz"`
FillSz okex.JSONFloat64 `json:"fillSz"`
FillTime okex.JSONFloat64 `json:"fillTime"`
AvgPx okex.JSONFloat64 `json:"avgPx"`
Lever okex.JSONFloat64 `json:"lever"`
Expand Down

0 comments on commit 01f09ea

Please sign in to comment.