API Support Forum
OEC API > API Support > When does Position->Net->Volume get updated?
Author Topic: When does Position->Net->Volume get updated?
(3 messages, Page 1 of 1)
Moderators: VPfau
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 24, 2012 @ 07:34 PM             Msg. 1 of 3
1) When does Position->Net->Volume get updated?

A scenario (well-tested):

I place one buy order and and one sell order for the same symbol in two separate orders. There are no open orders remaining for that symbol. Yet Position->Net->Volume is not zero when I check from within these API callbacks:

OnOrderFilled
OnOrderStateChanged

When will it return to 0 and what factors are involved? This will be useful information, thanks much.



CHW
Edited by CWeber984 on Apr 26, 2012 at 12:24:33
Edited by CWeber984 on Apr 26, 2012 at 12:25:24
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 27, 2012 @ 11:15 AM             Msg. 2 of 3
I hope some has information re. this question. Is it not clearly stated?

CHW
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 03, 2012 @ 08:57 AM             Msg. 3 of 3
Did you have overnight position?

Victor Vins
Lead Software Developer