Ccxt: Question: current server time in epochs?

Created on 15 Mar 2018  路  1Comment  路  Source: ccxt/ccxt

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?

question

Most helpful comment

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!

>All comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luigikitten picture luigikitten  路  3Comments

forexhill picture forexhill  路  3Comments

gemini100 picture gemini100  路  3Comments

slideup-benni picture slideup-benni  路  3Comments

Sarona93 picture Sarona93  路  3Comments