-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/exchange: add tests for query tickers
- Loading branch information
1 parent
8814323
commit 76b077d
Showing
4 changed files
with
217 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
pkg/exchange/bitget/bitgetapi/v2/testdata/get_ticker_request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"code":"00000", | ||
"msg":"success", | ||
"requestTime":1709626632870, | ||
"data":[ | ||
{ | ||
"open":"64654.54", | ||
"symbol":"BTCUSDT", | ||
"high24h":"68686.93", | ||
"low24h":"64583.42", | ||
"lastPr":"66554.03", | ||
"quoteVolume":"1963568540.741927", | ||
"baseVolume":"29439.351448", | ||
"usdtVolume":"1963568540.74192678", | ||
"ts":"1709626631127", | ||
"bidPr":"66554", | ||
"askPr":"66554.07", | ||
"bidSz":"0.000237", | ||
"askSz":"0.08228", | ||
"openUtc":"68245.32", | ||
"changeUtc24h":"-0.02478", | ||
"change24h":"0.00153" | ||
} | ||
] | ||
} |
43 changes: 43 additions & 0 deletions
43
pkg/exchange/bitget/bitgetapi/v2/testdata/get_tickers_request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"code":"00000", | ||
"msg":"success", | ||
"requestTime":1709626632870, | ||
"data":[ | ||
{ | ||
"open":"64654.54", | ||
"symbol":"BTCUSDT", | ||
"high24h":"68686.93", | ||
"low24h":"64583.42", | ||
"lastPr":"66554.03", | ||
"quoteVolume":"1963568540.741927", | ||
"baseVolume":"29439.351448", | ||
"usdtVolume":"1963568540.74192678", | ||
"ts":"1709626631127", | ||
"bidPr":"66554", | ||
"askPr":"66554.07", | ||
"bidSz":"0.000237", | ||
"askSz":"0.08228", | ||
"openUtc":"68245.32", | ||
"changeUtc24h":"-0.02478", | ||
"change24h":"0.00153" | ||
}, | ||
{ | ||
"open":"3506.6", | ||
"symbol":"ETHUSDT", | ||
"high24h":"3740", | ||
"low24h":"3461.17", | ||
"lastPr":"3686.95", | ||
"quoteVolume":"873897317.8273", | ||
"baseVolume":"243220.866", | ||
"usdtVolume":"873897317.827294", | ||
"ts":"1709626631726", | ||
"bidPr":"3686.94", | ||
"askPr":"3686.98", | ||
"bidSz":"1.0046", | ||
"askSz":"1.0015", | ||
"openUtc":"3627.67", | ||
"changeUtc24h":"0.01634", | ||
"change24h":"0.03572" | ||
} | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters