-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Bullish exchange integration #25884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bullish exchange integration #25884
Conversation
}, market); | ||
} | ||
|
||
async safeDeterministicCall (method: string, symbol: Str = undefined, since: Int = undefined, limit: Int = undefined, timeframe: Str = undefined, params = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum why we need this method here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we provide until
in params the exchange will return the latest limit
entries. In this case all calls of the method by fetchPaginatedCallDeterministic
will return the same entries. Thus we have to delete until
from params
before calling the method.
@AresArtemius I think we're missing the |
this.orderbooks[symbol] = this.orderBook (); | ||
} | ||
const orderbook = this.orderbooks[symbol]; | ||
const bids = this.separateBidsOrAsks (this.safeList (data, 'bids', [])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you sure we need this method? why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both price
and amount
are in the same array without any key to distinguish.
Even indexes (including 0) are prices, odd indexes are amounts. I don't know how to handle it in a different way.
No description provided.