Trading instructions handle order placement, modification, and cancellation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/drift-labs/protocol-v2/llms.txt
Use this file to discover all available pages before exploring further.
Core Instructions
place_perp_order
Places a perpetual futures order.Order parameters including price, size, type, and conditions
cancel_order
Cancels an existing order.modify_order
Modifies an existing order.place_and_take_perp_order
Places an order and immediately attempts to fill it.SDK Usage
Placing Orders
Order placement guide
Order Params API
Order parameter reference