API Support Forum
OEC API > API Support > Allocation Blocks not saving to Server
Author Topic: Allocation Blocks not saving to Server
(5 messages, Page 1 of 1)
Moderators: VPfau
PNannis
Posts: 17
Joined: Apr 16, 2014


Posted: Feb 26, 2018 @ 08:41 PM             Msg. 1 of 5
Got most of it working and I can create and modify allocation blocks locally and place orders that generate the block as it should. However, the allocation blocks I create doesn’t save and get re-created when I exit and log back in again. They don’t show on the OEC client side either (even after re-login).

If I create them on the OEC client it works ok and the blocks saves and I can see those changes on my end when I login as well.

No obvious “save” function and I thought it was automatically done when I disconnected (oecClient.Disconnect())

How do I get the Allocation Blocks to save ?
Peter Nannis
VPfau
Moderator
Posts: 164
Joined:


Posted: Feb 28, 2018 @ 10:40 AM             Msg. 2 of 5
Peter,

Please provide move information:

- user name
- environment (PROD, SIM, API)
- OEC client application name and version
- date you worked with Allocation blocks
- screenshots

Thank you
Vitaliy Pfau
PNannis
Posts: 17
Joined: Apr 16, 2014


Posted: Feb 28, 2018 @ 11:26 AM             Msg. 3 of 5
username is PNannisTM, on the Development environment. I'm using API 3.5.14.41 (latest stable) and OE Trader 3.5.15.398.

I've added an Allocation Block (BWT, Wash account=peterblock) in my software and placed & cancelled a limit buy which I can see on OEC Trader correctly listed under the BWT allocation block with 3 Limit orders. If I look at the Allocation Block Manager in OEC Trader there is no BWT block (even after re-login) and same thing on my end, i.e. the BWT Block doesn't save.

You should be able to see the limit order I placed for reference.
Peter Nannis
VPfau
Moderator
Posts: 164
Joined:


Posted: Feb 28, 2018 @ 12:15 PM             Msg. 4 of 5
Peter,

Do you call SubmitAllocationBlocks function? I do not see block object in the logs.

We have examples of AllocationBlocks here https://bitbucket.org/GainFuturesDev/advancedexample. Does it work for you?
Vitaliy Pfau
PNannis
Posts: 17
Joined: Apr 16, 2014


Posted: Feb 28, 2018 @ 12:45 PM             Msg. 5 of 5
That was it .. knew it was something simple. Thanks.
Peter Nannis