-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitmart: updated the fetchTickers spot endpoint (#22680)
* refactor(bitmart): update spot fetchTickers endpoint ``` node examples/js/cli bitmart fetchTickers '["BTC/USDT","ETH/USDT"]' bitmart.fetchTickers (BTC/USDT,ETH/USDT) 2024-05-31T04:38:48.799Z iteration 0 passed in 1006 ms { 'BTC/USDT': { symbol: 'BTC/USDT', timestamp: 1717130327808, datetime: '2024-05-31T04:38:47.808Z', high: 69499.99, low: 67132.4, bid: 68508.59, bidVolume: 0.00627, ask: 68508.61, askVolume: 0.01234, vwap: 68354.4118269248, open: 68303.27, close: 68508.6, last: 68508.6, change: 0.00301, percentage: 0.301, average: 68405.935, baseVolume: 10533.01836, quoteVolume: 719978274.76, info: [ 'BTC_USDT', '68508.60', '10533.01836', '719978274.76', '68303.27', '69499.99', '67132.40', '0.00301', '68508.59', '0.00627', '68508.61', '0.01234', '1717130327808' ] }, 'ETH/USDT': { symbol: 'ETH/USDT', timestamp: 1717130327783, datetime: '2024-05-31T04:38:47.783Z', high: 3825.35, low: 3702.6, bid: 3759.99, bidVolume: 0.00532, ask: 3760, askVolume: 0.02055, vwap: 3758.4100324692363, open: 3794.82, close: 3760, last: 3760, change: -0.00918, percentage: 0.918, average: 3777.41, baseVolume: 113844.1009, quoteVolume: 427872810.96, info: [ 'ETH_USDT', '3760.00', '113844.10090', '427872810.96', '3794.82', '3825.35', '3702.60', '-0.00918', '3759.99', '0.00532', '3760', '0.02055', '1717130327783' ] } } ``` * test(bitmart): static request, update spot fetchTickers * refactor(bitmart): update fetchTicker endpoint ``` bitmart.fetchTicker (BTC/USDT) 2024-05-31T05:12:04.737Z iteration 0 passed in 475 ms { symbol: 'BTC/USDT', timestamp: 1717132325396, datetime: '2024-05-31T05:12:05.396Z', high: 69499.99, low: 67132.4, bid: 68479.98, bidVolume: 0.05972, ask: 68480, askVolume: 0.00058, vwap: 68360.17033443128, open: 68078.42, close: 68479.99, last: 68479.99, change: 0.0059, percentage: 0.59, average: 68279.205, baseVolume: 10530.35952, quoteVolume: 719857170.47, info: { symbol: 'BTC_USDT', last: '68479.99', v_24h: '10530.35952', qv_24h: '719857170.47', open_24h: '68078.42', high_24h: '69499.99', low_24h: '67132.40', fluctuation: '0.00590', bid_px: '68479.98', bid_sz: '0.05972', ask_px: '68480', ask_sz: '0.00058', ts: '1717132325396' } } ``` * test(bitmart): static request, update fetchTicker tests * fix build * update responsetest * create dict wrapper for fetchTickers result * test(bitmart): static response, fetchTicker fix test failure * change empty array check * adjusted list check to if marketId is defined --------- Co-authored-by: carlosmiei <[email protected]> [ci skip]
- Loading branch information
Travis CI
committed
Jun 7, 2024
1 parent
6291cce
commit 45e4075
Showing
24 changed files
with
1,607 additions
and
891 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.