fetchTrades does not handle since parameter
See original GitHub issue- OS: win10
- Programming Language version: nodeJS, latest
- CCXT version: 1.18.685
- Exchange: kraken
- Method: fetchTrades
If I supply a since microtimestamp of 2018-01-01 and limit of 1,to get only 1 trade, I get the latest value as follows and not 2018 one. When I use a browser to try the kraken API, it works ok (https://api.kraken.com/0/public/Trades?pair=xbtusd&since=0)
{
"since": 1560415023540,
"value": [
[
{
"info": [
"229.89000",
"1.03544657",
1560415023.5403,
"b",
"l",
""
],
"timestamp": 1560415023540,
"datetime": "2019-06-13T08:37:03.540Z",
"symbol": "ETH/EUR",
"type": "limit",
"side": "buy",
"price": 229.89,
"amount": 1.03544657,
"cost": 238.0388119773
}
]
]
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Exchanges — ccxt 2.4.71 documentation
Some exchanges require this parameter for trading, but most of them don't. uid : A unique id of your account. This can be...
Read more >CCXT for WX.Network - Waves.Exchange
Fetch exchange transactions for the account by trading pair. Parameters and output are the same as the fetchTrades. For now, you can only...
Read more >How to Easily Fetch Binance Historical Trades Using Python
In low liquidity pairs, this parameter can be changed because there is no guarantee that a trade occurred in the first minute of...
Read more >Change Log – Binance API Documentation - GitHub Pages
{ "code": -1106, "msg": "Parameter X was sent when not required." } New behavior: If the combinations of optional parameters to the endpoint...
Read more >Overview — ccxt 1.13.142 文档
id name ver doc countries
_1broker 1Broker 2 API US
_1btcxe 1BTCXE * API Panama
acx ACX 2 API Australia
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
not entirely true, the response of that endpoint is structured as “{“error”:[],“result”:{“XETHZEUR”:[[“20.00000”,“4.50000000”,1438945790.9098,“b”,“l”,”“],[“20.00000”,“0.48000000”,1438945791.2365,“b”,“l”,”“],[“20.00000”,“3.37215150”,1438945954.1212,“s”,“l”,”"], where there is no tradaId as you say. This is the public endpoint, not private. When you try this in the browser, with since = 0, it goes well beyond year 2018. Will try to use your approach and reply.
@kyjak
Starts like this:
Then outputs lots of verbose data…
Then it gets to the actual fetchTrades call:
And in the end it outputs the set of trades in a table, which looks like so:
If you look at the last trade – you’ll see that it has an id, that’s the last trade id, reported by Kraken.
Here’s the id:
You can use
cli
to check your results.In code that would look like so: