MCPcopy Index your code
hub / github.com/danpaquin/coinbasepro-python / get_time

Method get_time

cbpro/public_client.py:240–252  ·  view source on GitHub ↗

Get the API server time. Returns: dict: Server time in ISO and epoch format (decimal seconds since Unix epoch). Example:: { "iso": "2015-01-07T23:47:25.201Z", "epoch": 1420674445.201

(self)

Source from the content-addressed store, hash-verified

238 return self._send_message('get', '/currencies')
239
240 def get_time(self):
241 """Get the API server time.
242
243 Returns:
244 dict: Server time in ISO and epoch format (decimal seconds
245 since Unix epoch). Example::
246 {
247 "iso": "2015-01-07T23:47:25.201Z",
248 "epoch": 1420674445.201
249 }
250
251 """
252 return self._send_message('get', '/time')
253
254 def _send_message(self, method, endpoint, params=None, data=None):
255 """Send API request.

Callers 1

test_get_timeMethod · 0.80

Calls 1

_send_messageMethod · 0.95

Tested by 1

test_get_timeMethod · 0.64