Hi
It might just be that it's because I've just come back from the Pub for lunch or the pain killers I am taking for my Kidney Stones but my head is slightly muddled.
I have a BOT (using the old SOAP API C# if anyone has an example of a way to rewrite methods like placebet, getmarketId, cancel, withdraw etc etc in the new JSON version then please let me know as I need to rewrite my code at some stage)
Anyway I have some bets that I only want to place if they have a price of 3.0 or above at race off time.
I am getting my head confused around the settings as I set my bet up to have a persistence type of SP (which I need to change) and then place it on the exchange with a desired price of 3.0 or 3.5 or whatever.
If its not matched then it takes the SP which could obviously be below 3.0 e.g 1.10 or 2.40 or whatever - which I don't want. I only want the bet taken if the price is 3.0 or above.
So my current code is (simplified)
Which I take is wrong as it would mean a bet I wanted to place at 3.50 would be converted to SP and placed even if the SP price was 1.05??
What would the settings be if I wanted to use limit on close e.g only convert the bet to an SP bet IF the SP price was 3.00 OR above at in-play.
Would it be this?
Which means that because the Category Type is NOT the exchange e.g L (limit on close)
and betPersistenceType = NONE (as its already an SP bet)
then the bet will only get converted to an SP bet IF the price was 3.00 or above at in-play?
If not it would get LAPSED.
Can someone just confirm this so I am clear in my head I am doing the right thing please.
Also any .NET C# versions using JSON would be great so I can get a working API class up and running using the new API.
Thanks
It might just be that it's because I've just come back from the Pub for lunch or the pain killers I am taking for my Kidney Stones but my head is slightly muddled.
I have a BOT (using the old SOAP API C# if anyone has an example of a way to rewrite methods like placebet, getmarketId, cancel, withdraw etc etc in the new JSON version then please let me know as I need to rewrite my code at some stage)
Anyway I have some bets that I only want to place if they have a price of 3.0 or above at race off time.
I am getting my head confused around the settings as I set my bet up to have a persistence type of SP (which I need to change) and then place it on the exchange with a desired price of 3.0 or 3.5 or whatever.
If its not matched then it takes the SP which could obviously be below 3.0 e.g 1.10 or 2.40 or whatever - which I don't want. I only want the bet taken if the price is 3.0 or above.
So my current code is (simplified)
Code:
BFUK.PlaceBets Bet = new BFUK.PlaceBets(); Bet.betCategoryType = BFUK.BetCategoryTypeEnum.E; // use exchange Bet.betPersistenceType = BFUK.BetPersistenceTypeEnum.SP; // convert to SP if not matched before race Bet.betType = BFUK.BetTypeEnum.B; // back Bets.price = 3.00; // price I want
What would the settings be if I wanted to use limit on close e.g only convert the bet to an SP bet IF the SP price was 3.00 OR above at in-play.
Would it be this?
Code:
BFUK.PlaceBets Bet = new BFUK.PlaceBets(); Bet.betCategoryType = BFUK.BetCategoryTypeEnum.L; // limit on close Bet.betPersistenceType = BFUK.BetPersistenceTypeEnum.NONE; // already SP bet so no need to persist ?? Bet.betType = BFUK.BetTypeEnum.B; // back Bets.price = 3.00; // price I want
Which means that because the Category Type is NOT the exchange e.g L (limit on close)
and betPersistenceType = NONE (as its already an SP bet)
then the bet will only get converted to an SP bet IF the price was 3.00 or above at in-play?
If not it would get LAPSED.
Can someone just confirm this so I am clear in my head I am doing the right thing please.
Also any .NET C# versions using JSON would be great so I can get a working API class up and running using the new API.
Thanks


Comment