Placing an Order

This page discusses how to place some basic types of orders on Drift using DriftPy. You must have followed the Setup guide and deposited some collateral to use any of the code in this section.

Before starting here, I'd recommend that you read "The Order Class" page to fully understand what you're doing when placing any given type of order. If you've already read that, feel free to carry on!

Now that you've got your OrderParams object created, you'll probably want to place some orders. Here's how you can do that:

// Some code

Last updated