ILiveOddsWithOutrightsGetOutrightsStatus Method |
Requests the outright statuses for a given time ("current" server request).
This includes odds, activation of odds and status for the outright requested,
current bet status and all bet clearing messages before the timestamp.
Namespace: Sportradar.SDK.FeedProviders.LiveOdds.OutrightsAssembly: LiveOddsFeedProvider (in LiveOddsFeedProvider.dll) Version: 2.28.0.0
Syntax long GetOutrightsStatus(
IEnumerable<long> outright_ids,
DateTime? from = null,
bool package = true
)
Parameters
- outright_ids IEnumerableInt64
- Outright ids, maximum is 50 per request to avoid having server queue filling up
- from NullableDateTime (Optional)
- Outrights statuses on particular time (leave null for current outright status)
- package Boolean (Optional)
-
All replies get packaged in one see OnOutrightStatus when true;
else normal events will get invoked.
Return Value
Int64
Returns immediately with the request number or zero but expect to receive an event afterwards.
Remarks
SDK already handles error recovery for on-going outrights, no matter whether there is a crash or
connection to the server is lost, so during normal operation there should be no need to call
this method!
The purpose of it is for book-keeping after an outright has ended.
For instance after an outright is not active anymore you might want to settle all open bets or
check whether a match is really about to start.
Notice that the match messages do not include a message number (msgnr). The received "state" is an
abstract concept derived from the sent messages not any sent message so it cannot have a sequence number.
See Also