Changelog
Changes to the Aftermath API, newest first.
Changes to the Aftermath API, newest first.
26 changes
/ api/ perpetuals/ {accounts/ receivable, account/ transactions/ receive- funds}stopMarkPrice on / api/ perpetuals/ {account, vault}/ transactions/ create- twap- orders to pause slices instead of cancelling the orderAction required. In effect since . An order whose mark price moves past stopMarkPrice (Max Price for a Bid, Min Price for an Ask) is no longer cancelled. The executor holds its slices back, reports waitReason on the order, and resumes when the mark returns.
stopMarkPrice and no expireTimestamp is cancelled once its running time (chunksAmount × executionGapMs) has passed.waitReason to / api/ perpetuals/ {account, vault}/ twap- order- datas/ api/ perpetuals/ {account, vault}boostedYieldUsd to / api/ perpetuals/ account/ margin- historyPOST / api/ rewards/ fee- schedule/ api/ v1/ perpetuals/ one- click- trading/ transactions/ {prepare- sponsored- grant, prepare- sponsored- revoke}POST / api/ rewards/ fee- rate/ api/ perpetuals/ {account, vault}/ twap- order- datas failing on an unrecognised TWAP error code/ api/ ccxt to return 502, 503 and 504 where it returned 500Action required. In effect since . These statuses used to arrive as 500. 502, 503 and 504 carry X-Error-Code: 2020 and a body of the form Error 2020: <message>; a 500 body carries an error id. Branch on the status:
| Status | Meaning | What to do |
|---|---|---|
502 | The transaction was submitted, but its outcome is unknown. | Check the transaction digest or the account state before you resend. |
503 | The service or the market is temporarily unavailable. | Retry later. If /ccxt/markets shows the market as active: false, wait until it is active again. |
504 | An upstream dependency timed out. | Retry later. |
500 | An internal error on our side. | Report it with the error id from the body. |
5xx error bodies4xx errors instead of 500/ api/ v1/ gas- pool/ transactions/ {prepare- sponsored- create, prepare- sponsored- deposit}/ api/ perpetuals/ {account, vault}/ twap- order- dataslanguage to split Chinese into zh- Hans and zh- Hant; bare zh returns EnglishAction required. In effect since . language on POST /api/announcements, POST /api/announcements/details and POST /api/perpetuals/markets now keeps the script of a Chinese language tag.
| You send | You get |
|---|---|
zh-Hans or zh-CN | Simplified Chinese (zh-hans) |
zh-Hant or zh-TW | Traditional Chinese (zh-hant) |
zh | English |
If you send zh, send zh-Hans or zh-Hant instead.
/ api/ perpetuals/ {account, vault}/ {previews, transactions}/ atomic/ api/ v1/ gas- pool/ api/ v1/ perpetuals/ one- click- trading/ api/ perpetuals/ {account, vault}/ transactions/ {place- market- order, place- limit- order} dropping txKind on orders without SL/TPlanguage to / api/ perpetuals/ marketslanguage to / api/ announcements and / api/ announcements/ detailsGET / api/ perpetuals/ coingecko/ {contracts, orderbook}4xx status instead of 500400 (code 2063) instead of 500accountId above i64::MAX with 40026 changes
/ api/ perpetuals/ {accounts/ receivable, account/ transactions/ receive- funds}stopMarkPrice on / api/ perpetuals/ {account, vault}/ transactions/ create- twap- orders to pause slices instead of cancelling the orderAction required. In effect since . An order whose mark price moves past stopMarkPrice (Max Price for a Bid, Min Price for an Ask) is no longer cancelled. The executor holds its slices back, reports waitReason on the order, and resumes when the mark returns.
stopMarkPrice and no expireTimestamp is cancelled once its running time (chunksAmount × executionGapMs) has passed.waitReason to / api/ perpetuals/ {account, vault}/ twap- order- datas/ api/ perpetuals/ {account, vault}boostedYieldUsd to / api/ perpetuals/ account/ margin- historyPOST / api/ rewards/ fee- schedule/ api/ v1/ perpetuals/ one- click- trading/ transactions/ {prepare- sponsored- grant, prepare- sponsored- revoke}POST / api/ rewards/ fee- rate/ api/ perpetuals/ {account, vault}/ twap- order- datas failing on an unrecognised TWAP error code/ api/ ccxt to return 502, 503 and 504 where it returned 500Action required. In effect since . These statuses used to arrive as 500. 502, 503 and 504 carry X-Error-Code: 2020 and a body of the form Error 2020: <message>; a 500 body carries an error id. Branch on the status:
| Status | Meaning | What to do |
|---|---|---|
502 | The transaction was submitted, but its outcome is unknown. | Check the transaction digest or the account state before you resend. |
503 | The service or the market is temporarily unavailable. | Retry later. If /ccxt/markets shows the market as active: false, wait until it is active again. |
504 | An upstream dependency timed out. | Retry later. |
500 | An internal error on our side. | Report it with the error id from the body. |
5xx error bodies4xx errors instead of 500/ api/ v1/ gas- pool/ transactions/ {prepare- sponsored- create, prepare- sponsored- deposit}/ api/ perpetuals/ {account, vault}/ twap- order- dataslanguage to split Chinese into zh- Hans and zh- Hant; bare zh returns EnglishAction required. In effect since . language on POST /api/announcements, POST /api/announcements/details and POST /api/perpetuals/markets now keeps the script of a Chinese language tag.
| You send | You get |
|---|---|
zh-Hans or zh-CN | Simplified Chinese (zh-hans) |
zh-Hant or zh-TW | Traditional Chinese (zh-hant) |
zh | English |
If you send zh, send zh-Hans or zh-Hant instead.
/ api/ perpetuals/ {account, vault}/ {previews, transactions}/ atomic/ api/ v1/ gas- pool/ api/ v1/ perpetuals/ one- click- trading/ api/ perpetuals/ {account, vault}/ transactions/ {place- market- order, place- limit- order} dropping txKind on orders without SL/TPlanguage to / api/ perpetuals/ marketslanguage to / api/ announcements and / api/ announcements/ detailsGET / api/ perpetuals/ coingecko/ {contracts, orderbook}4xx status instead of 500400 (code 2063) instead of 500accountId above i64::MAX with 40026 changes
/ api/ perpetuals/ {accounts/ receivable, account/ transactions/ receive- funds}stopMarkPrice on / api/ perpetuals/ {account, vault}/ transactions/ create- twap- orders to pause slices instead of cancelling the orderAction required. In effect since . An order whose mark price moves past stopMarkPrice (Max Price for a Bid, Min Price for an Ask) is no longer cancelled. The executor holds its slices back, reports waitReason on the order, and resumes when the mark returns.
stopMarkPrice and no expireTimestamp is cancelled once its running time (chunksAmount × executionGapMs) has passed.waitReason to / api/ perpetuals/ {account, vault}/ twap- order- datas/ api/ perpetuals/ {account, vault}boostedYieldUsd to / api/ perpetuals/ account/ margin- historyPOST / api/ rewards/ fee- schedule/ api/ v1/ perpetuals/ one- click- trading/ transactions/ {prepare- sponsored- grant, prepare- sponsored- revoke}POST / api/ rewards/ fee- rate/ api/ perpetuals/ {account, vault}/ twap- order- datas failing on an unrecognised TWAP error code/ api/ ccxt to return 502, 503 and 504 where it returned 500Action required. In effect since . These statuses used to arrive as 500. 502, 503 and 504 carry X-Error-Code: 2020 and a body of the form Error 2020: <message>; a 500 body carries an error id. Branch on the status:
| Status | Meaning | What to do |
|---|---|---|
502 | The transaction was submitted, but its outcome is unknown. | Check the transaction digest or the account state before you resend. |
503 | The service or the market is temporarily unavailable. | Retry later. If /ccxt/markets shows the market as active: false, wait until it is active again. |
504 | An upstream dependency timed out. | Retry later. |
500 | An internal error on our side. | Report it with the error id from the body. |
5xx error bodies4xx errors instead of 500/ api/ v1/ gas- pool/ transactions/ {prepare- sponsored- create, prepare- sponsored- deposit}/ api/ perpetuals/ {account, vault}/ twap- order- dataslanguage to split Chinese into zh- Hans and zh- Hant; bare zh returns EnglishAction required. In effect since . language on POST /api/announcements, POST /api/announcements/details and POST /api/perpetuals/markets now keeps the script of a Chinese language tag.
| You send | You get |
|---|---|
zh-Hans or zh-CN | Simplified Chinese (zh-hans) |
zh-Hant or zh-TW | Traditional Chinese (zh-hant) |
zh | English |
If you send zh, send zh-Hans or zh-Hant instead.
/ api/ perpetuals/ {account, vault}/ {previews, transactions}/ atomic/ api/ v1/ gas- pool/ api/ v1/ perpetuals/ one- click- trading/ api/ perpetuals/ {account, vault}/ transactions/ {place- market- order, place- limit- order} dropping txKind on orders without SL/TPlanguage to / api/ perpetuals/ marketslanguage to / api/ announcements and / api/ announcements/ detailsGET / api/ perpetuals/ coingecko/ {contracts, orderbook}4xx status instead of 500400 (code 2063) instead of 500accountId above i64::MAX with 40026 changes
/ api/ perpetuals/ {accounts/ receivable, account/ transactions/ receive- funds}stopMarkPrice on / api/ perpetuals/ {account, vault}/ transactions/ create- twap- orders to pause slices instead of cancelling the orderAction required. In effect since . An order whose mark price moves past stopMarkPrice (Max Price for a Bid, Min Price for an Ask) is no longer cancelled. The executor holds its slices back, reports waitReason on the order, and resumes when the mark returns.
stopMarkPrice and no expireTimestamp is cancelled once its running time (chunksAmount × executionGapMs) has passed.waitReason to / api/ perpetuals/ {account, vault}/ twap- order- datas/ api/ perpetuals/ {account, vault}boostedYieldUsd to / api/ perpetuals/ account/ margin- historyPOST / api/ rewards/ fee- schedule/ api/ v1/ perpetuals/ one- click- trading/ transactions/ {prepare- sponsored- grant, prepare- sponsored- revoke}POST / api/ rewards/ fee- rate/ api/ perpetuals/ {account, vault}/ twap- order- datas failing on an unrecognised TWAP error code/ api/ ccxt to return 502, 503 and 504 where it returned 500Action required. In effect since . These statuses used to arrive as 500. 502, 503 and 504 carry X-Error-Code: 2020 and a body of the form Error 2020: <message>; a 500 body carries an error id. Branch on the status:
| Status | Meaning | What to do |
|---|---|---|
502 | The transaction was submitted, but its outcome is unknown. | Check the transaction digest or the account state before you resend. |
503 | The service or the market is temporarily unavailable. | Retry later. If /ccxt/markets shows the market as active: false, wait until it is active again. |
504 | An upstream dependency timed out. | Retry later. |
500 | An internal error on our side. | Report it with the error id from the body. |
5xx error bodies4xx errors instead of 500/ api/ v1/ gas- pool/ transactions/ {prepare- sponsored- create, prepare- sponsored- deposit}/ api/ perpetuals/ {account, vault}/ twap- order- dataslanguage to split Chinese into zh- Hans and zh- Hant; bare zh returns EnglishAction required. In effect since . language on POST /api/announcements, POST /api/announcements/details and POST /api/perpetuals/markets now keeps the script of a Chinese language tag.
| You send | You get |
|---|---|
zh-Hans or zh-CN | Simplified Chinese (zh-hans) |
zh-Hant or zh-TW | Traditional Chinese (zh-hant) |
zh | English |
If you send zh, send zh-Hans or zh-Hant instead.
/ api/ perpetuals/ {account, vault}/ {previews, transactions}/ atomic/ api/ v1/ gas- pool/ api/ v1/ perpetuals/ one- click- trading/ api/ perpetuals/ {account, vault}/ transactions/ {place- market- order, place- limit- order} dropping txKind on orders without SL/TPlanguage to / api/ perpetuals/ marketslanguage to / api/ announcements and / api/ announcements/ detailsGET / api/ perpetuals/ coingecko/ {contracts, orderbook}4xx status instead of 500400 (code 2063) instead of 500accountId above i64::MAX with 400