API Support Forum
OEC API > API Support > C# API How to close position ?
Author Topic: C# API How to close position ?
(2 messages, Page 1 of 1)
Moderators: VPfau
ETerrien753
Posts: 1
Joined: Dec 22, 2020


Posted: May 31, 2021 @ 10:38 AM             Msg. 1 of 2
Hi,

Is there a method to close a position? I am using market orders to go to 0 lots. But market orders are sometimes refused because of insufficient margin.

Best Regards,
VPfau
Moderator
Posts: 135
Joined: Oct 26, 2011


Posted: Jun 03, 2021 @ 12:53 PM             Msg. 2 of 2
Hello,

>Is there a method to close a position?
No there is no close position method.

>I am using market orders to go to 0 lots
That's right.

>But market orders are sometimes refused because of insufficient margin.
Please call customer service to resolve margin problem.

Thank you
Vitaliy Pfau