Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Aug 14, 2018
1 parent bba79c8 commit c9f4673
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
use kornrunner\Secp256k1;
use kornrunner\Solidity;

$version = '1.17.119';
$version = '1.17.122';

// rounding mode
const TRUNCATE = 0;
Expand All @@ -50,7 +50,7 @@

class Exchange {

const VERSION = '1.17.119';
const VERSION = '1.17.122';

public static $eth_units = array (
'wei' => '1',
Expand Down
1 change: 1 addition & 0 deletions src/bibox.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function describe () {
'https://github.com/Biboxcom/api_reference/wiki/api_reference',
),
'fees' => 'https://bibox.zendesk.com/hc/en-us/articles/115004417013-Fee-Structure-on-Bibox',
'referral' => 'https://www.bibox.com/signPage?id=11114745&lang=en',
),
'api' => array (
'public' => array (
Expand Down
2 changes: 1 addition & 1 deletion src/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function describe () {
'has' => array (
'CORS' => true,
'fetchDepositAddress' => true,
'fetchOrder' => true,
'fetchOrder' => 'emulated',
'fetchOpenOrders' => true,
'fetchMyTrades' => true,
'withdraw' => true,
Expand Down
7 changes: 5 additions & 2 deletions src/gdax.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ public function parse_trade ($trade, $market = null) {
// GDAX returns inverted $side to fetchMyTrades vs fetchTrades
if ($orderId !== null)
$side = ($trade['side'] === 'buy') ? 'buy' : 'sell';
$price = $this->safe_float($trade, 'price');
$amount = $this->safe_float($trade, 'size');
return array (
'id' => $id,
'order' => $orderId,
Expand All @@ -294,9 +296,10 @@ public function parse_trade ($trade, $market = null) {
'symbol' => $symbol,
'type' => $type,
'side' => $side,
'price' => $this->safe_float($trade, 'price'),
'amount' => $this->safe_float($trade, 'size'),
'price' => $price,
'amount' => $amount,
'fee' => $fee,
'cost' => $price * $amount,
);
}

Expand Down

0 comments on commit c9f4673

Please sign in to comment.