Hi, here is what I am trying to do.
1. Start streaming client and subscribe to order stream without any specific filters.
2. Get a list of eligible markets/selections/handicaps.
3. For each check if I have order for particular market/selection/handicap combination.
4. If order is there, ignore such combination.
5. If order is not there, place order.
6. If any orders placed, resubscribe order stream.
6. Go back to step 2.
Now, what happened is that I am not getting all orders in the order cache, so those not reflected are placed again and again. Interesting that when I restart application, these orders will reflect correctly. I am planning to implement workaround to add new orders to a collection and verify against it before I place order in consequent loops, but I would appreciate some tips, cause it should work in order stream functionality. BTW - I noticed it does not matter if order was matched or not.
I am using Betfair.ESAClient in C#.
1. Start streaming client and subscribe to order stream without any specific filters.
2. Get a list of eligible markets/selections/handicaps.
3. For each check if I have order for particular market/selection/handicap combination.
4. If order is there, ignore such combination.
5. If order is not there, place order.
6. If any orders placed, resubscribe order stream.
6. Go back to step 2.
Now, what happened is that I am not getting all orders in the order cache, so those not reflected are placed again and again. Interesting that when I restart application, these orders will reflect correctly. I am planning to implement workaround to add new orders to a collection and verify against it before I place order in consequent loops, but I would appreciate some tips, cause it should work in order stream functionality. BTW - I noticed it does not matter if order was matched or not.
I am using Betfair.ESAClient in C#.


Comment