question

Upvotes
Accepted
46 2 1 5

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 512.0 KiB each and 1.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 512.0 KiB each and 1.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 512.0 KiB each and 1.0 MiB total.

Sell Short is works.thanks for the help

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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