Skip to content

Commit

Permalink
Merge pull request go-numb#41 from ambiguo/master
Browse files Browse the repository at this point in the history
Adding missing fields to market response go-numb#41
  • Loading branch information
go-numb committed Nov 22, 2021
2 parents a01d2ec + f3a6f04 commit 32ef323
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rest/public/markets/market.go
Expand Up @@ -28,6 +28,7 @@ type Market struct {
Bid float64 `json:"bid"`
Price float64 `json:"price"`
PriceIncrement float64 `json:"priceIncrement"`
MinProvideSize float64 `json:"minProvideSize"`

SizeIncrement float64 `json:"sizeIncrement"`
ChangeBod float64 `json:"changeBod"`
Expand All @@ -36,12 +37,15 @@ type Market struct {
QuoteVolume24H float64 `json:"quoteVolume24h"`
VolumeUsd24H float64 `json:"volumeUsd24h"`

Enabled bool `json:"enabled"`
Enabled bool `json:"enabled"`
PostOnly bool `json:"postOnly"`
Restricted bool `json:"postOnly"`
HighLeverageFeeExempt bool `json:"highLeverageFeeExempt"`
}

func (req *RequestForMarkets) Path() string {
if req.ProductCode != "" {
// fmt.Println("/markets/%s", req.ProductCode)
// fmt.Println("/markets/%s", req.ProductCode)
return fmt.Sprintf("/markets/%s", req.ProductCode)
}
return "/markets"
Expand Down

0 comments on commit 32ef323

Please sign in to comment.