harveysburger / pinnaclewrapper Goto Github PK
View Code? Open in Web Editor NEWA C# Wrapper for the PinnacleSports API
A C# Wrapper for the PinnacleSports API
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?
Hello,
The complete message is in this screenshot https://cl.ly/8011c529082b, beginning by "Current .Net SDK does not support targetting .NetCore 2.2".
Anyone having an idea how to configure the things?
Thanks in advance
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!
Hi there
I have just noticed that your solution does not use GZIP/ Deflate. How about to implement it to reduce the amount of traffic sent over network?
Solution: http://stackoverflow.com/questions/20990601/decompressing-gzip-stream-from-httpclient-response
Thanks!
Dmitry
Hello,
Is there some documentation showing how to use it or a geting started?
Or a guide inspired from https://www.ps3838.com/static/index.php/en-us/help/api-user-guide-en-us?
Or some examples for operations listed here https://www.ps3838.com/static/index.php/en-us/help/api-user-guide-en-us#Gline?
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);
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()
Is anyway to enable proxy?
Hello
BetType enums do not correspond to the ones listed by Pinnacles.
For example, it should be Total_Points instead of TotalPoints.
https://github.com/anderj017/pinnaclewrapper/blob/master/Enums/BetType.cs
https://www.pinnacle.com/en/api/manual#BET_TYPE
Hello,
https://www.ps3838.com/en/euro/ is owned by Pinnacle and they talk about the API here
https://www.ps3838.com/static/index.php/en-us/help/api-user-guide-en-us#getting-started which is a little dated (2016).
The question is : does the C# Wrapper for the PinnacleSports API (https://github.com/harveysburger/pinnaclewrapper) works with ps3838 too ?
Kind Regards
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.