TotalPaymentsOnDeal

From The Contingency Market

Jump to: navigation, search

Contents

TotalPaymentsOnDeal(ulSessionID,uSequenceID,sIntegrity,sDealID,bOnCompletion,bPaid,bTaker)

Accumulate the total payment so far in favour of the agent making/taking the specified deal, given its acceptance or completion.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)-> TotalPaymentsOnDeal(sDealID,bOnCompletion,bPaid,bTaker)/secret")
string sDealID  
ID of deal for which payments are required.
string bOnCompletion 
false=total of payments on deal, true=total of payments on success/failure.
string bPaid 
false=total of payments due, true=total of payments paid.
string bTaker 
false=payments in favour of maker, true=in favour of taker.

RETURNS

double

double 
total payment (positive if credit, negative if debit).

FAULTS

Session.

TEST

TotalPaymentsOnDeal() currently returns: 'Null ID invalid'.

Views
Personal tools