CountDeals
From The Contingency Market
Contents |
CountDeals(ulSessionID,uSequenceID,sIntegrity,sID,sAgentID,sSince)
Count the number of deals involving a specific contingency or offer that were registered after a particular time.
PARAMETERS
-
ulong ulSessionID - ID of authenticated session.
-
uint uSequenceID - Sequence number.
-
string sIntegrity -
md5("ipaddr(sid,seq)->CountDeals(sID,sAgentID,sSince)/secret") -
string sID - ID of contingency or offer on which deals are to be counted (blank if all deals).
-
string sAgentID - If non-null, ID of agent involved in the deals to be counted.
-
string sSince - Earliest registration date to count from. NB Not a TimeInstant or DateTime. The timezone is UTC.
RETURNS
uint
-
uint - number of deals involving the specified contingency or offer that were registered since the specified date.
FAULTS
Session. Offer. Time format.
TEST
CountDeals() currently returns: 7593.
CountDeals(null,null,2008-04-01) currently returns: 7593.

