Jump to content
Sign in to follow this  
yarane

How do I place an order of a specific type (StopLimit, Limit, OCO, IF/Then, etc.)?

Recommended Posts

If you’re working with the API directly then post a NewStopLimitOrderRequestDTO to order/newstoplimitorder. The Direction field will define whether it’s a stop or a limit order, and you can set up an OCO by including a NewStopLimitOrderRequestDTO in the OCO field. If dones (if/then) are setup by including an array of GatewayIfDoneDTOs in the IfDone field.

The names of some of these data types are subject to change, so check the documentation.

Share this post


Link to post

If you’re working with the API directly then post a NewStopLimitOrderRequestDTO to order/newstoplimitorder. The Direction field will define whether it’s a stop or a limit order, and you can set up an OCO by including a NewStopLimitOrderRequestDTO in the OCO field. If dones (if/then) are setup by including an array of GatewayIfDoneDTOs in the IfDone field.

The names of some of these data types are subject to change, so check the documentation.

Thanks Timothy, but it is hard to follow these instructions: documentation lacks descriptions of field/objects that you refer to… Please help us out

Share this post


Link to post

If you’re working with the API directly then post a NewStopLimitOrderRequestDTO to order/newstoplimitorder. The Direction field will define whether it’s a stop or a limit order, and you can set up an OCO by including a NewStopLimitOrderRequestDTO in the OCO field. If dones (if/then) are setup by including an array of GatewayIfDoneDTOs in the IfDone field.

The names of some of these data types are subject to change, so check the documentation.

@yarane The documentation has been updated and the trading api calls are included.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×