Skip to content

Commit

Permalink
Release: v1.0.7-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-the-h committed Sep 29, 2021
1 parent 110cd70 commit c618652
Show file tree
Hide file tree
Showing 15 changed files with 568 additions and 560 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.0.7-alpha
------------

### Changed

- Fixed JSON tags on `models`
- Changed `*Id` into `ID` everywhere

v1.0.6-alpha
------------

Expand Down
30 changes: 15 additions & 15 deletions events/public/public_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ package public
import (
"github.com/amir-the-h/okex/events"
"github.com/amir-the-h/okex/models/market"
"github.com/amir-the-h/okex/models/public_data"
"github.com/amir-the-h/okex/models/publicdata"
)

type (
Instruments struct {
Arg *events.Argument `json:"arg"`
Instruments []*public_data.Instrument `json:"data"`
Arg *events.Argument `json:"arg"`
Instruments []*publicdata.Instrument `json:"data"`
}
Tickers struct {
Arg *events.Argument `json:"arg"`
Tickers []*market.Ticker `json:"data"`
}
OpenInterest struct {
Arg *events.Argument `json:"arg"`
OpenInterests []*public_data.OpenInterest `json:"data"`
Arg *events.Argument `json:"arg"`
OpenInterests []*publicdata.OpenInterest `json:"data"`
}
Candlesticks struct {
Arg *events.Argument `json:"arg"`
Expand All @@ -28,32 +28,32 @@ type (
Trades []*market.Trade `json:"data"`
}
EstimatedDeliveryExercisePrice struct {
Arg *events.Argument `json:"arg"`
EstimatedDeliveryExercisePrices []*public_data.EstimatedDeliveryExercisePrice `json:"data"`
Arg *events.Argument `json:"arg"`
EstimatedDeliveryExercisePrices []*publicdata.EstimatedDeliveryExercisePrice `json:"data"`
}
MarkPrice struct {
Arg *events.Argument `json:"arg"`
Prices []*public_data.MarkPrice `json:"data"`
Arg *events.Argument `json:"arg"`
Prices []*publicdata.MarkPrice `json:"data"`
}
MarkPriceCandlesticks struct {
Arg *events.Argument `json:"arg"`
Prices []*market.IndexCandle `json:"data"`
}
PriceLimit struct {
Arg *events.Argument `json:"arg"`
Limit []*public_data.LimitPrice `json:"data"`
Arg *events.Argument `json:"arg"`
Limit []*publicdata.LimitPrice `json:"data"`
}
OrderBook struct {
Arg *events.Argument `json:"arg"`
Books []*market.OrderBookWs `json:"data"`
}
OPTIONSummary struct {
Arg *events.Argument `json:"arg"`
Options []*public_data.OptionMarketData `json:"data"`
Arg *events.Argument `json:"arg"`
Options []*publicdata.OptionMarketData `json:"data"`
}
FundingRate struct {
Arg *events.Argument `json:"arg"`
Rates []*public_data.FundingRate `json:"data"`
Arg *events.Argument `json:"arg"`
Rates []*publicdata.FundingRate `json:"data"`
}
IndexCandlesticks struct {
Arg *events.Argument `json:"arg"`
Expand Down
Loading

0 comments on commit c618652

Please sign in to comment.