bitcoin json url

Trading Pairs API Market Info API Market Details API Tickers API Ticker API Depth API History API Trade API Return all the trading pairs supported by Bter /api2/1/pairs Returns all markets' fee, minimum order total amount, price decimal places./api2/1/marketinfo Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc. /api2/1/marketlist returns the tickers for all the supported trading pairs at once, cached in 10 seconds:: /api2/1/tickers returns the current ticker for the selected currency, cached in 10 seconds: /api2/1/ticker/[CURR_A]_[CURR_B] Replace [CURR_A] and [CURR_B] with the selected currencies.Links: /api2/1/ticker/btc_cny /api2/1/ticker/ltc_cny /api2/1/ticker/xrp_cny /api2/1/ticker/xrp_btc /api2/1/ticker/qtum_btc /api2/1/ticker/qtum_cny /api2/1/ticker/etp_btc /api2/1/ticker/etp_cny /api2/1/ticker/btrx_cny /api2/1/ticker/btrx_btc /api2/1/ticker/bts_cny /api2/1/ticker/cnc_cny /api2/1/ticker/rep_cny /api2/1/ticker/bat_cny /api2/1/ticker/doge_cny /api2/1/ticker/dash_cny /api2/1/ticker/eth_cny /api2/1/ticker/etc_cny /api2/1/ticker/exc_cny /api2/1/ticker/ftc_cny /api2/1/ticker/ifc_cny /api2/1/ticker/nmc_cny /api2/1/ticker/nxt_cny /api2/1/ticker/ppc_cny /api2/1/ticker/shell_cny /api2/1/ticker/tips_cny /api2/1/ticker/tix_cny /api2/1/ticker/xcp_cny /api2/1/ticker/xmr_cny /api2/1/ticker/xpm_cny /api2/1/ticker/xtc_cny /api2/1/ticker/ltc_btc /api2/1/ticker/bts_btc /api2/1/ticker/cnc_btc /api2/1/ticker/rep_btc /api2/1/ticker/bat_btc /api2/1/ticker/hkg_btc /api2/1/ticker/doge_btc /api2/1/ticker/dash_btc /api2/1/ticker/eth_btc /api2/1/ticker/etc_btc /api2/1/ticker/ftc_btc /api2/1/ticker/nmc_btc /api2/1/ticker/nxt_btc /api2/1/ticker/ppc_btc /api2/1/ticker/xtc_btc /api2/1/ticker/xcn_btc /api2/1/ticker/xcp_btc /api2/1/ticker/xem_btc /api2/1/ticker/xem_cny /api2/1/ticker/xpm_btc /api2/1/ticker/xmr_btc /api2/1/ticker/mg_btc /api2/1/ticker/ifc_ltc /api2/1/ticker/tips_ltc /api2/1/ticker/tix_ltc /api2/1/ticker/etc_eth /api2/1/ticker/zec_btc /api2/1/ticker/zec_cny Return the market depth including ask and bid orders.

/api2/1/orderBook/[CURR_A]_[CURR_B] Replace [CURR_A] and [CURR_B] with the selected currencies.Links: /api2/1/orderBook/btc_cny /api2/1/orderBook/ltc_cny /api2/1/orderBook/xrp_cny /api2/1/orderBook/xrp_btc /api2/1/orderBook/qtum_btc /api2/1/orderBook/qtum_cny /api2/1/orderBook/etp_btc /api2/1/orderBook/etp_cny /api2/1/orderBook/btrx_cny /api2/1/orderBook/btrx_btc /api2/1/orderBook/bts_cny /api2/1/orderBook/cnc_cny /api2/1/orderBook/rep_cny /api2/1/orderBook/bat_cny /api2/1/orderBook/doge_cny /api2/1/orderBook/dash_cny /api2/1/orderBook/eth_cny /api2/1/orderBook/etc_cny /api2/1/orderBook/exc_cny /api2/1/orderBook/ftc_cny /api2/1/orderBook/ifc_cny /api2/1/orderBook/nmc_cny /api2/1/orderBook/nxt_cny /api2/1/orderBook/ppc_cny /api2/1/orderBook/shell_cny /api2/1/orderBook/tips_cny /api2/1/orderBook/tix_cny /api2/1/orderBook/xcp_cny /api2/1/orderBook/xmr_cny /api2/1/orderBook/xpm_cny /api2/1/orderBook/xtc_cny /api2/1/orderBook/ltc_btc /api2/1/orderBook/bts_btc /api2/1/orderBook/cnc_btc /api2/1/orderBook/rep_btc /api2/1/orderBook/bat_btc /api2/1/orderBook/hkg_btc /api2/1/orderBook/doge_btc /api2/1/orderBook/dash_btc /api2/1/orderBook/eth_btc /api2/1/orderBook/etc_btc /api2/1/orderBook/ftc_btc /api2/1/orderBook/nmc_btc /api2/1/orderBook/nxt_btc /api2/1/orderBook/ppc_btc /api2/1/orderBook/xtc_btc /api2/1/orderBook/xcn_btc /api2/1/orderBook/xcp_btc /api2/1/orderBook/xem_btc /api2/1/orderBook/xem_cny /api2/1/orderBook/xpm_btc /api2/1/orderBook/xmr_btc /api2/1/orderBook/mg_btc /api2/1/orderBook/ifc_ltc /api2/1/orderBook/tips_ltc /api2/1/orderBook/tix_ltc /api2/1/orderBook/etc_eth /api2/1/orderBook/zec_btc /api2/1/orderBook/zec_cny Return the most recent 80 trade history records: /api2/1/trade/[CURR_A]_[CURR_B] Return at most 1,000 trade history records after [TID]: /api2/1/tradeHistory/[CURR_A]_[CURR_B]/[TID] Replace [CURR_A] and [CURR_B] with the selected currencies.
ethereum competitors

Links: /api2/1/tradeHistory/btc_cny /api2/1/tradeHistory/ltc_cny /api2/1/tradeHistory/xrp_cny /api2/1/tradeHistory/xrp_btc /api2/1/tradeHistory/qtum_btc /api2/1/tradeHistory/qtum_cny /api2/1/tradeHistory/etp_btc /api2/1/tradeHistory/etp_cny /api2/1/tradeHistory/btrx_cny /api2/1/tradeHistory/btrx_btc /api2/1/tradeHistory/bts_cny /api2/1/tradeHistory/cnc_cny /api2/1/tradeHistory/rep_cny /api2/1/tradeHistory/bat_cny /api2/1/tradeHistory/doge_cny /api2/1/tradeHistory/dash_cny /api2/1/tradeHistory/eth_cny /api2/1/tradeHistory/etc_cny /api2/1/tradeHistory/exc_cny /api2/1/tradeHistory/ftc_cny /api2/1/tradeHistory/ifc_cny /api2/1/tradeHistory/nmc_cny /api2/1/tradeHistory/nxt_cny /api2/1/tradeHistory/ppc_cny /api2/1/tradeHistory/shell_cny /api2/1/tradeHistory/tips_cny /api2/1/tradeHistory/tix_cny /api2/1/tradeHistory/xcp_cny /api2/1/tradeHistory/xmr_cny /api2/1/tradeHistory/xpm_cny /api2/1/tradeHistory/xtc_cny /api2/1/tradeHistory/ltc_btc /api2/1/tradeHistory/bts_btc /api2/1/tradeHistory/cnc_btc /api2/1/tradeHistory/rep_btc /api2/1/tradeHistory/bat_btc /api2/1/tradeHistory/hkg_btc /api2/1/tradeHistory/doge_btc /api2/1/tradeHistory/dash_btc /api2/1/tradeHistory/eth_btc /api2/1/tradeHistory/etc_btc /api2/1/tradeHistory/ftc_btc /api2/1/tradeHistory/nmc_btc /api2/1/tradeHistory/nxt_btc /api2/1/tradeHistory/ppc_btc /api2/1/tradeHistory/xtc_btc /api2/1/tradeHistory/xcn_btc /api2/1/tradeHistory/xcp_btc /api2/1/tradeHistory/xem_btc /api2/1/tradeHistory/xem_cny /api2/1/tradeHistory/xpm_btc /api2/1/tradeHistory/xmr_btc /api2/1/tradeHistory/mg_btc /api2/1/tradeHistory/ifc_ltc /api2/1/tradeHistory/tips_ltc /api2/1/tradeHistory/tix_ltc /api2/1/tradeHistory/etc_eth /api2/1/tradeHistory/zec_btc /api2/1/tradeHistory/zec_cny The following APIs can be used for auto-trading in a program.
how bitcoin farming works

Notice: please set Content-Type to application/x-www-form-urlencoded in your HTTP request header if it's not the default value.Click here to obtain a Key and Secret.Use the the Secret as a passphrase to sign the POST data in SHA512 encryption.Send the Key and Sign back in HTTPS Header for Authentication.Please refer to the following instructions and PHP example codes.Get account fund balances API /api2/1/private/balances Parameter submission method: POST Parameter: None Return data format: JSON Return data example: get deposit address API /api2/1/private/depositAddress Parameter submission method: POST Parameter: Parameter Description Example currency 币种 LTC Return data format: JSON Return data example: get new address API /api2/1/private/newAddress Parameter submission method: POST Parameter: Parameter Description Example currency currency of new address LTC Return data format: JSON Return data example: get deposit withdrawal history API /api2/1/private/depositsWithdrawals Parameter submission method: POST Parameter: Parameter Description Example start start UNIX time 1469092370 end end UNIX time 1469713981 Return data format: JSON Return data example: Place order buy API /api2/1/private/buy Parameter submission method: POST Parameter: Parameter Description Example currencyPair currency pair ltc_btc rate The rate to buy 0.023 amount The amount to buy 100 Return data format: JSON Return data example: Notice: The returned orderNumber can be used for cancelling or getting order.
bitcoin rate graph in india

Place order sell API /api2/1/private/sell Parameter submission method: POST Parameter: Parameter Description Example currencyPair currency pair ltc_btc rate The rate to buy 0.023 amount The amount to buy 100 Return data format: JSON Return data example: Notice: The returned orderNumber can be used for cancelling or getting order.
ethereum eth or etcCancel order API /api2/1/private/cancelOrder Parameter submission method: POST Parameter: Parameter Description Example orderNumber Order ID 123456 Return data format: JSON Return data example: Cancel all orders API /api2/1/private/cancelAllOrders Parameter submission method: POST Parameter: Parameter Description Example type order type(0:sell,1:buy,-1:all) 0 currencyPair currency pair ltc_btc Return data format: JSON Return data example: Get order status API /api2/1/private/getOrder Parameter submission method: POST Parameter: Parameter Description Example orderNumber Order ID 123456 currencyPair Pair ltc_btc Return data format: JSON Return data example: Get my open order list API /api2/1/private/openOrders Parameter submission method: POST Parameter: None Return data format: JSON Return data example: Get my last 24h trades API /api2/1/private/tradeHistory Parameter submission method: POST Parameter: Parameter Description Example currencyPair currency pair ltc_btc orderNumber Order ID (optional) 626150 Return data format: JSON Return data example: withdrawal API /api2/1/private/withdraw Parameter submission method: POST Parameter: Parameter Description Example currency withdraw currency btc amount withdraw amount 0.01 address withdraw address 1HkxtBAMrA3tP5ENnYY2CZortjZvFDH5Cs Return data format: JSON Return data example: Example codes in PHP bitcoin borsen deutschland

please set Content-Type to application/x-www-form-urlencoded if it's not the default value // curl handle (initialize if required) static $ch = null; if (is_null($ch)) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; Bter PHP bot; '.php_uname('a').';} /api2/'.$path); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // run the query $res = curl_exec($ch); if ($res === false) throw new Exception('Could not get reply: '.curl_error($ch)); //var_dump($res); //print_r($res); $dec = json_decode($res, true); if (!$dec) throw new Exception('Invalid data received, please make sure connection is working and requested API exists: '.$res); return $dec; } function curl_file_get_contents($url) { // our curl handle (initialize if required) static $ch = null; if (is_null($ch)) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; Bter PHP bot; '.php_uname('a').';
litecoin location

); } /api2/'.$url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // run the query $res = curl_exec($ch); if ($res === false) throw new Exception('Could not get reply: '.curl_error($ch)); //echo $res; $dec = json_decode($res, true); if (!$dec) throw new Exception('Invalid data: '.$res); return $dec; } function get_top_rate($currency_pair, $type='BUY') { $url = '1/orderBook/'.strtoupper($currency_pair); $json = curl_file_get_contents($url); $rate = 0; if (strtoupper($type) == 'BUY') { $r = $json['bids'][0]; $rate = $r[0]; } else { $r = end($json['asks']); $rate = $r[0]; } return $rate; } function get_pairs() { $url = '1/pairs'; $json = curl_file_get_contents($url); return $json; } function get_marketinfo(){ $url = '1/marketinfo'; $json = curl_file_get_contents($url); return $json; } function get_tickers(){ $url = '1/tickers'; $json = curl_file_get_contents($url); return $json; } function get_ticker($current_pairs){ $url = '1/ticker/'.strtoupper($current_pairs); $json = curl_file_get_contents($url); return $json; } function get_orderbooks(){ $url = '1/orderBooks'; $json = curl_file_get_contents($url); return $json; } function get_orderbook($current_pairs){ $url = '1/orderBooks/'.strtoupper($current_pairs); $json = curl_file_get_contents($url); return $json; } function get_trade_history($current_pairs, $tid){ $url = '1/tradeHistory/'.strtoupper($current_pairs).'/'.$tid;
bitcoin escrow service

$json = curl_file_get_contents($url); return $json; } function get_balances() { return bter_query('1/private/balances'); } function get_order_trades($order_number) { return bter_query('1/private/orderTrades', array( 'orderNumber' => $order_number ) ); } function withdraw($currency, $amount, $address) { return bter_query('1/private/withdraw', array( 'currency' => strtoupper($currency), 'amount' => $amount, 'address' => $address ) ); } function get_order($order_number) { return bter_query('1/private/getOrder', array( 'orderNumber' => $order_number ) ); } function cancel_order($order_number) { return bter_query('1/private/cancelOrder', array( 'orderNumber' => $order_number ) ); } function cancel_all_orders($type, $currency_pair) { return bter_query('1/private/cancelAllOrders', array( 'type' => $type, 'currencyPair' => strtoupper($currency_pair) ) ); } function sell($currency_pair, $rate, $amount) { return bter_query('1/private/sell', array( 'currencyPair' => strtoupper($currency_pair), 'rate' => $rate, 'amount' => $amount, ) ); } function buy($currency_pair, $rate, $amount) { return bter_query('1/private/buy', array( 'currencyPair' => strtoupper($currency_pair), 'rate' => $rate, 'amount' => $amount, ) ); } function get_my_trade_history($currency_pair, $order_number) { return bter_query('1/private/tradeHistory', array( 'currencyPair' => strtoupper($currency_pair), 'orderNumber' => $order_number ) ); } function open_orders() { return bter_query('1/private/openOrders'); } function deposit_address($currency) { return bter_query('1/private/depositAddress', array( 'currency' => strtoupper($currency) ) ); } try { // example 1: get balances var_dump(get_balances()); // example 2: place a buy order $pair = 'ltc_btc'; $rate = get_top_rate($pair, $type) * 1.01; var_dump(buy($pair, $rate, '0.01')); // example 3: cancel an order var_dump(cancel_order(125811)); // example 4: get order status var_dump(get_order(15088)); // example 5: list all open orders var_dump(open_orders()); } catch (Exception $e) { echo "Error:".$e->getMessage(); } ?>
azure bitcoin mining