Create algo order
Create a new algo order
TWAP
TWAP orders break a large trade into smaller ones over time to reduce market impact:
- Sub-orders are placed every 30 seconds.
- Order duration is between 30 and 86,400 seconds, in multiples of 30.
- Supported sub order type: MARKET
Request body
Example request
{
"algo_type": "TWAP",
"duration_seconds": 3600,
"frequency": 30,
"market": "BTC-USD-PERP",
"on_behalf_of_account": "0x1234567890abcdef",
"size": "1.213"
}Response
Created
Example response
{
"account": "0x4638e3041366aa71720be63e32e53e1223316c7f0d56f7aa617542ed1e7512",
"avg_fill_price": "26000",
"cancel_reason": "NOT_ENOUGH_MARGIN",
"created_at": 1681493746016,
"end_at": 1681493746016,
"id": "123456",
"last_updated_at": 1681493746016,
"market": "BTC-USD-PERP",
"remaining_size": "0",
"size": "0.05"
}Changes
Changed in 8 of the 65 revisions of this API.73212
- ●
added the new
BLOCK_TRADE_REPLAYED_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
EVM_VAULT_OPERATORS_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
VAULT_DATA_PRIVATEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ○
removed the
INVALID_RHINOFI_QUOTEenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_RHINOFI_QUOTE_COMMITenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_RHINOFI_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
- ●
added the new
IP_NOT_ALLOWEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
MARKET_NOT_SETTLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
BLOCK_TRADE_INVALID_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_SIGNER_KEY_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
EVM_ADDRESS_ALREADY_ONBOARDEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
INSUFFICIENT_EVM_BALANCEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_INVALID_ACCOUNT_KINDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_ONBOARDING_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ○
removed the
BAD_STARKNET_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_PRICE_PRECISIONenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
TRANSACTION_NOT_FOUNDenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
- ▲
the
request property type changed fromobjectto no typerequest-property-type-changed
- ▲
the
request property type changed fromobjectto no typerequest-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
added the new
BLOCK_TRADE_ACCOUNT_MISMATCHenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_ALREADY_CANCELLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_EXPIREDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_INVALID_STATUSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_SIGNERSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_TRADESenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_NOT_ENABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
EVM_SIGNATURE_VERIFICATION_FAILEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
INVALID_EVM_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
MEDIA_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_ALREADY_CANCELLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_INVALID_STATUSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_PARENT_MISMATCHenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_PARENT_NOT_ACCEPTINGenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_CONFIG_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SUBKEY_NOT_ACTIVATABLEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
XP_TRANSFERS_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
removed the
INVALID_JOIN_WAITLIST_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ▲
- ▲
added required request body
request-body-added-required
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲