From 5b3e7c59ef910811d02afcee8256fa662f143152 Mon Sep 17 00:00:00 2001 From: Nick <148735107+nick-bisonai@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:46:50 +0900 Subject: [PATCH] fix: fix orangex formatting (#2343) --- .../providers/orangex/orangex.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/node/pkg/websocketfetcher/providers/orangex/orangex.go b/node/pkg/websocketfetcher/providers/orangex/orangex.go index c62cb06f9..1514ac617 100644 --- a/node/pkg/websocketfetcher/providers/orangex/orangex.go +++ b/node/pkg/websocketfetcher/providers/orangex/orangex.go @@ -37,14 +37,14 @@ type TickerResponse struct { Turnover string `json:"turnover"` High string `json:"high"` } `json:"stats"` - State string `json:"state"` - LastPrice string `json:"last_price"` - InstrumentName string `json:"instrument_name"` - MarkPrice string `json:"mark_price"` - BestBidPrice string `json:"best_bid_price"` - BestBidAmount string `json:"best_bid_amount"` - BestAskPrice string `json:"best_ask_price"` - BestAskAmount string `json:"best_ask_amount"` + State string `json:"state"` + LastPrice string `json:"last_price"` + InstrumentName string `json:"instrument_name"` + MarkPrice string `json:"mark_price"` + BestBidPrice float64 `json:"best_bid_price"` + BestBidAmount float64 `json:"best_bid_amount"` + BestAskPrice float64 `json:"best_ask_price"` + BestAskAmount float64 `json:"best_ask_amount"` } `json:"data"` Channel string `json:"channel"` } `json:"params"`