question

Upvotes
Accepted
46 2 1 3

what is string for side for short order?

I like to make sell short order from API. i did set like hOrder.Side = "short". but submit method return fails with error message "side is required". is that wrong to set to "Short"?

redi-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
22 1 0 0

Hi @JManoharan

The side of the order should be set as follows.

• Buy
• Buy Cover
• Sell
• Sell Short
• Sell Auto

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
22 1 0 0

@JManoharan

If the string 'Sell Short' returns with an error then I suggest making it all uppercase 'SELL SHORT'.

Thanks,
- Derrick

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Sell Short is works.thanks for the help

Click below to post an Idea Post Idea