Skip to main content

OthersService

A list of all methods in the OthersService service. Click on the method name to view detailed information about that method.

MethodsDescription
sports_v2_getReturns all sports with the status whether they currently have lines or not.
leagues_v2_getReturns all sports leagues with the status whether they currently have lines or not.
periods_v1_getReturns all periods for a given sport.
in_running_v1_getReturns all live soccer events that have a status that indicates the event is in progress.
teaser_groups_v1_getReturns all teaser groups.
cancellation_reasons_v1_getLookup for all the cancellation reasons
currencies_v2_getReturns the list of supported currencies

sports_v2_get

Returns all sports with the status whether they currently have lines or not.

  • HTTP Method: GET
  • Endpoint: /v2/sports

Return Type

SportsResponse

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.sports_v2_get()

print(result)

leagues_v2_get

Returns all sports leagues with the status whether they currently have lines or not.

  • HTTP Method: GET
  • Endpoint: /v2/leagues

Parameters

NameTypeRequiredDescription
sport_idstrSport id for which the leagues are requested.

Return Type

Leagues

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.leagues_v2_get(sport_id="sportId")

print(result)

periods_v1_get

Returns all periods for a given sport.

  • HTTP Method: GET
  • Endpoint: /v1/periods

Parameters

NameTypeRequiredDescription
sport_idstr

Return Type

SportPeriod

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.periods_v1_get(sport_id="sportId")

print(result)

in_running_v1_get

Returns all live soccer events that have a status that indicates the event is in progress.

  • HTTP Method: GET
  • Endpoint: /v1/inrunning

Return Type

InRunningResponse

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.in_running_v1_get()

print(result)

teaser_groups_v1_get

Returns all teaser groups.

  • HTTP Method: GET
  • Endpoint: /v1/teaser/groups

Parameters

NameTypeRequiredDescription
odds_formatTeaserGroupsV1GetOddsFormatFormat the odds are returned in. [American, Decimal, HongKong, Indonesian, Malay]

Return Type

TeaserGroupsResponse

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment
from pinnacle_link.models import TeaserGroupsV1GetOddsFormat

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.teaser_groups_v1_get(odds_format="American")

print(result)

cancellation_reasons_v1_get

Lookup for all the cancellation reasons

  • HTTP Method: GET
  • Endpoint: /v1/cancellationreasons

Return Type

CancellationReasonResponse

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.cancellation_reasons_v1_get()

print(result)

currencies_v2_get

Returns the list of supported currencies

  • HTTP Method: GET
  • Endpoint: /v2/currencies

Return Type

SuccessfulCurrenciesResponse

Example Usage Code Snippet

from pinnacle_link import PinnacleLink, Environment

sdk = PinnacleLink(
username="YOUR_USERNAME",
password="YOUR_PASSWORD",
base_url=Environment.DEFAULT.value
)

result = sdk.others.currencies_v2_get()

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →