Skip to content

Commit 5b305e7

Browse files
committed
formatting fixes
1 parent a320942 commit 5b305e7

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
- efficient data replay API endpoints returning historical market data for whole time periods \(in contrast to [Tardis.dev HTTP API](https://docs.tardis.dev/api/http) where single call returns data for single minute time period\)
1414

1515
- [exchange-native market data APIs](https://docs.tardis.dev/api/tardis-machine#exchange-native-market-data-apis)
16-
1716
- tick-by-tick historical market data replay in [exchange-native format](https://docs.tardis.dev/faq/data#what-is-a-difference-between-exchange-native-and-normalized-data-format)
1817

1918
- [HTTP](https://docs.tardis.dev/api/tardis-machine#http-get-replay-options-options) and [WebSocket](https://docs.tardis.dev/api/tardis-machine#websocket-ws-replay-exchange-exchange-and-from-fromdate-and-to-todate) endpoints
@@ -22,7 +21,6 @@
2221

2322
- [normalized market data APIs](https://docs.tardis.dev/api/tardis-machine#normalized-market-data-apis)
2423
<br/>
25-
2624
- consistent format for accessing market data across multiple exchanges
2725

2826
- [HTTP](https://docs.tardis.dev/api/tardis-machine#http-get-replay-normalized-options-options) and [WebSocket](https://docs.tardis.dev/api/tardis-machine#websocket-ws-replay-normalized-options-options) endpoints

src/ws/replay.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ class WebsocketConnection {
173173
private readonly _subscriptionsMapper: SubscriptionMapper
174174
public subscriptionsCount = 0
175175

176-
constructor(public readonly ws: any, exchange: Exchange, from: string, to: string) {
176+
constructor(
177+
public readonly ws: any,
178+
exchange: Exchange,
179+
from: string,
180+
to: string
181+
) {
177182
this.replayOptions = {
178183
exchange,
179184
from,

test/tardismachine.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('tardis-machine', () => {
2626
})
2727

2828
describe('HTTP GET /replay-normalized', () => {
29-
test(
29+
;(test(
3030
'replays Bitmex ETHUSD trades and order book changes',
3131
async () => {
3232
const options = {
@@ -81,7 +81,7 @@ describe('tardis-machine', () => {
8181
expect(messages).toMatchSnapshot()
8282
},
8383
1000 * 60 * 10
84-
)
84+
))
8585

8686
test(
8787
'replays Bitmex XBTUSD and Deribit BTC-PERPETUAL trade 1 second bars',
@@ -517,7 +517,7 @@ describe('tardis-machine', () => {
517517
})
518518

519519
describe('WS /ws-replay-normalized', () => {
520-
test(
520+
;(test(
521521
'replays Bitmex ETHUSD trades and order book changes',
522522
async () => {
523523
const options = {
@@ -565,7 +565,7 @@ describe('tardis-machine', () => {
565565
expect(messages).toMatchSnapshot()
566566
},
567567
1000 * 60 * 10
568-
)
568+
))
569569

570570
test(
571571
'replays Bitmex XBTUSD and Deribit BTC-PERPETUAL trade 1 second bars',

0 commit comments

Comments
 (0)