Skip to content

Commit

Permalink
fix php transpilation of url params in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Nov 5, 2017
1 parent da16412 commit b1cf52e
Show file tree
Hide file tree
Showing 50 changed files with 423 additions and 421 deletions.
2 changes: 1 addition & 1 deletion php/acx.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function describe () {
'get' => array (
'markets', // Get all available markets
'tickers', // Get ticker of all markets
'tickers/array (market)', // Get ticker of specific market
'tickers/{market}', // Get ticker of specific market
'trades', // Get recent trades on market, each trade is included only once Trades are sorted in reverse creation order.
'order_book', // Get the order book of specified market
'depth', // Get depth or specified market Both asks and bids are sorted from highest price to lowest.
Expand Down
4 changes: 2 additions & 2 deletions php/anxpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function describe () {
'array (currency_pair)/money/order/quote',
'array (currency_pair)/money/order/result',
'array (currency_pair)/money/orders',
'money/array (currency)/address',
'money/array (currency)/send_simple',
'money/{currency}/address',
'money/{currency}/send_simple',
'money/info',
'money/trade/list',
'money/wallet/history',
Expand Down
6 changes: 3 additions & 3 deletions php/bit2c.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'Exchanges/array (pair)/Ticker',
'Exchanges/array (pair)/orderbook',
'Exchanges/array (pair)/trades',
'Exchanges/{pair}/Ticker',
'Exchanges/{pair}/orderbook',
'Exchanges/{pair}/trades',
),
),
'private' => array (
Expand Down
10 changes: 5 additions & 5 deletions php/bitbay.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'array (id)/all',
'array (id)/market',
'array (id)/orderbook',
'array (id)/ticker',
'array (id)/trades',
'{id}/all',
'{id}/market',
'{id}/orderbook',
'{id}/ticker',
'{id}/trades',
),
),
'private' => array (
Expand Down
6 changes: 3 additions & 3 deletions php/bitcoincoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'array (pair)/ticker',
'array (pair)/trades',
'array (pair)/depth',
'{pair}/ticker',
'{pair}/trades',
'{pair}/depth',
),
),
'private' => array (
Expand Down
20 changes: 10 additions & 10 deletions php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ public function describe () {
'api' => array (
'v2' => array (
'get' => array (
'candles/trade:array (timeframe):array (symbol)/array (section)',
'candles/trade:array (timeframe):array (symbol)/last',
'candles/trade:array (timeframe):array (symbol)/hist',
'candles/trade:{timeframe}:{symbol}/{section}',
'candles/trade:{timeframe}:{symbol}/last',
'candles/trade:{timeframe}:{symbol}/hist',
),
),
'public' => array (
'get' => array (
'book/array (symbol)',
// 'candles/array (symbol)',
'lendbook/array (currency)',
'lends/array (currency)',
'pubticker/array (symbol)',
'stats/array (symbol)',
'book/{symbol}',
// 'candles/{symbol}',
'lendbook/{currency}',
'lends/{currency}',
'pubticker/{symbol}',
'stats/{symbol}',
'symbols',
'symbols_details',
'today',
'trades/array (symbol)',
'trades/{symbol}',
),
),
'private' => array (
Expand Down
66 changes: 33 additions & 33 deletions php/bitfinex2.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ public function describe () {
'get' => array (
'platform/status',
'tickers',
'ticker/array (symbol)',
'trades/array (symbol)/hist',
'book/array (symbol)/array (precision)',
'book/array (symbol)/P0',
'book/array (symbol)/P1',
'book/array (symbol)/P2',
'book/array (symbol)/P3',
'book/array (symbol)/R0',
'ticker/{symbol}',
'trades/{symbol}/hist',
'book/{symbol}/{precision}',
'book/{symbol}/P0',
'book/{symbol}/P1',
'book/{symbol}/P2',
'book/{symbol}/P3',
'book/{symbol}/R0',
'symbols_details',
'stats1/array (key):array (size):array (symbol)/array (side)/array (section)',
'stats1/array (key):array (size):array (symbol)/long/last',
'stats1/array (key):array (size):array (symbol)/long/hist',
'stats1/array (key):array (size):array (symbol)/short/last',
'stats1/array (key):array (size):array (symbol)/short/hist',
'candles/trade:array (timeframe):array (symbol)/array (section)',
'candles/trade:array (timeframe):array (symbol)/last',
'candles/trade:array (timeframe):array (symbol)/hist',
'stats1/{key}:{size}:{symbol}/{side}/{section}',
'stats1/{key}:{size}:{symbol}/long/last',
'stats1/{key}:{size}:{symbol}/long/hist',
'stats1/{key}:{size}:{symbol}/short/last',
'stats1/{key}:{size}:{symbol}/short/hist',
'candles/trade:{timeframe}:{symbol}/{section}',
'candles/trade:{timeframe}:{symbol}/last',
'candles/trade:{timeframe}:{symbol}/hist',
),
'post' => array (
'calc/trade/avg',
Expand All @@ -69,25 +69,25 @@ public function describe () {
'private' => array (
'post' => array (
'auth/r/wallets',
'auth/r/orders/array (symbol)',
'auth/r/orders/array (symbol)/new',
'auth/r/orders/array (symbol)/hist',
'auth/r/order/array (symbol):array (id)/trades',
'auth/r/trades/array (symbol)/hist',
'auth/r/funding/offers/array (symbol)',
'auth/r/funding/offers/array (symbol)/hist',
'auth/r/funding/loans/array (symbol)',
'auth/r/funding/loans/array (symbol)/hist',
'auth/r/funding/credits/array (symbol)',
'auth/r/funding/credits/array (symbol)/hist',
'auth/r/funding/trades/array (symbol)/hist',
'auth/r/info/margin/array (key)',
'auth/r/info/funding/array (key)',
'auth/r/movements/array (currency)/hist',
'auth/r/stats/perf:array (timeframe)/hist',
'auth/r/orders/{symbol}',
'auth/r/orders/{symbol}/new',
'auth/r/orders/{symbol}/hist',
'auth/r/order/{symbol}:{id}/trades',
'auth/r/trades/{symbol}/hist',
'auth/r/funding/offers/{symbol}',
'auth/r/funding/offers/{symbol}/hist',
'auth/r/funding/loans/{symbol}',
'auth/r/funding/loans/{symbol}/hist',
'auth/r/funding/credits/{symbol}',
'auth/r/funding/credits/{symbol}/hist',
'auth/r/funding/trades/{symbol}/hist',
'auth/r/info/margin/{key}',
'auth/r/info/funding/{key}',
'auth/r/movements/{currency}/hist',
'auth/r/stats/perf:{timeframe}/hist',
'auth/r/alerts',
'auth/w/alert/set',
'auth/w/alert/array (type):array (symbol):array (price)/del',
'auth/w/alert/{type}:{symbol}:{price}/del',
'auth/calc/order/avail',
),
),
Expand Down
6 changes: 3 additions & 3 deletions php/bithumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'ticker/array (currency)',
'ticker/{currency}',
'ticker/all',
'orderbook/array (currency)',
'orderbook/{currency}',
'orderbook/all',
'recent_transactions/array (currency)',
'recent_transactions/{currency}',
'recent_transactions/all',
),
),
Expand Down
22 changes: 11 additions & 11 deletions php/bitmarket.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'json/array (market)/ticker',
'json/array (market)/orderbook',
'json/array (market)/trades',
'json/{market}/ticker',
'json/{market}/orderbook',
'json/{market}/trades',
'json/ctransfer',
'graphs/array (market)/90m',
'graphs/array (market)/6h',
'graphs/array (market)/1d',
'graphs/array (market)/7d',
'graphs/array (market)/1m',
'graphs/array (market)/3m',
'graphs/array (market)/6m',
'graphs/array (market)/1y',
'graphs/{market}/90m',
'graphs/{market}/6h',
'graphs/{market}/1d',
'graphs/{market}/7d',
'graphs/{market}/1m',
'graphs/{market}/3m',
'graphs/{market}/6m',
'graphs/{market}/1y',
),
),
'private' => array (
Expand Down
12 changes: 6 additions & 6 deletions php/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function describe () {
'balance',
'fees',
'fundings',
'fundings/array (fid)',
'fundings/{fid}',
'funding_destination',
'kyc_documents',
'ledger',
Expand All @@ -45,12 +45,12 @@ public function describe () {
'ledger/withdrawals',
'mx_bank_codes',
'open_orders',
'order_trades/array (oid)',
'orders/array (oid)',
'order_trades/{oid}',
'orders/{oid}',
'user_trades',
'user_trades/array (tid)',
'user_trades/{tid}',
'withdrawals/',
'withdrawals/array (wid)',
'withdrawals/{wid}',
),
'post' => array (
'bitcoin_withdrawal',
Expand All @@ -63,7 +63,7 @@ public function describe () {
'spei_withdrawal',
),
'delete' => array (
'orders/array (oid)',
'orders/{oid}',
'orders/all',
),
),
Expand Down
22 changes: 11 additions & 11 deletions php/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'order_book/array (pair)/',
'ticker_hour/array (pair)/',
'ticker/array (pair)/',
'transactions/array (pair)/',
'order_book/{pair}/',
'ticker_hour/{pair}/',
'ticker/{pair}/',
'transactions/{pair}/',
),
),
'private' => array (
'post' => array (
'balance/',
'balance/array (pair)/',
'balance/{pair}/',
'user_transactions/',
'user_transactions/array (pair)/',
'user_transactions/{pair}/',
'open_orders/all/',
'open_orders/array (pair)',
'open_orders/{pair}',
'order_status/',
'cancel_order/',
'buy/array (pair)/',
'buy/market/array (pair)/',
'sell/array (pair)/',
'sell/market/array (pair)/',
'buy/{pair}/',
'buy/market/{pair}/',
'sell/{pair}/',
'sell/market/{pair}/',
'ltc_withdrawal/',
'ltc_address/',
'eth_withdrawal/',
Expand Down
20 changes: 10 additions & 10 deletions php/bl3p.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'array (market)/ticker',
'array (market)/orderbook',
'array (market)/trades',
'{market}/ticker',
'{market}/orderbook',
'{market}/trades',
),
),
'private' => array (
'post' => array (
'array (market)/money/depth/full',
'array (market)/money/order/add',
'array (market)/money/order/cancel',
'array (market)/money/order/result',
'array (market)/money/orders',
'array (market)/money/orders/history',
'array (market)/money/trades/fetch',
'{market}/money/depth/full',
'{market}/money/order/add',
'{market}/money/order/cancel',
'{market}/money/order/result',
'{market}/money/orders',
'{market}/money/orders/history',
'{market}/money/trades/fetch',
'GENMKT/money/info',
'GENMKT/money/deposit_address',
'GENMKT/money/new_deposit_address',
Expand Down
8 changes: 4 additions & 4 deletions php/btcmarkets.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'market/array (id)/tick',
'market/array (id)/orderbook',
'market/array (id)/trades',
'market/{id}/tick',
'market/{id}/orderbook',
'market/{id}/trades',
),
),
'private' => array (
'get' => array (
'account/balance',
'account/array (id)/tradingfee',
'account/{id}/tradingfee',
),
'post' => array (
'fundtransfer/withdrawCrypto',
Expand Down
22 changes: 11 additions & 11 deletions php/btctradeua.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'deals/array (symbol)',
'trades/sell/array (symbol)',
'trades/buy/array (symbol)',
'japan_stat/high/array (symbol)',
'deals/{symbol}',
'trades/sell/{symbol}',
'trades/buy/{symbol}',
'japan_stat/high/{symbol}',
),
),
'private' => array (
'post' => array (
'auth',
'ask/array (symbol)',
'ask/{symbol}',
'balance',
'bid/array (symbol)',
'buy/array (symbol)',
'my_orders/array (symbol)',
'order/status/array (id)',
'remove/order/array (id)',
'sell/array (symbol)',
'bid/{symbol}',
'buy/{symbol}',
'my_orders/{symbol}',
'order/status/{id}',
'remove/order/{id}',
'sell/{symbol}',
),
),
),
Expand Down
6 changes: 3 additions & 3 deletions php/btcx.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public function describe () {
'api' => array (
'public' => array (
'get' => array (
'depth/array (id)/array (limit)',
'ticker/array (id)',
'trade/array (id)/array (limit)',
'depth/{id}/{limit}',
'ticker/{id}',
'trade/{id}/{limit}',
),
),
'private' => array (
Expand Down
Loading

0 comments on commit b1cf52e

Please sign in to comment.