Skip to content

Commit

Permalink
1.10.798
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 21, 2018
1 parent b0e7ed3 commit e3e60cc
Show file tree
Hide file tree
Showing 298 changed files with 2,234 additions and 2,249 deletions.
2,249 changes: 1,179 additions & 1,070 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.797'
const version = '1.10.798'

Exchange.ccxtVersion = version

Expand Down
31 changes: 25 additions & 6 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,30 @@ Here's an overview of base exchange properties with values added for example:
},
'version': 'v1', // string ending with digits
'api': { ... }, // dictionary of api endpoints
'has': {
'fetchTickers': true, // true if the exchange implements fetchTickers ()
'fetchOHLCV': false, // true if the exchange implements fetchOHLCV ()
'has': { // exchange capabilities
'CORS': false,
'publicAPI': true,
'privateAPI': true,
'cancelOrder': true,
'createDepositAddress': false,
'createOrder': true,
'deposit': false,
'fetchBalance': true,
'fetchClosedOrders': false,
'fetchCurrencies': false,
'fetchDepositAddress': false,
'fetchMarkets': true,
'fetchMyTrades': false,
'fetchOHLCV': false,
'fetchOpenOrders': false,
'fetchOrder': false,
'fetchOrderBook': true,
'fetchOrders': false,
'fetchTicker': true,
'fetchTickers': false,
'fetchBidsAsks': false,
'fetchTrades': true,
'withdraw': false,
},
'timeframes': { // empty if the exchange !has.fetchOHLCV
'1m': '1minute',
Expand Down Expand Up @@ -387,9 +408,7 @@ Below is a detailed description of each of the base exchange properties:

- ``api``: An associative array containing a definition of all API endpoints exposed by a crypto exchange. The API definition is used by ccxt to automatically construct callable instance methods for each available endpoint.

- ``hasFetchTickers``: This is a boolean property indicating if the exchange has the fetchTickers () method available. When this property is false, the exchange will also throw a NotSupported exception upon a call to fetchTickers ().

- ``hasFetchOHLCV``: This is a boolean property indicating if the exchange has the fetchOHLCV () method available. When this property is false, the exchange will also throw a NotSupported exception upon a call to fetchOHLCV (). Also, if this property is true, the ``timeframes`` property is populated as well.
- ``has``: This is an associative array of exchange capabilities (e.g ``fetchTickers``, ``fetchOHLCV`` or ``CORS``).

- ``timeframes``: An associative array of timeframes, supported by the fetchOHLCV method of the exchange. This is only populated when ``hasFetchTickers`` property is true.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.10.797",
"version": "1.10.798",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.797';
$version = '1.10.798';

abstract class Exchange {

Expand Down
10 changes: 6 additions & 4 deletions php/_1broker.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public function describe () {
'countries' => 'US',
'rateLimit' => 1500,
'version' => 'v2',
'hasPublicAPI' => false,
'hasCORS' => true,
'hasFetchTrades' => false,
'hasFetchOHLCV' => true,
'has' => array (
'publicAPI' => false,
'CORS' => true,
'fetchTrades' => false,
'fetchOHLCV' => true,
),
'timeframes' => array (
'1m' => '60',
'15m' => '900',
Expand Down
8 changes: 5 additions & 3 deletions php/_1btcxe.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ public function describe () {
'name' => '1BTCXE',
'countries' => 'PA', // Panama
'comment' => 'Crypto Capital API',
'hasCORS' => true,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => true,
'fetchTickers' => true,
'withdraw' => true,
),
'timeframes' => array (
'1d' => '1year',
),
Expand Down
10 changes: 6 additions & 4 deletions php/acx.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public function describe () {
'countries' => 'AU',
'rateLimit' => 1000,
'version' => 'v2',
'hasCORS' => true,
'hasFetchTickers' => true,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => true,
'fetchTickers' => true,
'fetchOHLCV' => true,
'withdraw' => true,
),
'timeframes' => array (
'1m' => '1',
'5m' => '5',
Expand Down
4 changes: 3 additions & 1 deletion php/allcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ public function describe () {
'id' => 'allcoin',
'name' => 'Allcoin',
'countries' => 'CA',
'hasCORS' => false,
'has' => array (
'CORS' => false,
),
'extension' => '',
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/31561809-c316b37c-b061-11e7-8d5a-b547b4d730eb.jpg',
Expand Down
8 changes: 5 additions & 3 deletions php/anxpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ public function describe () {
'countries' => array ( 'JP', 'SG', 'HK', 'NZ' ),
'version' => '2',
'rateLimit' => 1500,
'hasCORS' => false,
'hasFetchTrades' => false,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'fetchTrades' => false,
'withdraw' => true,
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27765983-fd8595da-5ec9-11e7-82e3-adb3ab8c2612.jpg',
'api' => 'https://anxpro.com/api',
Expand Down
11 changes: 2 additions & 9 deletions php/bibox.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ public function describe () {
'name' => 'Bibox',
'countries' => array ( 'CN', 'US', 'KR' ),
'version' => 'v1',
'hasCORS' => false,
'hasPublicAPI' => false,
'hasFetchBalance' => true,
'hasFetchCurrencies' => true,
'hasFetchTickers' => true,
'hasFetchOrders' => true,
'hasFetchMyTrades' => true,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'publicAPI' => false,
'fetchBalance' => true,
'fetchCurrencies' => true,
'fetchDepositAddress' => true,
Expand Down
11 changes: 1 addition & 10 deletions php/binance.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ public function describe () {
'name' => 'Binance',
'countries' => 'JP', // Japan
'rateLimit' => 500,
'hasCORS' => false,
// obsolete metainfo interface
'hasFetchBidsAsks' => true,
'hasFetchTickers' => true,
'hasFetchOHLCV' => true,
'hasFetchMyTrades' => true,
'hasFetchOrder' => true,
'hasFetchOrders' => true,
'hasFetchOpenOrders' => true,
'hasWithdraw' => true,
// new metainfo interface
'has' => array (
'fetchDepositAddress' => true,
'CORS' => false,
'fetchBidsAsks' => true,
'fetchTickers' => true,
'fetchOHLCV' => true,
Expand Down
4 changes: 3 additions & 1 deletion php/bit2c.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public function describe () {
'name' => 'Bit2C',
'countries' => 'IL', // Israel
'rateLimit' => 3000,
'hasCORS' => false,
'has' => array (
'CORS' => false,
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27766119-3593220e-5ece-11e7-8b3a-5a041f6bcc3f.jpg',
'api' => 'https://www.bit2c.co.il',
Expand Down
6 changes: 4 additions & 2 deletions php/bitbay.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ public function describe () {
'name' => 'BitBay',
'countries' => array ( 'PL', 'EU' ), // Poland
'rateLimit' => 1000,
'hasCORS' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => true,
'withdraw' => true
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27766132-978a7bd8-5ece-11e7-9540-bc96d1e9bbb8.jpg',
'www' => 'https://bitbay.net',
Expand Down
13 changes: 1 addition & 12 deletions php/bitcoincoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,8 @@ public function describe () {
'id' => 'bitcoincoid',
'name' => 'Bitcoin.co.id',
'countries' => 'ID', // Indonesia
'hasCORS' => false,
// obsolete metainfo interface
'hasFetchTickers' => false,
'hasFetchOHLCV' => false,
'hasFetchOrder' => true,
'hasFetchOrders' => false,
'hasFetchClosedOrders' => true,
'hasFetchOpenOrders' => true,
'hasFetchMyTrades' => false,
'hasFetchCurrencies' => false,
'hasWithdraw' => false,
// new metainfo interface
'has' => array (
'CORS' => false,
'fetchTickers' => false,
'fetchOHLCV' => false,
'fetchOrder' => true,
Expand Down
10 changes: 1 addition & 9 deletions php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@ public function describe () {
'countries' => 'VG',
'version' => 'v1',
'rateLimit' => 1500,
'hasCORS' => false,
// old metainfo interface
'hasFetchOrder' => true,
'hasFetchTickers' => true,
'hasDeposit' => true,
'hasWithdraw' => true,
'hasFetchOHLCV' => true,
'hasFetchOpenOrders' => true,
'hasFetchClosedOrders' => true,
// new metainfo interface
'has' => array (
'createDepositAddress' => true,
'fetchDepositAddress' => true,
'CORS' => false,
'fetchOHLCV' => true,
'fetchTickers' => true,
'fetchOrder' => true,
Expand Down
12 changes: 2 additions & 10 deletions php/bitfinex2.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,11 @@ public function describe () {
'name' => 'Bitfinex v2',
'countries' => 'VG',
'version' => 'v2',
'hasCORS' => true,
// old metainfo interface
'hasCreateOrder' => false,
'hasFetchOrder' => true,
'hasFetchTickers' => true,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'hasDeposit' => false,
'hasFetchOpenOrders' => false,
'hasFetchClosedOrders' => false,
// new metainfo interface
'has' => array (
'CORS' => true,
'createOrder' => false,
'fetchMyTrades' => false,
'fetchOHLCV' => true,
'fetchTickers' => true,
'fetchOrder' => true,
Expand Down
6 changes: 4 additions & 2 deletions php/bitflyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ public function describe () {
'countries' => 'JP',
'version' => 'v1',
'rateLimit' => 500,
'hasCORS' => false,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'withdraw' => true
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/28051642-56154182-660e-11e7-9b0d-6042d1e6edd8.jpg',
'api' => 'https://api.bitflyer.jp',
Expand Down
10 changes: 3 additions & 7 deletions php/bithumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ public function describe () {
'name' => 'Bithumb',
'countries' => 'KR', // South Korea
'rateLimit' => 500,
'hasCORS' => true,
// obsolete metainfo interface
'hasFetchTickers' => true,
'hasWithdraw' => true,
// new metainfo interface
'has' => array (
'CORS' => true,
'fetchTickers' => true,
'withdraw' => true,
),
Expand Down Expand Up @@ -203,10 +199,10 @@ public function fetch_ticker ($symbol, $params = array ()) {
public function parse_trade ($trade, $market) {
// a workaround for their bug in date format, hours are not 0-padded
list ($transaction_date, $transaction_time) = explode (' ', $trade['transaction_date']);
$transaction_time_short = strlen ($transaction_time) < 8;
if ($transaction_time_short)
if (strlen ($transaction_time) < 8)
$transaction_time = '0' . $transaction_time;
$timestamp = $this->parse8601 ($transaction_date . ' ' . $transaction_time);
$timestamp -= 9 * 3600000; // they report UTC . 9 hours (is_array (Korean timezone) && array_key_exists (server, Korean timezone))
$side = ($trade['type'] === 'ask') ? 'sell' : 'buy';
return array (
'id' => null,
Expand Down
10 changes: 6 additions & 4 deletions php/bitlish.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public function describe () {
'countries' => array ( 'GB', 'EU', 'RU' ),
'rateLimit' => 1500,
'version' => 'v1',
'hasCORS' => false,
'hasFetchTickers' => true,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'fetchTickers' => true,
'fetchOHLCV' => true,
'withdraw' => true,
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27766275-dcfc6c30-5ed3-11e7-839d-00a846385d0b.jpg',
'api' => 'https://bitlish.com/api',
Expand Down
8 changes: 5 additions & 3 deletions php/bitmarket.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ public function describe () {
'name' => 'BitMarket',
'countries' => array ( 'PL', 'EU' ),
'rateLimit' => 1500,
'hasCORS' => false,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'fetchOHLCV' => true,
'withdraw' => true,
),
'timeframes' => array (
'90m' => '90m',
'6h' => '6h',
Expand Down
8 changes: 5 additions & 3 deletions php/bitmex.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ public function describe () {
'version' => 'v1',
'userAgent' => null,
'rateLimit' => 1500,
'hasCORS' => false,
'hasFetchOHLCV' => true,
'hasWithdraw' => true,
'has' => array (
'CORS' => false,
'fetchOHLCV' => true,
'withdraw' => true,
),
'timeframes' => array (
'1m' => '1m',
'5m' => '5m',
Expand Down
4 changes: 3 additions & 1 deletion php/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ public function describe () {
'countries' => 'MX', // Mexico
'rateLimit' => 2000, // 30 requests per minute
'version' => 'v3',
'hasCORS' => true,
'has' => array (
'CORS' => true,
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27766335-715ce7aa-5ed5-11e7-88a8-173a27bb30fe.jpg',
'api' => 'https://api.bitso.com',
Expand Down
6 changes: 1 addition & 5 deletions php/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ public function describe () {
'countries' => 'GB',
'rateLimit' => 1000,
'version' => 'v2',
'hasCORS' => false,
// obsolete metainfo interface
'hasFetchOrder' => true,
'hasWithdraw' => true,
// new metainfo interface
'has' => array (
'CORS' => true,
'fetchOrder' => true,
'withdraw' => true,
),
Expand Down
4 changes: 3 additions & 1 deletion php/bitstamp1.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ public function describe () {
'countries' => 'GB',
'rateLimit' => 1000,
'version' => 'v1',
'hasCORS' => true,
'has' => array (
'CORS' => true,
),
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27786377-8c8ab57e-5fe9-11e7-8ea4-2b05b6bcceec.jpg',
'api' => 'https://www.bitstamp.net/api',
Expand Down
Loading

0 comments on commit e3e60cc

Please sign in to comment.