Skip to content

feat(aftermath) new exchange#25613

Merged
carlosmiei merged 85 commits intoccxt:masterfrom
sc0Vu:add-aftermath
Mar 6, 2026
Merged

feat(aftermath) new exchange#25613
carlosmiei merged 85 commits intoccxt:masterfrom
sc0Vu:add-aftermath

Conversation

@sc0Vu
Copy link
Copy Markdown
Contributor

@sc0Vu sc0Vu commented Apr 2, 2025

$ p aftermath fetchTicker BTC/USD:USDC --test
$ p aftermath fetchOrderBook BTC/USD:USDC --test
$ p aftermath fetchTrades BTC/USD:USDC 1743947194060 1 --test
$ p aftermath fetchOHLCV BTC/USD:USDC 1m 1743947194060 1 --test --verbose
$ p aftermath fetchAccounts --test
$ p aftermath fetchOpenOrders BTC/USD:USDC undefined undefined '{"accountNumber":14822}' --test
$ p aftermath fetchBalance '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath createOrders '[{"symbol":"BTC/USD:USDC","amount":0.2,"price":10001,"type":"limit","side":"buy"}]' '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath cancelOrders '["340282366919093789037556908196463492661"]' BTC/USD:USDC '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath createSubaccount '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath addMargin BTC/USD:USDC 1 '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath reduceMargin BTC/USD:USDC 1 '{"account":"0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4"}' --test
$ p aftermath fetchPositions '["BTC/USD:USDC"]' '{"accountNumber":14822}' --test

$ p aftermath watchTrades BTC/USD:USDC --test
$ p aftermath watchPositions '["BTC/USD:USDC"]' undefined undefined '{"accountNumber":769}' --test
$ p aftermath watchOrderBook BTC/USD:USDC --test
...

Comment thread ts/src/aftermath.ts
Comment thread ts/src/aftermath.ts
await this.loadMarkets ();
const market = this.market (symbol);
const accountNumber = this.safeNumber (params, 'accountNumber');
if (accountNumber === undefined) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sc0Vu same here, can you use handleOpptionAndParams?

Comment thread ts/src/aftermath.ts
await this.loadMarkets ();
const accountNumber = this.safeNumber (params, 'accountNumber');
if (accountNumber === undefined) {
throw new ArgumentsRequired (this.id + ' fetchPositions() requires an accountNumber parameter in params');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Comment thread ts/src/aftermath.ts
const currency = this.currency (code);
const account = this.safeString (params, 'account');
params = this.omit (params, [ 'account' ]);
if (account === undefined) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@carlosmiei carlosmiei merged commit 2a021a1 into ccxt:master Mar 6, 2026
6 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants