I know that there is a delay in placing a bet in-play on most events. I'm about to write my bet-related code and there's a couple of things I'm wondering about.
The betDelay in marketBook gives the number of seconds for which an order is held before it is submitted.
Let's assume betDelay = 5
1. placeOrders: if I place an order, does it mean that there will be a 5+ second delay between my API call and any kind of response being returned? Or is there an immediate response even while the system waits to place the bet?
2. If I want to change the odds on an existing bet, I need to use replaceOrders. ReplaceOrders cancels the original bet(s) and submits a new one(s). Does this mean there will be a 5+ second delay in placing the new order?
3. I assume, since the responses to either call will have to tell me whether the placing/replacing was successful, that the time between the call being sent and a response being received will be at least 5 (or whatever) seconds. Is that correct?
Thank you.
The betDelay in marketBook gives the number of seconds for which an order is held before it is submitted.
Let's assume betDelay = 5
1. placeOrders: if I place an order, does it mean that there will be a 5+ second delay between my API call and any kind of response being returned? Or is there an immediate response even while the system waits to place the bet?
2. If I want to change the odds on an existing bet, I need to use replaceOrders. ReplaceOrders cancels the original bet(s) and submits a new one(s). Does this mean there will be a 5+ second delay in placing the new order?
3. I assume, since the responses to either call will have to tell me whether the placing/replacing was successful, that the time between the call being sent and a response being received will be at least 5 (or whatever) seconds. Is that correct?
Thank you.


Comment