Giter VIP home page Giter VIP logo

pinnaclewrapper's People

Contributors

anderj017 avatar arsteyn avatar harveysburger avatar nbezembinder1 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

Watchers

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

pinnaclewrapper's Issues

Result after placing a Bet

Hello,

I don't know yet how the pinnacle/ps3838 process work and how it's handled by the wrapper.

When we place a bet, it’s accepted or rejected but if accepted, is it accepted as is? ie with the submitted stake at the given odd OR can we have as a result a partial stake accepted at the given odd OR several splitted accepted stakes at differents odds?

System.Net.Http.HttpRequestException

I have created a console app to test the connection with the API and just to mess around but cannot get past this error:

System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 301 (Moved Permanently).'

This error occurs after I create the HttpClientFactory and the PinnacleClient, then I call await GetFixtures and the program gets hung up and this error trips. What am I doing wrong here? I thought it might be an issue with the URL or my username/password but I cannot figure this out. Any help would be appreciated!

Delay limitation per call

Hello,

Do we know the delay betwen each call we cna submit? because on the FAQ available here https://www.ps3838.com/static/index.php/en-us/help/api-user-guide-en-us#migration-to-getOdds-and-getFixtures, we have :

How often can I refresh your odds?
=> You are able to make calls for any changes to the feed every five (5) seconds.

But we also have : The following limitations must be observed per sport:

  • Requests made for the /fixtures and /odds operation without the since parameter must be restricted to once every 60 seconds;

  • Requests made for the /fixtures and /odds operation with the since parameter must be restricted to once every 5 seconds.
    => i guess this must corresponds to the first rule above which does not mention it's with the since parameter

Sorry, the subject is not really related to the wrapper but more on the logic and rules to respect

But then in the sample code app, should not we have delay to introduce between those lines ? :

                var fixtures = await api.GetFixtures(new GetFixturesRequest(SampleSportId, lastFixture));

                var lines = await api.GetOdds(new GetOddsRequest(fixtures.SportId,
                    fixtures.Leagues.Select(i => i.Id).ToList(), lastLine, false));

                var leagues = await api.GetLeagues(SampleSportId);

Need help Please. When i call PlaceBet method keep getting 500 (Internal Server Error).

I must be doing something wrong. Every things works except for that i find sportid,leagueid and eventId ,get the lineid no problem. i made sure the game was open for betting and goinglive
what ive been doing example

var bet = new PlaceBetRequest
{
UniqueRequestId = Guid.NewGuid(),
AcceptBetterLine = true,
OddsFormat = OddsFormat.AMERICAN,
Stake = 10m,
WinRiskType = WinRiskType.Risk,
SportId = 3,
EventId = 752169413,
PeriodNumber = 0,
BetType = BetType.MoneyLine,
TeamType = TeamType.Team2,
LineId = 414315283,
Pitcher1MustStart = true,
Pitcher2MustStart = true
};

        var betting = client.PlaceBet(bet);
        var results = betting.Result.Status;
        Console.WriteLine(results);

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at PinnacleBetBot.PinnacleClient.d__32`1.MoveNext()

Proxy

Is anyway to enable proxy?

Get Fixtures : Questions/suggestions

Hello,

From a call of Get Fixtures, is it possible to get :

  • Only live events? ie with LiveStatus <> "NoLiveBetting". Or asked differently, LIVE_STATUS can have 3 values : 0, 1 and 2, respectively for "No live betting will be offered on this event", "Live betting event", "Live betting will be offered on this event". Can we pass this LIVE_STATUS parameter somewhere to get the related events corresponding to the LIVE_STATUS given value?

  • Only events with odds, ie as it is possible that the event is in Get Fixtures response but not in Get Odds, can we pass a parameter in order we have in the Get Fixtures response only events for which odds have been set? (and only Straight Odds for example)

  • Events sorted by date (for example from events the closest in time to the ones that are most distant in time)

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.