Skip to content

Commit

Permalink
1.10.908
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 29, 2018
1 parent 1795185 commit 7f4a1d2
Show file tree
Hide file tree
Showing 302 changed files with 968 additions and 30 deletions.
27 changes: 19 additions & 8 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.907'
const version = '1.10.908'

Exchange.ccxtVersion = version

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.907",
"version": "1.10.908",
"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.907';
$version = '1.10.908';

abstract class Exchange {

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

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class _1broker extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/_1btcxe.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class _1btcxe extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/acx.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class acx extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/allcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class allcoin extends okcoinusd {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/anxpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class anxpro extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bibox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bibox extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/binance.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class binance extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bit2c.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bit2c extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitbay.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitbay extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitcoincoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitcoincoid extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitfinex extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitfinex2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitfinex2 extends bitfinex {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitflyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitflyer extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bithumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bithumb extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitlish.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitlish extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitmarket.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitmarket extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitmex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitmex extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitso extends Exchange {

public function describe () {
Expand Down
24 changes: 19 additions & 5 deletions php/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitstamp extends Exchange {

public function describe () {
Expand Down Expand Up @@ -424,11 +427,22 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function request ($path, $api = 'public', $method = 'GET', $params = array (), $headers = null, $body = null) {
$response = $this->fetch2 ($path, $api, $method, $params, $headers, $body);
if (is_array ($response) && array_key_exists ('status', $response))
if ($response['status'] === 'error')
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body) {
if (gettype ($body) != 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
return; // fallback to default error handler
if (($body[0] === '{') || ($body[0] === '[')) {
$response = json_decode ($body, $as_associative_array = true);
$status = $this->safe_string($response, 'status');
if ($status === 'error') {
$code = $this->safe_string($response, 'code');
if ($code !== null) {
if ($code === 'API0005')
throw new AuthenticationError ($this->id . ' invalid signature, use the uid for the main account if you have subaccounts');
}
throw new ExchangeError ($this->id . ' ' . $this->json ($response));
return $response;
}
}
}
}
3 changes: 3 additions & 0 deletions php/bitstamp1.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bitstamp1 extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bittrex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bittrex extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bl3p.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bl3p extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bleutrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bleutrade extends bittrex {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/braziliex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class braziliex extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcbox extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcchina.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcchina extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcexchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcexchange extends btcturk {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcmarkets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcmarkets extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btctradeua.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btctradeua extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcturk.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcturk extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/btcx.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class btcx extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bter extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/bxinth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class bxinth extends Exchange {

public function describe () {
Expand Down
3 changes: 3 additions & 0 deletions php/ccex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ccxt;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

class ccex extends Exchange {

public function describe () {
Expand Down
Loading

0 comments on commit 7f4a1d2

Please sign in to comment.