Advertisement
Guest User

Bitcoin Exchange BTC-e Guzzle PHP XML Client description fil

a guest
Apr 17th, 2013
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <client>
  3.     <commands>
  4.  
  5.         <!-- public commands -->
  6.         <command name="fee" method="GET" uri="api/2/{pair}/fee">
  7.             <doc>https://btc-e.com/api/documentation</doc>
  8.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  9.         </command>
  10.  
  11.         <command name="ticker" method="GET" uri="api/2/{pair}/ticker">
  12.             <doc>https://btc-e.com/api/documentation</doc>
  13.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  14.         </command>
  15.  
  16.         <command name="trades" method="GET" uri="api/2/{pair}/trades">
  17.             <doc>https://btc-e.com/api/documentation</doc>
  18.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  19.         </command>
  20.  
  21.         <command name="depth" method="GET" uri="api/2/{pair}/depth">
  22.             <doc>https://btc-e.com/api/documentation</doc>
  23.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  24.         </command>
  25.  
  26.         <!-- private commands -->
  27.         <command name="getInfo" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  28.             <doc>https://btc-e.com/api/documentation</doc>
  29.         </command>
  30.  
  31.         <!-- TODO:
  32.        <command name="TransHistory" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  33.        </command> -->
  34.  
  35.  
  36.         <command name="TradeHistory" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  37.             <doc>https://btc-e.com/api/documentation</doc>
  38.             <param name="from" location="post_field" type="integer" required="false" doc="the number of the transaction to start displaying with" />
  39.             <param name="count" location="post_field" type="integer" required="false" doc="the number of transactions for displaying" />
  40.             <param name="from_id" location="post_field" type="integer" required="false" doc="the ID of the transaction to start displaying with numerical" />
  41.             <param name="end_id" location="post_field" type="integer" required="false" doc="the ID of the transaction to finish displaying with numerical" />
  42.             <param name="order" location="post_field" type="enum:ASC,DESC" required="false" doc="sorting ASC or DESC (default: DESC)" />
  43.             <param name="since" location="post_field" type="integer" required="false" doc="when to start the displaying UNIX time" />
  44.             <param name="end" location="post_field" type="integer" required="false" doc="when to stop the displaying UNIX time" />
  45.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  46.         </command>
  47.  
  48.         <command name="OrderList" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  49.             <doc>https://btc-e.com/api/documentation</doc>
  50.             <param name="from" location="post_field" type="integer" required="false" doc="the number of the transaction to start displaying with" />
  51.             <param name="count" location="post_field" type="integer" required="false" doc="the number of transactions for displaying" />
  52.             <param name="from_id" location="post_field" type="integer" required="false" doc="the ID of the transaction to start displaying with numerical" />
  53.             <param name="end_id" location="post_field" type="integer" required="false" doc="the ID of the transaction to finish displaying with numerical" />
  54.             <param name="order" location="post_field" type="enum:ASC,DESC" required="false" doc="sorting ASC or DESC (default: DESC)" />
  55.             <param name="since" location="post_field" type="integer" required="false" doc="when to start the displaying UNIX time" />
  56.             <param name="end" location="post_field" type="integer" required="false" doc="when to stop the displaying UNIX time" />
  57.             <param name="pair" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  58.         </command>
  59.  
  60.         <command name="Trade" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  61.             <doc>https://btc-e.com/api/documentation</doc>
  62.             <param name="pair" location="post_field" type="enum:btc_usd,btc_rur,btc_eur,ltc_btc,ltc_usd,ltc_rur,nmc_btc,usd_rur,eur_usd,nvc_btc" required="true" doc="pair, e.g. btc_usd" />
  63.             <param name="type" location="post_field" type="enum:buy,sell" required="true" doc="The transaction type" />
  64.             <param name="rate" location="post_field" type="float" required="true" doc="The rateMultiplier to buy/sell" />
  65.             <!-- <param name="rateMultiplier" location="post_field" type="float" required="true" doc="The rateMultiplier to buy/sell" /> -->
  66.             <param name="amount" location="post_field" type="float" required="true" doc="The tradeAmount to buy/sell" />
  67.             <!-- <param name="tradeAmount" location="post_field" type="float" required="true" doc="The tradeAmount to buy/sell" /> -->
  68.         </command>
  69.  
  70.         <!-- TODO:
  71.        <command name="CancelOrder" method="POST" uri="tapi/" class="\Lmh\Bundle\SpreadTradeBundle\Btce\Command\PrivateCommand">
  72.        </command> -->
  73.  
  74.     </commands>s
  75. </client>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement