Git Product home page Git Product logo

betfairng's People

Contributors

chrisw000 avatar csutcliff avatar joelpob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

betfairng's Issues

but will it work in mono? :P

Before I go and download OSX equivalents and step back in to the world of .NET, does mono support any of the new fancy stuff you're using?

Converted AuthClient to work with .net core

I've rewritten the AuthClient class to work with .net core but run into an issue with the cert, the problem I have is I'm seeing a betfair response of CERT_AUTH_REQUIRED

I'm newish to c#/ .net core so any help would be appreciated, and once working i'll post the code here

thanks
Mark

LimitOrder.Size should be double? not simple double.

I was using the BetTargetType/BetTargetSize way of using placeOrders and it was throwing an exception everytime I made the call. Turns out it's because Size shouldn't be featured in the JSON. So I made Size nullable and the problem went away. This isn't an issue when using placeOrders in the regular way becasue Size is obviously needed - but with BetTargetType/Size it isn't.
Hope this helps and thanks for all the work you've put into this.
Geoff Tyrer

BetfairClient.Login fails with INVALID_USERNAME_OR_PASSWORD

Great work on the Library!

When I try do a non-interactive Login with BetfairClient.Login if fails with INVALID_USERNAME_OR_PASSWORD even though they are correct. Looking into this it seems the code for generating the post data does not correctly format the details as a URL formatted string. My password has several nonstandard characters in it which seem to be misinterpreted during login.

I replaced the following code:
string postData = string.Format("username={0}&password={1}", username, password);

with:

NameValueCollection outgoingQueryString = HttpUtility.ParseQueryString(String.Empty);
outgoingQueryString.Add("username", username);
outgoingQueryString.Add("password", password);
string postData = outgoingQueryString.ToString();

Which rectifies the problem and logs in successfully. There may be more succinct ways of achieving this but this worked for me.

Cheers.

Missing files

Hi. Just downloaded the zip and extracted. Getting a ton of messages like:
Error CS2001 Source file 'C:\Repeat\betfairng-master\stream-api-sample-code\csharp\Betfair.ESAClient\Betfair.ESASwagger\Betfair\ESASwagger\Model\AllRequestTypesExample.cs' could not be found. Betfair.ESASwagger C:\Repeat\betfairng-master\CSC 1 Active

Have searched for AllRequestTypesExample.cs but cannot find the file.

Thanks

Mark.

PlaceOrders function of NG-API library which always returns null

Hi, I am trying to place bets using my live key and using PlaceOrders function of NG-API library which always returns null. And if I check account, the orders are not even placed.

I need help to make this working.

var res = BetfairClient.PlaceOrders(marketBook.MarketId, instructions).Result.Response;
Where "res" is always null.

Here is a screenshot of the errors:
image

Here is my app keys status:
image

This is how I build my PlaceInstructions:
image

This is how I try to execute PlaceOrders:
image

Debug screens with info generated withing Order Placement Instructions:
image

image

Would you please guide me what is require to place bets successfully using PlaceOrders function/api?

ListEvents method

Hi.
ListEvents method in BetfairClient.cs wrongly refers to LIST_EVENT_TYPES_METHOD.

Thanks for your great work!

Test prog does not respond

I'm sure I am doing something wrong here.

I've built the library and created a small program that logs on using the interactive route (as opposed to using the certificate). The login works fine and I get the necessary session id.

I then call TestAPI.Test() but the program then just sits there doing nothing.

I can trace the code going in to ListCurrencyRates and back out again, but then it just sits there waiting for a return in the main Test routine. Specifically it just sits at the line:

var currencyRates = client.ListCurrencyRates("GBP").Result;

I have checked that the request is actually being sent to the API and that a response is being sent back, but the response never seems to make it back to the main program.

What am I doing wrong?

listMarketBook exception

I occasionally get an exception on

var book = client.ListMarketBook(markets.Keys.ToList(), this.priceProjection).Result;

in MarketListener.cs

What would be the best way to handle this exception as it currently crashes the program

Syntax errors in MS Visual Studio professional 2013

Hello,
first at all i want to thank you for nice Betfair library.

I started trying your code in C# in MS Visual Studio 2013. When i try to build solution i get upcoming errors. I do not know (because i am newbie in C#] if these errors are by some wrong setting in Visual studio or it's misspellings or something else. Thank you for advice.

  1. MarketListenerPeriodic.cs
    line 134 "_polling?.Dispose();"
  2. MarketListenerMultiPeriod.cs
    line 223 "poll.Value?.Dispose();"

In case 1) and 2) i removed char ? and syntax is fine

  1. "ConsoleExample\OriginalExample.cs"
    line 14 "public bool IsBlocking => false;"
    line 21 "public bool IsBlocking => true;"
    line 23 "public bool IsBlocking => true;"
    line 29 "public bool IsBlocking => false;"

In case 3) i removed char > and syntax is fine

Is my corrections right, or i do some other mistake, which causes these errors?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.