Event Ordering
After you've created all the technical parts and set up listeners to process all incoming messages, you are ready to order events.
You have 2 options to order events:
Admin Panel
You can easily order events from our admin panel.
By navigating to - OddService > InPlay > Event Ordering > All Events
Or just click here
The web interface is very friendly and allows you to filter the events you can order by bookmakers offering, sports, countries, and leagues, as shown in the following image:
Schedule API Calls
Below are all the API calls, relevant to
Schedule
To see events that are available in our schedule: https://inplay.lsports.eu/api/schedule/GetInPlaySchedule?username={username}&password={password}&packageid={packageId}
Optional parameter breakdown
Comma separated list of sport IDs
Default value: All sports in package
Comma separated list of provider IDs
Default value : All providers in package
Orders
To order new events: https://inplay.lsports.eu/api/schedule/OrderFixtures?username={username}&password={password}&packageid={packageId}&fixtureIds={fixtureIds}
Note: After ordering an event, you will receive a snapshot message with available data. You can find the structure of the message in the Snapshot section.
Parameter breakdown
Comma separated list of fixture IDs
Comma separated list of sport IDs
Comma separated list of provider IDs
Default value : All providers in package
Order cancellation
To cancel event orders: https://inplay.lsports.eu/api/schedule/CancelFixtureOrders?username={username}&password={password}&packageid={packageId}&fixtureIds={fixtureIds}
Note: You cannot cancel orders for events that had already started.
Parameter breakdown
Comma separated list of fixture IDs
Comma separated list of sport IDs
Comma separated list of provider IDs
Default value : All providers in package
View ordered events
To receive a list of ordered events: https://inplay.lsports.eu/api/schedule/GetOrderedFixtures?username={username}&password={password}&packageid={packageId}&fixtureIds={fixtureIds}
Parameter breakdown
[Optional] Comma separated list of fixture IDs
Default value : All fixtures
[Optional] Comma separated list of fixture IDs
Default value : All providers in package
[Optional] Unix timestamp of minimum ordering date
[Optional] Unix timestamp of maximum ordering date
Snapshot
When subscribing to the AMQP service and connecting to our queue, you will only receive updates. In order to receive the full snapshot for all of the events, results, and markets that you have ordered, you need to request a snapshot.
Note: It is only necessary to request the snapshot on startup, afterwards you will receive all new entries and updates via RMQ
You can request a snapshot from our API service via the following URL: https://inplay.lsports.eu/api/Snapshot/{action}?username={username}&password={password}&packageid={packageId}&fixtureIds={comma-separated-list}
Action breakdown
Used to receive a full snapshot in XML format
Used to receive a full snapshot in JSON format
GetSnapshotProtocolBuffers
Used to receive a full snapshot in Binary format, serialized using Protocol Buffers
Parameter breakdown
Username as it appears in the package
Password as it appears the package
Comma-separated list of fixture IDs
Response Scheme
Copy < xs : element name = "Message" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Header" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Type" type = "xs:int" ></ xs : element >
< xs : element name = "MsgGuid" type = "xs:string" ></ xs : element >
< xs : element name = "ServerTimestamp" type = "xs:int" ></ xs : element >
</ xs : sequence >
</ xs : complexType >
</ xs : element >
< xs : element name = "MessageBody" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Events" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Event" maxOccurs = "unbounded" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Fixture" >
< xs : complexType >
< xs : sequence >
< xs : element name = "Sport" >
< xs : complexType >
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
</ xs : complexType >
</ xs : element >
< xs : element name = "Location" >
< xs : complexType >
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
</ xs : complexType >
</ xs : element >
< xs : element name = "League" >
< xs : complexType >
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
</ xs : complexType >
</ xs : element >
<xs:element name="StartDate" type="xs:string"></xs:element>
<xs:element name="Status" type="xs:int"></xs:element>
<xs:element name="Participants">
< xs : complexType >
< xs : sequence >
<xs:element name="Participant" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
<xs:attribute name="Position" type="xs:int"></xs:attribute>
</xs:complexType>
</xs:element>
</ xs : sequence >
</ xs : complexType >
</ xs : element >
</ xs : sequence >
<xs:attribute name="LastUpdate" type="xs:string"></xs:attribute>
</ xs : complexType >
</ xs : element >
< xs : element name = "Livescore" >
< xs : complexType >
< xs : sequence >
<xs:element name="Scoreboard">
< xs : complexType >
< xs : sequence >
<xs:element name="Score" maxOccurs="unbounded" type="xs:int">
<xs:complexType>
<xs:attribute name="Position" type="xs:int"></xs:attribute>
</xs:complexType>
</xs:element>
</ xs : sequence >
<xs:attribute name="Status" type="xs:int"></xs:attribute>
<xs:attribute name="Description" type="xs:string"></xs:attribute>
<xs:attribute name="CurrentPeriod" type="xs:int"></xs:attribute>
<xs:attribute name="Time" type="xs:int"></xs:attribute>
</ xs : complexType >
</ xs : element >
< xs : element name = "Periods" >
< xs : complexType >
< xs : sequence >
<xs:element name="Period">
<xs:complexType>
<xs:sequence>
<xs:element name="Score" maxOccurs="unbounded" type="xs:int">
<xs:complexType>
<xs:attribute name="Position" type="xs:int"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Type" type="xs:int"></xs:attribute>
<xs:attribute name="IsFinished" type="xs:string"></xs:attribute>
<xs:attribute name="IsConfirmed" type="xs:string"></xs:attribute>
</xs:complexType>
</xs:element>
</ xs : sequence >
</ xs : complexType >
</ xs : element >
<xs:element name="Statistics">
< xs : complexType >
< xs : sequence >
<xs:element name="Statistic" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Value" maxOccurs="unbounded" type="xs:int">
<xs:complexType>
<xs:attribute name="Position" type="xs:int"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Type" type="xs:int"></xs:attribute>
</xs:complexType>
</xs:element>
</ xs : sequence >
</ xs : complexType >
</ xs : element >
<xs:element name="LivescoreExtraData"></xs:element>
</ xs : sequence >
</ xs : complexType >
</ xs : element >
< xs : element name = "Markets" >
< xs : complexType >
< xs : sequence >
<xs:element name="Market" maxOccurs="unbounded">
< xs : complexType >
< xs : sequence >
<xs:element name="Provider">
<xs:complexType>
<xs:sequence>
<xs:element name="Bet" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
<xs:attribute name="Line" type="xs:double"></xs:attribute>
<xs:attribute name="BaseLine" type="xs:double"></xs:attribute>
<xs:attribute name="Status" type="xs:int"></xs:attribute>
<xs:attribute name="StartPrice" type="xs:int"></xs:attribute>
<xs:attribute name="Price" type="xs:int"></xs:attribute>
<xs:attribute name="Settlement" type="xs:int"></xs:attribute>
<xs:attribute name="LastUpdate" type="xs:string"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
<xs:attribute name="LastUpdate" type="xs:string"></xs:attribute>
</xs:complexType>
</xs:element>
</ xs : sequence >
<xs:attribute name="Id" type="xs:int"></xs:attribute>
<xs:attribute name="Name" type="xs:string"></xs:attribute>
</ xs : complexType >
</ xs : element >
</ xs : sequence >
</ xs : complexType >
</ xs : element >
</ xs : sequence >
<xs:attribute name="FixtureId" type="xs:int"></xs:attribute>
</ xs : complexType >
</ xs : element >
</ xs : sequence >
</ xs : complexType >
</ xs : element >
</ xs : sequence >
</ xs : complexType >
</ xs : element >
</ xs : sequence >
</ xs : complexType >
</ xs : element >
In-Play Package Control
You can control your package's status (enable/disable) by sending a request to the following URL
Enable: https:/inplay.lsports.eu/api/Package/EnablePackage?username={username}&password={password}&packageid={packageId}
Disable: https:/inplay.lsports.eu/api/Package/DisablePackage?username={username}&password={password}&packageid={packageId}
Parameter breakdown
Username as it apparrs in the package
Password as it appears the package
Last updated 5 months ago