Accept

From The Contingency Market

Jump to: navigation, search

Contents

Accept(ulSessionID,uSequenceID,sIntegrity,sDealID,dLimit,uSecondsToLive)

Register acceptance of a previously registered deal. If already accepted by the other party, the deal is jointly accepted. Otherwise it may yet be jointly accepted by the other party, or rejected by either party.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)->Accept(sDealID,dLimit,uSecondsToLive)/secret")
string sDealID 
The deal involving this agent (as maker or taker) 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 accepted.
string sDealIDAccepted 
ID of deal between offer maker and offer taker.
double dLimit 
Maximum amount of funds that will be transferred. zero = unlimited (CAUTION: potentially market limit!).
uint uSecondsToLive 
Lifetime of this acceptance from registration time in seconds. 0 if indefinite.
string sTimeOfAcceptance 
Time deal was accepted.

FAULTS

Session. Deal.

Views
Personal tools