Skip to content

Commit

Permalink
transpiler wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 30, 2017
1 parent 7b798d6 commit c3ff38d
Show file tree
Hide file tree
Showing 101 changed files with 147 additions and 102 deletions.
2 changes: 1 addition & 1 deletion js/bitmex.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = class bitmex extends Exchange {
'order',
'order/all',
],
}
},
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion js/bitso.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = class bitso extends Exchange {
'orders/{oid}',
'orders/all',
],
}
},
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions js/bitstamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ module.exports = class bitstamp extends Exchange {
'bitcoin_deposit_address/',
'unconfirmed_btc/',
'bitcoin_withdrawal/',
]
}
],
},
},
'markets': {
'BTC/USD': { 'id': 'btcusd', 'symbol': 'BTC/USD', 'base': 'BTC', 'quote': 'USD' },
Expand Down
2 changes: 1 addition & 1 deletion js/btce.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = class btce extends Exchange {
'RedeemCoupon',
],
},
}
},
});
}

Expand Down
2 changes: 1 addition & 1 deletion js/cex.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = class cex extends Exchange {
'open_positions/{pair}/',
'place_order/{pair}/',
],
}
},
},
'fees': {
'trading': {
Expand Down
2 changes: 1 addition & 1 deletion js/foxbit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = class foxbit extends blinktrade {
'comment': 'Blinktrade API',
'markets': {
'BTC/BRL': { 'id': 'BTCBRL', 'symbol': 'BTC/BRL', 'base': 'BTC', 'quote': 'BRL', 'brokerId': 4, 'broker': 'FoxBit' },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/fybse.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = class fybse extends fyb {
},
'markets': {
'BTC/SEK': { 'id': 'SEK', 'symbol': 'BTC/SEK', 'base': 'BTC', 'quote': 'SEK' },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/gateio.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = class gateio extends bter {
},
'www': 'https://gate.io/',
'doc': 'https://gate.io/api2',
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/hitbtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = class hitbtc extends Exchange {
'address/{currency}',
'payout',
],
}
},
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion js/okcoincny.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = class okcoincny extends okcoin {
'ETH/CNY': { 'id': 'eth_cny', 'symbol': 'ETH/CNY', 'base': 'ETH', 'quote': 'CNY', 'type': 'spot', 'spot': true, 'future': false },
'ETC/CNY': { 'id': 'etc_cny', 'symbol': 'ETC/CNY', 'base': 'ETC', 'quote': 'CNY', 'type': 'spot', 'spot': true, 'future': false },
'BCH/CNY': { 'id': 'bcc_cny', 'symbol': 'BCH/CNY', 'base': 'BCH', 'quote': 'CNY', 'type': 'spot', 'spot': true, 'future': false },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/okcoinusd.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = class okcoinusd extends okcoin {
'LTC/USD': { 'id': 'ltc_usd', 'symbol': 'LTC/USD', 'base': 'LTC', 'quote': 'USD', 'type': 'spot', 'spot': true, 'future': false },
'ETH/USD': { 'id': 'eth_usd', 'symbol': 'ETH/USD', 'base': 'ETH', 'quote': 'USD', 'type': 'spot', 'spot': true, 'future': false },
'ETC/USD': { 'id': 'etc_usd', 'symbol': 'ETC/USD', 'base': 'ETC', 'quote': 'USD', 'type': 'spot', 'spot': true, 'future': false },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/okex.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = class okex extends okcoin {
'ETH/BTC': { 'id': 'eth_btc', 'symbol': 'ETH/BTC', 'base': 'ETH', 'quote': 'BTC', 'type': 'spot', 'spot': true, 'future': false },
'ETC/BTC': { 'id': 'etc_btc', 'symbol': 'ETC/BTC', 'base': 'ETC', 'quote': 'BTC', 'type': 'spot', 'spot': true, 'future': false },
'BCH/BTC': { 'id': 'bcc_btc', 'symbol': 'BCH/BTC', 'base': 'BCH', 'quote': 'BTC', 'type': 'spot', 'spot': true, 'future': false },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/poloniex.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = class poloniex extends Exchange {
'cost': {
'min': 0.00000000,
'max': 1000000000,
}
},
},
'precision': {
'amount': 8,
Expand Down
2 changes: 1 addition & 1 deletion js/quoine.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = class quoine extends qryptos {
'api': 'https://api.quoine.com',
'www': 'https://www.quoine.com',
'doc': 'https://developers.quoine.com',
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/surbitcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = class surbitcoin extends blinktrade {
'comment': 'Blinktrade API',
'markets': {
'BTC/VEF': { 'id': 'BTCVEF', 'symbol': 'BTC/VEF', 'base': 'BTC', 'quote': 'VEF', 'brokerId': 1, 'broker': 'SurBitcoin' },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/tidex.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = class tidex extends btce {
'www': 'https://tidex.com',
'doc': 'https://tidex.com/public-api',
'fees': 'https://tidex.com/pairs-spec'
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/urdubit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = class urdubit extends blinktrade {
'comment': 'Blinktrade API',
'markets': {
'BTC/PKR': { 'id': 'BTCPKR', 'symbol': 'BTC/PKR', 'base': 'BTC', 'quote': 'PKR', 'brokerId': 8, 'broker': 'UrduBit' },
}
},
});
}
}
2 changes: 1 addition & 1 deletion js/vbtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = class vbtc extends blinktrade {
'comment': 'Blinktrade API',
'markets': {
'BTC/VND': { 'id': 'BTCVND', 'symbol': 'BTC/VND', 'base': 'BTC', 'quote': 'VND', 'brokerId': 3, 'broker': 'VBTC' },
}
},
});
}
}
4 changes: 2 additions & 2 deletions js/wex.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module.exports = class wex extends btce {
'CreateCoupon',
'RedeemCoupon',
],
}
}
},
},
});
}

Expand Down
2 changes: 1 addition & 1 deletion js/yobit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = class yobit extends btce {
'taker': 0.002,
},
'funding': 0.0,
}
},
});
}

Expand Down
2 changes: 1 addition & 1 deletion js/yunbi.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = class yunbi extends acx {
'orders/clear',
],
},
}
},
});
}
}
2 changes: 1 addition & 1 deletion php/_1btcxe.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('cryptocapital.php');

class _1btcxe extends cryptocapital {

Expand Down
2 changes: 1 addition & 1 deletion php/allcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('okcoin.php');

class allcoin extends okcoin {

Expand Down
2 changes: 1 addition & 1 deletion php/bitfinex2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('bitfinex.php');

class bitfinex2 extends bitfinex {

Expand Down
4 changes: 2 additions & 2 deletions php/bitmex.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class bitmex extends Exchange {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'bitmex',
'name' => 'BitMEX',
'countries' => 'SC', // Seychelles
Expand Down Expand Up @@ -115,7 +115,7 @@ public function describe () {
'order',
'order/all',
),
}
),
),
));
}
Expand Down
4 changes: 2 additions & 2 deletions php/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class bitso extends Exchange {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'bitso',
'name' => 'Bitso',
'countries' => 'MX', // Mexico
Expand Down Expand Up @@ -66,7 +66,7 @@ public function describe () {
'orders/array (oid)',
'orders/all',
),
}
),
),
));
}
Expand Down
6 changes: 3 additions & 3 deletions php/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class bitstamp extends Exchange {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'bitstamp',
'name' => 'Bitstamp',
'countries' => 'GB',
Expand Down Expand Up @@ -64,8 +64,8 @@ public function describe () {
'bitcoin_deposit_address/',
'unconfirmed_btc/',
'bitcoin_withdrawal/',
)
}
),
),
),
'markets' => array (
'BTC/USD' => array ( 'id' => 'btcusd', 'symbol' => 'BTC/USD', 'base' => 'BTC', 'quote' => 'USD' ),
Expand Down
2 changes: 1 addition & 1 deletion php/bleutrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('bittrex.php');

class bleutrade extends bittrex {

Expand Down
2 changes: 1 addition & 1 deletion php/btcbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('asia.php');

class btcbox extends asia {

Expand Down
4 changes: 2 additions & 2 deletions php/btce.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class btce extends Exchange {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'btce',
'name' => 'BTC-e',
'comment' => 'Base API for many markets, including Liqui, WEX, Tidex, DSX, YoBit...',
Expand Down Expand Up @@ -42,7 +42,7 @@ public function describe () {
'RedeemCoupon',
),
),
}
),
));
}

Expand Down
2 changes: 1 addition & 1 deletion php/btcexchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('btctrader.php');

class btcexchange extends btctrader {

Expand Down
2 changes: 1 addition & 1 deletion php/btcturk.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('btctrader.php');

class btcturk extends btctrader {

Expand Down
4 changes: 2 additions & 2 deletions php/cex.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class cex extends Exchange {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'cex',
'name' => 'CEX.IO',
'countries' => array ( 'GB', 'EU', 'CY', 'RU' ),
Expand Down Expand Up @@ -61,7 +61,7 @@ public function describe () {
'open_positions/array (pair)/',
'place_order/array (pair)/',
),
}
),
),
'fees' => array (
'trading' => array (
Expand Down
2 changes: 1 addition & 1 deletion php/chilebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('blinktrade.php');

class chilebit extends blinktrade {

Expand Down
2 changes: 1 addition & 1 deletion php/dsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('btce.php');

class dsx extends btce {

Expand Down
6 changes: 3 additions & 3 deletions php/foxbit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace ccxt;

include_once ('base/Exchange.php');
include_once ('blinktrade.php');

class foxbit extends blinktrade {

public function describe () {
return array_replace_recursive (parent::describe (), {
return array_replace_recursive (parent::describe (), array (
'id' => 'foxbit',
'name' => 'FoxBit',
'countries' => 'BR',
Expand All @@ -24,7 +24,7 @@ public function describe () {
'comment' => 'Blinktrade API',
'markets' => array (
'BTC/BRL' => array ( 'id' => 'BTCBRL', 'symbol' => 'BTC/BRL', 'base' => 'BTC', 'quote' => 'BRL', 'brokerId' => 4, 'broker' => 'FoxBit' ),
}
),
));
}
}
Expand Down
Loading

0 comments on commit c3ff38d

Please sign in to comment.