Commit 23e75a1
committed
fix: use explicit futuresMarket endpoint in shared WS functions and fix flaky checkFields test
Shared functions (candles, ticker, allTickers, aggTrades) now explicitly
route futures variator to endpoints.futuresMarket instead of relying on
endpoints.futures coincidentally pointing to /market/ws.
Also fix checkFields to use `field in object` instead of `t.truthy(value)`
so fields with valid falsy values like `trades: 0` don't cause failures.1 parent c34d72b commit 23e75a1
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
378 | 382 | | |
379 | 383 | | |
380 | 384 | | |
381 | | - | |
| 385 | + | |
382 | 386 | | |
383 | 387 | | |
384 | 388 | | |
| |||
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
414 | | - | |
| 418 | + | |
415 | 419 | | |
416 | 420 | | |
417 | 421 | | |
| |||
561 | 565 | | |
562 | 566 | | |
563 | 567 | | |
564 | | - | |
| 568 | + | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments