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)
| 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. |