Skip to content

Commit

Permalink
1.13.145
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 14, 2018
1 parent 137db36 commit 3ace2bd
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 24 deletions.
4 changes: 2 additions & 2 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.13.144'
const version = '1.13.145'

Exchange.ccxtVersion = version

Expand Down
32 changes: 17 additions & 15 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3073,6 +3073,23 @@ A typical structure of the ``.has`` property usually contains the following flag

The meanings of boolean ``true`` and ``false`` are obvious. A string value of ``emulated`` means that particular method is missing in the exchange API and ccxt will workaround that where possible by adding a caching layer, the ``.orders`` cache. The next section describes the inner workings of the ``.orders`` cache, one has to understand it to do order management with ccxt effectively.

Querying Multiple Orders And Trades
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

All methods returning lists of trades and lists of orders, accept the second ``since`` argument and the third ``limit`` argument:

- ``fetchTrades`` (public)
- ``fetchMyTrades`` (private)
- ``fetchOrders``
- ``fetchOpenOrders``
- ``fetchClosedOrders``

The second argument ``since`` reduces the array by timestamp, the third ``limit`` argument reduces by number (count) of returned items.

If the user does not specify ``since``, the ``fetchTrades/fetchOrders`` method will return the default set from the exchange. The default set is exchange-specific, some exchanges will return trades or recent orders starting from the date of listing a pair on the exchange, other exchanges will return a reduced set of trades or orders (like, last 24 hours, last 100 trades, first 100 orders, etc). If the user wants precise control over the timeframe, the user is responsible for specifying the ``since`` argument.

**NOTE: not all exchanges provide means for filtering the lists of trades and orders by starting time, so, the support for ``since`` and ``limit`` is exchange-specific. However, most exchanges do provide at least some alternative for "pagination" and "scrolling" which can be overrided with extra ``params`` argument.**

``.orders`` cache
^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -3178,21 +3195,6 @@ Below are examples of using the fetchOrder method to get order info from an auth
var_dump ($order);
}

Querying Multiple Orders
^^^^^^^^^^^^^^^^^^^^^^^^

All methods returning lists of trades and lists of orders, accept the second ``since`` argument and the third ``limit`` argument:

- ``fetchTrades`` (public)
- ``fetchMyTrades`` (private)
- ``fetchOrders``
- ``fetchOpenOrders``
- ``fetchClosedOrders``

The second argument ``since`` reduces the array by timestamp, the third ``limit`` argument reduces by number (count) of returned items.

If the user does not specify ``since``, the ``fetchTrades/fetchOrders`` method will return the default set from the exchange. The default set is exchange-specific, some exchanges will return trades or recent orders starting from the date of listing a pair on the exchange, other exchanges will return a reduced set of trades or orders (like, last 24 hours, last 100 trades, first 100 orders, etc). If the user wants precise control over the timeframe, the user is responsible for specifying the ``since`` argument.

All Orders
^^^^^^^^^^

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.13.144",
"version": "1.13.145",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ 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.13.144';
$version = '1.13.145';

// rounding mode
const TRUNCATE = 0;
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# ----------------------------------------------------------------------------

__version__ = '1.13.144'
__version__ = '1.13.145'

# ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.13.144'
__version__ = '1.13.145'

# -----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.13.144'
__version__ = '1.13.145'

# -----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.13.144'
__version__ = '1.13.145'

# -----------------------------------------------------------------------------

Expand Down

0 comments on commit 3ace2bd

Please sign in to comment.