MCPcopy Create free account
hub / github.com/ccxt/ccxt / fetch_time

Method fetch_time

python/ccxt/coinbaseexchange.py:1237–1250  ·  view source on GitHub ↗

fetches the current integer timestamp in milliseconds from the exchange server :param dict [params]: extra parameters specific to the exchange API endpoint :returns int: the current integer timestamp in milliseconds from the exchange server

(self, params={})

Source from the content-addressed store, hash-verified

1235 return self.parse_ohlcvs(response, market, timeframe, since, limit)
1236
1237 def fetch_time(self, params={}) -> Int:
1238 """
1239 fetches the current integer timestamp in milliseconds from the exchange server
1240 :param dict [params]: extra parameters specific to the exchange API endpoint
1241 :returns int: the current integer timestamp in milliseconds from the exchange server
1242 """
1243 response = self.publicGetTime(params)
1244 #
1245 # {
1246 # "iso":"2020-05-12T08:00:51.504Z",
1247 # "epoch":1589270451.504
1248 # }
1249 #
1250 return self.safe_timestamp(response, 'epoch')
1251
1252 def parse_order_status(self, status: Str):
1253 statuses = {

Callers

nothing calls this directly

Calls 2

safe_timestampMethod · 0.80
publicGetTimeMethod · 0.65

Tested by

no test coverage detected