question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bitfinex order history limit

See original GitHub issue
  • OS: Linux
  • Programming Language version: PHP
  • CCXT version: 1.18.923
  • Exchange: Bitfinex and Bitfinex2
  • Method: fetchClosedOrders

Bitfinex has a parameter ‘limit’ (https://docs.bitfinex.com/reference#rest-auth-orders-history) which doesn’t work when passing under params. This code only returns 93 orders… (there are def more than 93 orders on the exchange).

            $closedOrders = $exchange->fetchClosedOrders($market, null, 500, ['limit' => 500]);

Bitfinex2 crashes out with:

privatePostOrdersHist method not found, try underscore_notation instead of camelCase for the method being called.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LeighBicknellcommented, Jul 12, 2019

Well, technically, we accept JavaScript only, however, if you open the JavaScript fetchClosedOrders and the PHP fetchClosedOrders and compare them, you will immediately notice 0 differences

This is exactly what I was looking for.

I’m comfortable enough with Javascript. If I get a spare few hours i’ll look deeper into it all 😃

Thanks for all your help.

1reaction
kroitorcommented, Jul 12, 2019

@FlickerBean thx! We appreciate all PRs and contributions!

Where can I get more information on how to contribute via php

Here:

is this possible or are contributions to exchanges only allowed via Javascript due to the transpiling?

Well, technically, we accept JavaScript only, however, if you open the JavaScript fetchClosedOrders and the PHP fetchClosedOrders and compare them, you will immediate notice 0 differences:

Screen Shot 2019-07-12 at 11 38 57

↑ That code is literally the same line-to-line. That is because the code is designed to be portable. So, if you don’t feel confident with JavaScript, but you can code in PHP – you could still implement the proper method in JS just by copy-pasting the existing code.

When writing the new code we stick to these rules:

I have read https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md before. But it doesn’t make everything 100% clear.

Let us know if you have specific questions, will be happy to answer )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Orders History - Bitfinex API
Term Type Description ID int Order ID GID int Group ID CID int Client Order ID
Read more >
Bitfinex Order Types and Order Options
A Limit Order allows you to specify an amount and price you are able and willing to buy or sell. For example, if...
Read more >
What is a Limit Order on Bitfinex
A Limit Order enables you to buy or sell at your chosen price. Your limit order will be executed if the market hits...
Read more >
Retrieve Orders - Bitfinex API
Term Type Description ID int64 Order ID GID int Group ID CID int Client Order ID
Read more >
Historical Orders (deprecated)
Deprecated channel that retrieves past orders. ... TYPE, string, The type of the order: LIMIT, MARKET, STOP, TRAILING STOP, EXCHANGE MARKET, EXCHANGE LIMIT, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found