Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pinnacle-link-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinnacle-link-client

All about odds and fixtures # Authentication Please note that API has restriction that client password can be maximum up 10 characters long. API uses HTTP Basic access authentication. You need to send Authorization HTTP Request header: `Authorization: Basic ` Example: `Authorization: Basic U03MyOT23YbzMDc6d3c3O1DQ1`

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

Welcome to the PinnacleLink SDK documentation. This guide will help you get started with integrating and using the PinnacleLink SDK in your project.

Versions

  • API version: 1.0.0
  • SDK version: 1.0.0

About the API

All about odds and fixtures # Authentication Please note that API has restriction that client password can be maximum up 10 characters long. API uses HTTP Basic access authentication. You need to send Authorization HTTP Request header: Authorization: Basic Example: Authorization: Basic U03MyOT23YbzMDc6d3c3O1DQ1

Table of Contents

  • Setup & Configuration
  • Environments
  • Services
  • Models

Setup & Configuration

Supported Language Versions

This SDK is compatible with the following versions: Python >= 3.7

Installation

To get started with the SDK, we recommend installing using pip:

pip install pinnacle-link-client

Environments

The SDK supports different environments for various stages of development and deployment.

Here are the available environments:

production = "https://api.pinnacle.com"

Setting an Environment

To configure the SDK to use a specific environment, you can set the base URL as follows:

from pinnacle_link import Environment

sdk.set_base_url(Environment.production.value)

Services

The SDK provides various services to interact with the API.

Below is a list of all available services with links to their detailed documentation:
Name
FixturesService
OddsService
LineService
OthersService

Models

The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.

Below is a list of all available models with links to their detailed documentation:
NameDescription
FixturesResponse
SpecialsFixturesResponse
SettledFixturesSport
SettledSpecialsResponseResponse dto for SettledSpecials request
OddsResponse
OddsStraightV1GetOddsFormat
TeaserOddsResponse
SpecialOddsResponse
OddsSpecialV1GetOddsFormat
LineResponse
LineStraightV1GetOddsFormat
LineStraightV1GetBetType
LineStraightV1GetTeam
LineStraightV1GetSide
ParlayLinesRequest
ParlayLinesResponseV2
LinesRequestTeaser
TeaserLinesResponse
SpecialLineResponse
LineSpecialV1GetOddsFormat
SportsResponse
Leagues
SportPeriod
InRunningResponse
TeaserGroupsResponse
TeaserGroupsV1GetOddsFormat
CancellationReasonResponseCancellation Response Data
SuccessfulCurrenciesResponse
FixturesLeague
Fixture
FixtureLiveStatusIndicates live status of the event.

0 = No live betting will be offered on this event,
1 = Live betting event,
2 = Live betting will be offered on this match, but on a different event. Please note that pre-game and live events are different .
FixtureStatusThis is deprecated parameter, please check period's status in the
/odds endpoint to see if it's open for betting.


O = This is the starting status of a game.

H = This status indicates that the lines are temporarily unavailable
for betting,

I = This status indicates that one or more lines have a red circle
(lower maximum bet amount).
ParlayRestriction
Parlay status of the event.

0 = Allowed to parlay, without restrictions,
1 = Not allowed to parlay this event,
2 = Allowed to parlay with the restrictions. You cannot have more than one leg from the same event in the parlay. All events with the same rotation number are treated as same event.
SpecialsFixturesLeague
SpecialFixture
SpecialFixtureBetTypeThe type [MULTI_WAY_HEAD_TO_HEAD, SPREAD, OVER_UNDER]
SpecialFixtureStatusStatus of the Special

O = This is the starting status. It means that the lines
are open for betting,

H = This status indicates that the lines are temporarily unavailable
for betting,

I = This status indicates that one or more lines have a red circle
(a lower maximum bet amount)
SpecialsFixturesEventOptional event asscoaited with the special.
SpecialsFixturesContestant
SpecialFixtureLiveStatusWhen a special is linked to an event, we will return live status of the event, otherwise it will be 0.
0 = No live betting will be offered on this event,
1 = Live betting event,
2 = Live betting will be offered on this match, but on a different event.
Please note that live delay is applied when placing bets on special with LiveStatus=1
SettledFixturesLeague
SettledFixturesEvent
SettledFixturesPeriod
SettledFixturesPeriodStatusPeriod settlement status.

1 = Event period is settled,
2 = Event period is re-settled,
3 = Event period is cancelled,
4 = Event period is re-settled as cancelled,
5 = Event is deleted
CancellationReasonType
CancellationReasonDetailsType
SettledSpecialsLeagueLeague Dto to hold all settled specials for the league
SettledSpecialSettled Special
CancellationReasonCancellation Data
SettledContestantsSettled Special
OutcomeContestant outcomes
W = Won,
L = Lost,
X = Cancelled,
T = Tie,
Z = Scratched
OddsLeague
OddsEvent
OddsPeriod
OddsSpread
OddsMoneyline
OddsTotal
OddsTeamTotals
OddsTeamTotal
TeaserOddsLeague
TeaserOddsEvent
TeaserOddsPeriod
TeaserOddsSpread
TeaserOddsTotalPoints
SpecialOddsLeague
SpecialOddsSpecial
SpecialOddsContestantLine
LineResponseStatusIf the value is NOT_EXISTS, than this will be the only parameter in the response. All other params would be empty. [SUCCESS = OK, NOT_EXISTS = Line not offered anymore]
ParlayLinesRequestOddsFormatOdds in the response will be in this format. [American, Decimal, HongKong, Indonesian, Malay]
ParlayLineRequest
LegBetTypeSPREAD, MONEYLINE, TOTAL_POINTS and TEAM_TOTAL_POINTS are supported.
ParlayLineRequestTeamChosen team type. This is needed only for SPREAD and MONEYLINE wager types. [Team1, Team2, Draw (MONEYLINE only)]
ParlayLineRequestSideChosen side. This is needed only for TOTAL_POINTS wager type. [OVER, UNDER]
ParlayLinesResponseV2StatusStatus of the parlay [VALID = Parlay is valid, PROCESSED_WITH_ERROR = Parlay contains error(s)]
RoundRobinOptionWithOddsV2
ParlayLineLeg
RoundRobinOptionRoundRobinOptions

Parlay = Single parlay that include all wagers (No Round Robin),
TwoLegRoundRobin = Multiple parlays having 2 wagers each (round robin style),
ThreeLegRoundRobin = Multiple parlays having 3 wagers each (round robin style),
FourLegRoundRobin = Multiple parlays having 4 wagers each (round robin style),
FiveLegRoundRobin = Multiple parlays having 5 wagers each (round robin style),
SixLegRoundRobin = Multiple parlays having 6 wagers each (round robin style),
SevenLegRoundRobin = Multiple parlays having 7 wagers each (round robin style),
EightLegRoundRobin = Multiple parlays having 8 wagers each (round robin style)
ParlayLineLegStatusStatus of the request. [VALID = Valid leg, PROCESSED_WITH_ERROR = Processed with error]
ParlayLineLegErrorCodeWhen Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.

CORRELATED - The leg is correlated with another one,
CANNOT_PARLAY_LIVE_GAME - The wager is placed on Live game,
EVENT_NO_LONGER_AVAILABLE_FOR_BETTING - The event is no longer offered for Parlays,
EVENT_NOT_OFFERED_FOR_PARLAY - The event is not offered for Parlays,
LINE_DOES_NOT_BELONG_TO_EVENT - LineId does not match the EventId specified in the request,
WAGER_TYPE_NO_LONGER_AVAILABLE_FOR_BETTING - Wager Type no longer available for betting,
WAGER_TYPE_NOT_VALID_FOR_PARLAY - Wager Type not valid for parlay,
WAGER_TYPE_CONFLICTS_WITH_OTHER_LEG - Wager Type conflicts with other leg
SAME_EVENT_PERIODS_ARE_DISALLOWED - It's not allowed to parlay selected periods of the same event.
LinesRequestTeaserOddsFormatFormat the odds are returned in.. = [American, Decimal, HongKong, Indonesian, Malay]
TeaserLineRequest
TeaserLineRequestBetTypeType of bet. Currently only SPREAD and TOTAL_POINTS are supported. [SPREAD, TOTAL_POINTS]
TeaserLineRequestTeamTeam being bet on for a spread line. [Team1, Team2]
TeaserLineRequestSideSide of a total line being bet on. [OVER, UNDER]
TeaserLinesResponseStatusStatus of the request. [VALID = Teaser is valid, PROCESSED_WITH_ERROR = Teaser contains one or more errors]
TeaserLinesResponseErrorCodeWhen Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.

INVALID_LEGS = One or more of the legs is invalid,
SAME_EVENT_ONLY_REQUIRED = Teaser specified requires that all legs are from the same event,
TEASER_DISABLED = Teaser has been disabled and cannot be bet on,
TEASER_DOES_NOT_EXIST = The teaser identifier could not be found,
TOO_FEW_LEGS = You do not meet the minimum number of legs requirement for the teaser specified,
TOO_MANY_LEGS = You are above the maximum number of legs for the teaser specified,
UNKNOWN = An unknown error has occurred
TeaserLineLeg
TeaserLineLegStatusStatus of the request. [VALID = Teaser is valid, PROCESSED_WITH_ERROR = Teaser contains error(s)]
TeaserLineLegErrorCodeWhen Status is PROCESSED_WITH_ERROR, provides a code indicating the specific problem.

EVENT_NOT_FOUND - The event specified could not be found,
POINTS_NO_LONGER_AVAILABLE - The points requested are no longer available. This means that the lines moved,
UNKNOWN - An unknown error has occured,
WAGER_TYPE_NOT_VALID_FOR_TEASER - The specified wager type is not valid for teasers
GAME_TEASER_DISABLED - Teasers are disabled for the event.
SpecialLineResponseStatusStatus [SUCCESS = OK, NOT_EXISTS = Line not offered anymore]
Sport
League
InRunningSport
InRunningLeague
InRunningEvent
StateState of the game.

1 = First half in progress,
2 = Half time in progress,
3 = Second half in progress,
4 = End of regular time,
5 = First half extra time in progress,
6 = Extra time half time in progress,
7 = Second half extra time in progress,
8 = End of extra time,
9 = End of Game,
10 = Game is temporary suspended,
11 = Penalties in progress
TeaserGroups
TeaserGroupsTeaser
TeaserGroupsPayout
TeaserGroupsLeague
TeaserGroupsBetType
Currency

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc