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
Algo order content
algo_type
Algo type, required for algo orders creation
duration_seconds
Duration in seconds for which the algo order will be running, required for algo orders creation
market
Market for which order is created
side
Algo order side
Allowed values:
signature
Order Payload signed with STARK Private Key
signature_timestamp
Timestamp of order creation, used for signature verification
size
Size of the algo order
type
Algo order type, only MARKET is supported
Response
Created
account
Account identifier (user’s account address)
algo_type
Algo type
Allowed values:
avg_fill_price
Average fill price of the order
cancel_reason
Reason for algo cancellation if it was closed by cancel
created_at
Algo creation time
end_at
Algo end time
id
Unique algo identifier
last_updated_at
Algo last update time. No changes once status=CLOSED
market
Market to which algo belongs
remaining_size
Remaining size of the algo
side
Algo side
Allowed values:
size
Algo size
status
Algo status
Allowed values: