Exchanger WM List3 Details

This api allows to receive information about counter bids according to the specific NEW bid of the specific WMID.

  • JSON Request format:
    {
         "wmid": "",
         "signstr": "",
         "queryid": "",
         "capitallerwmid": "" 
    }
    
  • Request parameters:
name purpose comments
wmid Signer's WMID WMID from which a new bid will be placed.
signstr Request signature. 132-digits digital signature (by .kwm keys of the wmid) encoding the value of three tags of the request, pulled together in one line without spaces, "wmid + queryid"
queryid bid id id of the new bid of the WMID, information on which needs to be returned
capitallerwmid optional field if Capitaller’s WMID is being transferred in this field (www.capitaller.ru) the exchange bid on behalf of capitallerwmid may be set under this request. In this case there must be an access for WMID which signs the request which is described at Capitaller’s Impersonalization page.
  • Response format:
<?xml version=\"1.0\"?>
<wm.exchanger.response>
    <WMExchnagerQuerys wmid=""" type="">
        ...............
        <query id="" fid="" exchtype="" state="" amountin="" amountout="" inoutrate="" outinrate="" querydatecr="" querydate="" direction="" newtrid="" datesynchro="" newqrid=""></query>
        ...............
    </WMExchnagerQuerys>
    <retval></retval>
    <retdesc></retdesc>
</wm.exchanger.response>
  • Response parameters
Name Purpose Description
retval Execution code "0" means that the request was executed successfully. Check the execution code table for detailed information;
retdesc Execution code description error description in case retval tag is not 0
WMExchangerQuerys general list tag tag of the general list of the returned bids
◦ wmid attribute -WMID who published a bid
◦ *isxid * attribute - number of a new bid
query query information infoamtion abount bid
◦ id attribute - number of counter bid
◦ exchtype attribute - exchange direction
◦ state attribute - current status of the bid
◾0 - bid is not processed yet
◾1 - bid is processed, exchange performed, funds not yet processed
◾2 - exchanged completely, funds processed
◾4 - part of the new bid is converted in counter bid(a part of the initial new bid was spent for buying up another new one from the list opposite towards this)
◾5 - part of the new bid was converted into other new bid (by division into two)
◦ amountin - WM amount which is being get by WMID in counter bid
◦ amountout - WM amount which is being paid by WMID in this counter bid
◦ inoutrate - direct exchange rate of a bid
◦ outinrate - reverse exchange rate of a bid
◦ querydatecr - bid application date
◦ querydate - date of bid’s last change
◦ direction - exchange direction
◦ newtrid - if this counter bid was converted into new (there was no payouts on a purse), then the number of this new bid will be in this attribute.
capitallerwmid if Capitaller’s WMID is being transferred in this field (www.capitaller.ru) the exchange bid on behalf of capitallerwmid may be set under this request. In this case there must be an access for WMID which signs the request which is described at Capitaller’s Impersonalization page
  • Example
<?xml version=\"1.0\"?> 
<wm.exchanger.request>
     <wmid>500000000008</wmid>
     <signstr>
         a346617efbbebd6dca2e8664346927493c0166bb9905176fec5a3e9f962db898baecfd3cb159b07460a4adf22ee0f946d8b4d1b20ff1a28cf8ff7209c0dec7420198
     </signstr>
     <queryid>27804309</queryid>
     <capitallerwmid>0</capitallerwmid>
</wm.exchanger.request> 

<?xml version=\"1.0\"?> 
<wm.exchanger.response>
     <WMExchnagerQuerys wmid=\"500000000008\" isxid=\"27804309\">
         <query id=\"113480873\" fid=\"27804309\" exchtype=\"2\" state=\"2\" amountin=\"688,41\" amountout=\"11,77\" inoutrate=\"58,4885\" outinrate=\"0,017\" querydatecr=\"22.01.2018 18:38:59\" querydate=\"22.01.2018 18:39:20\" direction=\"WME-WMZ\" newtrid=\"27805098\" datesynchro=\"2018-01-22 18:39:19.817\" newqrid=\"0\"></query>
         <query id=\"113479389\" fid=\"27804309\" exchtype=\"2\" state=\"2\" amountin=\"11697,79\" amountout=\"200\" inoutrate=\"58,4889\" outinrate=\"0,017\" querydatecr=\"22.01.2018 18:07:47\" querydate=\"22.01.2018 18:07:52\" direction=\"WME-WMZ\" newtrid=\"27804501\" datesynchro=\"2018-01-22 18:07:51.680\" newqrid=\"0\"></query>
     </WMExchnagerQuerys>
     <retval>0</retval>
     <retdesc></retdesc>
</wm.exchanger.response>