I checked the manual but could not locate the information.
Some - or perhaps all - exchanges make the current server time (as epoch) available. For example, see top of;
https://yobit.net/api/3/info
Is there a universal way to update/retrieve and then see this time from within ccxt? How would I obtain this using PHP?
Hi!
Is there a universal way to update/retrieve and then see this time from within ccxt?
Currently, we don't have this functionality implemented in a unified way everywhere yet, however, some exchanges do have a fetchTime method implemented that would return the timestamp since epoch in milliseconds. We hope to add these methods to other exchanges where available, soon.
https://github.com/ccxt/ccxt/blob/master/js/gdax.js#L355
The overall status of this work is "in its very beginning".
In other words, you can still fetch the timestamps from all exchanges, but not in a unified way, meaning that you would have to use exchange-specific implicit methods for that.
We welcome all help and contributions ;) Hope it answers your question. Thx!
Most helpful comment
Hi!
Currently, we don't have this functionality implemented in a unified way everywhere yet, however, some exchanges do have a
fetchTimemethod implemented that would return the timestamp since epoch in milliseconds. We hope to add these methods to other exchanges where available, soon.https://github.com/ccxt/ccxt/blob/master/js/gdax.js#L355
The overall status of this work is "in its very beginning".
In other words, you can still fetch the timestamps from all exchanges, but not in a unified way, meaning that you would have to use exchange-specific implicit methods for that.
We welcome all help and contributions ;) Hope it answers your question. Thx!