tardis-machine
Advanced tools
Comparing version 3.32.1 to 3.33.1
@@ -550,2 +550,15 @@ "use strict"; | ||
}; | ||
const hyperliquidMapper = { | ||
canHandle: (message) => { | ||
return message.method === 'subscribe'; | ||
}, | ||
map: (message) => { | ||
return [ | ||
{ | ||
channel: message.type, | ||
symbols: [message.coin] | ||
} | ||
]; | ||
} | ||
}; | ||
exports.subscriptionsMappers = { | ||
@@ -609,4 +622,5 @@ bitmex: bitmexMapper, | ||
'bitget-futures': bitgetMapper, | ||
'coinbase-international': coinbaseInternationalMapper | ||
'coinbase-international': coinbaseInternationalMapper, | ||
hyperliquid: hyperliquidMapper | ||
}; | ||
//# sourceMappingURL=subscriptionsmappers.js.map |
{ | ||
"name": "tardis-machine", | ||
"version": "3.32.1", | ||
"version": "3.33.1", | ||
"engines": { | ||
@@ -62,3 +62,3 @@ "node": ">=16" | ||
"is-docker": "^2.2.1", | ||
"tardis-dev": "^13.32.1", | ||
"tardis-dev": "^13.33.1", | ||
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.42.0", | ||
@@ -65,0 +65,0 @@ "yargs": "^17.5.1" |
@@ -638,2 +638,17 @@ import { Exchange, Filter } from 'tardis-dev' | ||
const hyperliquidMapper: SubscriptionMapper = { | ||
canHandle: (message: any) => { | ||
return message.method === 'subscribe' | ||
}, | ||
map: (message: any) => { | ||
return [ | ||
{ | ||
channel: message.type, | ||
symbols: [message.coin] | ||
} | ||
] | ||
} | ||
} | ||
export const subscriptionsMappers: { [key in Exchange]: SubscriptionMapper } = { | ||
@@ -697,3 +712,4 @@ bitmex: bitmexMapper, | ||
'bitget-futures': bitgetMapper, | ||
'coinbase-international': coinbaseInternationalMapper | ||
'coinbase-international': coinbaseInternationalMapper, | ||
hyperliquid: hyperliquidMapper | ||
} | ||
@@ -700,0 +716,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
192102
3397
Updatedtardis-dev@^13.33.1