Hi
I am writing a C# .NET 4 BOT (runs as a service on my PC, connects to my DB, gets runners to bet on, saves info in the DB and so on)
It's all automatic and works fine in the old API (SOAP).
I am trying to convert my old code to the new code with the help of the C# example > https://github.com/betfair/API-NG-sa.../master/cSharp
I have managed to handle the logging in, getting a new session, saving it, re-using it, getting runners, markets and the placing of bets.
However I am trying to find examples of methods (or examples that call methods) that I can convert for things like:
-Cancelling Bets
-Getting the current status of a bet
-Getting the accounts current available funds
I maybe just looking in the wrong place or being a numpty but I'm stuck here. I have managed to get a core project working that can fill my markets, store runners and their metadata, place bets and so on.
I just need some examples of C# code (preferably) that shows me how to cancel a bet, get the status of a bet or get the account funds.
From looking at the classes in the API-ING C# project I cannot seem to find anything relevant to use and the example program code is pretty basic (logs in, sets the event to horse racing, finds the first market then places a bet it knows will fail)
Any help on this would be much appreciated.
And if possible code examples in C# or VB.NET so I can convert it over easily please.
Thanks
I am writing a C# .NET 4 BOT (runs as a service on my PC, connects to my DB, gets runners to bet on, saves info in the DB and so on)
It's all automatic and works fine in the old API (SOAP).
I am trying to convert my old code to the new code with the help of the C# example > https://github.com/betfair/API-NG-sa.../master/cSharp
I have managed to handle the logging in, getting a new session, saving it, re-using it, getting runners, markets and the placing of bets.
However I am trying to find examples of methods (or examples that call methods) that I can convert for things like:
-Cancelling Bets
-Getting the current status of a bet
-Getting the accounts current available funds
I maybe just looking in the wrong place or being a numpty but I'm stuck here. I have managed to get a core project working that can fill my markets, store runners and their metadata, place bets and so on.
I just need some examples of C# code (preferably) that shows me how to cancel a bet, get the status of a bet or get the account funds.
From looking at the classes in the API-ING C# project I cannot seem to find anything relevant to use and the example program code is pretty basic (logs in, sets the event to horse racing, finds the first market then places a bet it knows will fail)
Any help on this would be much appreciated.
And if possible code examples in C# or VB.NET so I can convert it over easily please.
Thanks


Comment