AutomaticDeal
From The Contingency Market
Contents |
AutomaticDeal(ulSessionID,uSequenceID,sIntegrity,sOfferIDMade,dLimit,uSecondsToLive)
Construct a reflected offer to create an acceptable deal, and unilaterally accept it.
PARAMETERS
-
ulong ulSessionID - ID of authenticated session.
-
uint uSequenceID - Sequence number.
-
string sIntegrity -
md5("ipaddr(sid,seq)->AutomaticDeal(sOfferIDMade,dLimit,uSecondsToLive)/secret") -
string sOfferIDMade - The offer made by another agent that is being taken and accepted by the agent of this session.
-
double dLimit - Maximum amount of funds willing to transfer.
-
uint uSecondsToLive - Lifetime of this deal and acceptance from registration time in seconds. 0 if indefinite.
RETURNS
SDealAcceptData {sOfferIDAccepted,sDealIDAccepted,dLimit,uSecondsToLive,sTimeOfAcceptance}
-
string sOfferIDAccepted - ID of offer automatically accepted.
-
string sDealIDAccepted - ID of deal on reflected offer.
-
double dLimit - Maximum amount of funds that will be transferred.
-
uint uSecondsToLive - Lifetime of this deal & acceptance from registration time in seconds. 0 if indefinite.
-
string sTimeOfAcceptance - Time deal was accepted.
FAULTS
Session. Event. Contingency.

