ListContingencies
From The Contingency Market
Contents |
ListContingencies(ulSessionID,uSequenceID,sIntegrity,sSince,uLimit)
List contingencies created after a particular date (not exceeding a certain count).
PARAMETERS
-
ulong ulSessionID - ID of authenticated session.
-
uint uSequenceID - Sequence number.
-
string sIntegrity -
md5("ipaddr(sid,seq)->ListContingencies(yyyy-mm-dd hh:mm:ss,uLimit)/secret") -
string sSince - Earliest registration date to count from. NB Not a TimeInstant or DateTime. The timezone is UTC.
-
uint uLimit - Maximum number of contingencies to return (0=all).
RETURNS
[ SContingencyData {sID,asConditionalEventIDs,asAntecedentContingencyIDs,asPreemptiveContingencyIDs,asCollateralContingencyIDs,sCreationTime,bOutcome,sTimeOfOutcome,sTimeOfTermination} ]
-
string sID - 32 digit hex representing this contingency's globally unique id.
-
string[] asConditionalEventIDs - An array of 32 digit hex ids for each conditional event.
-
string[] asAntecedentContingencyIDs - An array of 32 digit hex ids for each antecedent.
-
string[] asPreemptiveContingencyIDs - An array of 32 digit hex ids for each preemptive.
-
string[] asCollateralContingencyIDs - An array of 32 digit hex ids for each collateral.
-
string sCreationTime - The time at which this contingency was created.
-
bool bOutcome - True if this contingency has succeeded. False if failed, not yet determined.
-
string sTimeOfOutcome - The time at which the contingency succeeded or failed. Empty if not determined.
-
string sTimeOfTermination - The time at which the contingency became determined. Empty if not determined.
FAULTS
Session.
TEST
ListContingencies(2008-01-01,10) (with sSingleEventID defined as appropriate) according to the respective template, returns
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event
- Simple contingency only dependent upon a single event.

