Hi
On the website you can easily see the amount of money each horse has available for betting, if you want to back bet, the money is in the LAY column and vice-versa.
However I am "guessing" this doesn't count for the "ladder" where paying bookies like Coral etc are higher up than any bet orders you place and will always take them. E.G If I want to place a £5 BACK bet on a horse and I can see £5 under the LAY section if no-one else went for the bet at the same time I would get it. However if someone more "Important" than me went for it they would
What is the best way IN CODE (JSON) - C# for obtaining the amounts of money available to place a bet (LAY and BACK) so that I don't have to cancel the bet straight after placing it if it wasn't fully matched - as I trade I need a full matched bet early on one side to give the other side more time to get matched.
For example at the moment I can do this
Calling: SportsAPING/v1.0/listMarketBook With args: {"marketIds":["1.121224303"],"priceProjection":{"priceData":["EX_BEST_OFFERS"]},"orderProjection":null,"matchProjection":null,"l ocale":null,"currencyCode":null};
And get a full list of Runners with a number of amounts for LAY/BACK e.g
{"jsonrpc":"2.0","result":[{"marketId":"1.121224303","isMarketDataDelayed":fa lse,"status":"OPEN","betDelay":0,"bspReconciled":f alse,"complete":true,"inplay":false,"numberOfWinne rs":1,"numberOfRunners":10,"numberOfActiveRunners" :10,"lastMatchTime":"2015-10-14T12:59:15.478Z","totalMatched":28771.45,"totalAv ailable":142145.5,"crossMatching":true,"runnersVoi dable":false,"version":1134716766,"runners":[{"selectionId":6739276,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":23.017,"lastPriceTraded": 4.3,"totalMatched":13323.13,"ex":{"availableToBack ":[{"price":4.3,"size":182.04},{"price":4.2,"size":17 6.93},{"price":4.1,"size":167.16}],"availableToLay":[{"price":4.4,"size":59.9},{"price":4.5,"size":228. 2},{"price":4.6,"size":42.54}],"tradedVolume":[]}},
Are these the top X prices/sizes per selection and are they in order e.g if I placed a bet I would get the first price/size not the last listed one?
What params do I need to supply to get the available amounts of money per horse (so if I had a SelectionID and MarketID - for a cut down version of just prices/sizes for that HORSE) - AND is there a way of knowing whether that if there is only £5 under a horse and I go for it I will get it rather than someone like Coral etc?
Also is it the same as the site e.g if I want to place a BACK bet I look at the LAY side and to LAY I look at the BACK side or is it more logical and the other way round.
E.G if I wanted to BACK bet on this horse and saw there was only £5.44 at a price of 46.00 for him I could place a £5 back bet safe in the knowledge it would get matched UNLESS CORAL or someone above me in the importance ladder took it instead,
{"availableToBack":[{"price":46.0,"size":5.44},{"price":44.0,"size":2. 46},{"price":38.0,"size":9.01}],"availableToLay":[{"price":50.0,"size":3.56},{"price":55.0,"size":10 .5},{"price":60.0,"size":14.71}],"tradedVolume":[]}}]}],"id":1};
I just want to make sure I can place the size of bets I want without having a MU (Matched/Unmatched) status until the full amount I requested is matched.
Thanks
Rob
On the website you can easily see the amount of money each horse has available for betting, if you want to back bet, the money is in the LAY column and vice-versa.
However I am "guessing" this doesn't count for the "ladder" where paying bookies like Coral etc are higher up than any bet orders you place and will always take them. E.G If I want to place a £5 BACK bet on a horse and I can see £5 under the LAY section if no-one else went for the bet at the same time I would get it. However if someone more "Important" than me went for it they would
What is the best way IN CODE (JSON) - C# for obtaining the amounts of money available to place a bet (LAY and BACK) so that I don't have to cancel the bet straight after placing it if it wasn't fully matched - as I trade I need a full matched bet early on one side to give the other side more time to get matched.
For example at the moment I can do this
Calling: SportsAPING/v1.0/listMarketBook With args: {"marketIds":["1.121224303"],"priceProjection":{"priceData":["EX_BEST_OFFERS"]},"orderProjection":null,"matchProjection":null,"l ocale":null,"currencyCode":null};
And get a full list of Runners with a number of amounts for LAY/BACK e.g
{"jsonrpc":"2.0","result":[{"marketId":"1.121224303","isMarketDataDelayed":fa lse,"status":"OPEN","betDelay":0,"bspReconciled":f alse,"complete":true,"inplay":false,"numberOfWinne rs":1,"numberOfRunners":10,"numberOfActiveRunners" :10,"lastMatchTime":"2015-10-14T12:59:15.478Z","totalMatched":28771.45,"totalAv ailable":142145.5,"crossMatching":true,"runnersVoi dable":false,"version":1134716766,"runners":[{"selectionId":6739276,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":23.017,"lastPriceTraded": 4.3,"totalMatched":13323.13,"ex":{"availableToBack ":[{"price":4.3,"size":182.04},{"price":4.2,"size":17 6.93},{"price":4.1,"size":167.16}],"availableToLay":[{"price":4.4,"size":59.9},{"price":4.5,"size":228. 2},{"price":4.6,"size":42.54}],"tradedVolume":[]}},
Are these the top X prices/sizes per selection and are they in order e.g if I placed a bet I would get the first price/size not the last listed one?
What params do I need to supply to get the available amounts of money per horse (so if I had a SelectionID and MarketID - for a cut down version of just prices/sizes for that HORSE) - AND is there a way of knowing whether that if there is only £5 under a horse and I go for it I will get it rather than someone like Coral etc?
Also is it the same as the site e.g if I want to place a BACK bet I look at the LAY side and to LAY I look at the BACK side or is it more logical and the other way round.
E.G if I wanted to BACK bet on this horse and saw there was only £5.44 at a price of 46.00 for him I could place a £5 back bet safe in the knowledge it would get matched UNLESS CORAL or someone above me in the importance ladder took it instead,
{"availableToBack":[{"price":46.0,"size":5.44},{"price":44.0,"size":2. 46},{"price":38.0,"size":9.01}],"availableToLay":[{"price":50.0,"size":3.56},{"price":55.0,"size":10 .5},{"price":60.0,"size":14.71}],"tradedVolume":[]}}]}],"id":1};
I just want to make sure I can place the size of bets I want without having a MU (Matched/Unmatched) status until the full amount I requested is matched.
Thanks
Rob
Comment