tardis-machine
Advanced tools
Comparing version 3.7.10 to 3.7.11
@@ -244,2 +244,15 @@ "use strict"; | ||
}; | ||
const bybitSpotMapper = { | ||
canHandle: (message) => { | ||
return message.event === 'sub'; | ||
}, | ||
map: (message) => { | ||
return [ | ||
{ | ||
channel: message.topic, | ||
symbols: [message.symbol] | ||
} | ||
]; | ||
} | ||
}; | ||
// https://api.hitbtc.com/#subscribe-to-trades | ||
@@ -472,4 +485,5 @@ const hitBtcMapper = { | ||
'star-atlas': serumMaper, | ||
mango: serumMaper | ||
mango: serumMaper, | ||
'bybit-spot': bybitSpotMapper | ||
}; | ||
//# sourceMappingURL=subscriptionsmappers.js.map |
{ | ||
"name": "tardis-machine", | ||
"version": "3.7.10", | ||
"version": "3.7.11", | ||
"engines": { | ||
@@ -62,3 +62,3 @@ "node": ">=12" | ||
"is-docker": "^2.2.1", | ||
"tardis-dev": "^13.4.11", | ||
"tardis-dev": "^13.4.12", | ||
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.10.0", | ||
@@ -65,0 +65,0 @@ "yargs": "^17.5.1" |
@@ -282,2 +282,17 @@ import { Exchange, Filter } from 'tardis-dev' | ||
const bybitSpotMapper: SubscriptionMapper = { | ||
canHandle: (message: any) => { | ||
return message.event === 'sub' | ||
}, | ||
map: (message: any) => { | ||
return [ | ||
{ | ||
channel: message.topic, | ||
symbols: [message.symbol] | ||
} | ||
] | ||
} | ||
} | ||
// https://api.hitbtc.com/#subscribe-to-trades | ||
@@ -540,3 +555,4 @@ const hitBtcMapper: SubscriptionMapper = { | ||
'star-atlas': serumMaper, | ||
mango: serumMaper | ||
mango: serumMaper, | ||
'bybit-spot': bybitSpotMapper | ||
} | ||
@@ -543,0 +559,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180582
3115
Updatedtardis-dev@^13.4.12