tardis-machine
Advanced tools
Comparing version 3.31.2 to 3.32.0
@@ -537,2 +537,15 @@ "use strict"; | ||
}; | ||
const coinbaseInternationalMapper = { | ||
canHandle: (message) => { | ||
return message.type === 'SUBSCRIBE'; | ||
}, | ||
map: (message) => { | ||
return message.channels.map((channel) => { | ||
return { | ||
channel, | ||
symbols: message.product_ids | ||
}; | ||
}); | ||
} | ||
}; | ||
exports.subscriptionsMappers = { | ||
@@ -595,4 +608,5 @@ bitmex: bitmexMapper, | ||
bitget: bitgetMapper, | ||
'bitget-futures': bitgetMapper | ||
'bitget-futures': bitgetMapper, | ||
'coinbase-international': coinbaseInternationalMapper | ||
}; | ||
//# sourceMappingURL=subscriptionsmappers.js.map |
{ | ||
"name": "tardis-machine", | ||
"version": "3.31.2", | ||
"version": "3.32.0", | ||
"engines": { | ||
@@ -62,3 +62,3 @@ "node": ">=16" | ||
"is-docker": "^2.2.1", | ||
"tardis-dev": "^13.31.2", | ||
"tardis-dev": "^13.32.0", | ||
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.42.0", | ||
@@ -65,0 +65,0 @@ "yargs": "^17.5.1" |
@@ -623,3 +623,17 @@ import { Exchange, Filter } from 'tardis-dev' | ||
} | ||
const coinbaseInternationalMapper: SubscriptionMapper = { | ||
canHandle: (message: any) => { | ||
return message.type === 'SUBSCRIBE' | ||
}, | ||
map: (message: any) => { | ||
return message.channels.map((channel: string) => { | ||
return { | ||
channel, | ||
symbols: message.product_ids | ||
} | ||
}) | ||
} | ||
} | ||
export const subscriptionsMappers: { [key in Exchange]: SubscriptionMapper } = { | ||
@@ -682,3 +696,4 @@ bitmex: bitmexMapper, | ||
bitget: bitgetMapper, | ||
'bitget-futures': bitgetMapper | ||
'bitget-futures': bitgetMapper, | ||
'coinbase-international': coinbaseInternationalMapper | ||
} | ||
@@ -685,0 +700,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
191197
3369
Updatedtardis-dev@^13.32.0