Skip to content

Commit

Permalink
Update blocksize-capital provider indicated timestamp (#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinborn committed Aug 9, 2024
1 parent abc239b commit f8133f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-planes-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/blocksize-capital-adapter': patch
---

Patch Blocksize Capital to use correct unit for provider indicated time ms
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const transport: WebsocketReverseMappingTransport<WsTransportTypes, strin
mid: Number(update.agg_mid_price),
},
timestamps: {
providerIndicatedTimeUnixMs: Number(update.ts),
providerIndicatedTimeUnixMs: Math.floor(Number(update.ts) / 1000),
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const mockLwbaResponse = {
agg_ask_price: '27206.54222704013',
agg_ask_size: '6.76037062',
agg_mid_price: '27204.76629652509',
ts: 1693425803031,
ts: 1693425803031000,
},
{
ticker: 'ETHUSD',
Expand All @@ -41,7 +41,7 @@ export const mockLwbaResponse = {
agg_ask_price: '1702.223427255888',
agg_ask_size: '11.44083383',
agg_mid_price: '1702.034150611851',
ts: 1693425803028,
ts: 1693425803028000,
},
{
ticker: 'LINKUSD',
Expand All @@ -50,7 +50,7 @@ export const mockLwbaResponse = {
agg_ask_price: '123.124',
agg_ask_size: '11.44083383',
agg_mid_price: '123.125',
ts: 1693425803029,
ts: 1693425803029000,
},
],
},
Expand Down

0 comments on commit f8133f8

Please sign in to comment.