fetches the current integer timestamp in milliseconds from the xt server https://doc.xt.com/#market1serverInfo :param dict params: extra parameters specific to the xt api endpoint :returns int: the current integer timestamp in milliseconds from the xt server
(self, params={})
| 822 | return self.milliseconds() - self.options['timeDifference'] |
| 823 | |
| 824 | def fetch_time(self, params={}) -> Int: |
| 825 | """ |
| 826 | fetches the current integer timestamp in milliseconds from the xt server |
| 827 | |
| 828 | https://doc.xt.com/#market1serverInfo |
| 829 | |
| 830 | :param dict params: extra parameters specific to the xt api endpoint |
| 831 | :returns int: the current integer timestamp in milliseconds from the xt server |
| 832 | """ |
| 833 | response = self.publicSpotGetTime(params) |
| 834 | # |
| 835 | # { |
| 836 | # "rc": 0, |
| 837 | # "mc": "SUCCESS", |
| 838 | # "ma": [], |
| 839 | # "result": { |
| 840 | # "serverTime": 1677823301643 |
| 841 | # } |
| 842 | # } |
| 843 | # |
| 844 | data = self.safe_value(response, 'result') |
| 845 | return self.safe_integer(data, 'serverTime') |
| 846 | |
| 847 | def fetch_currencies(self, params={}) -> Currencies: |
| 848 | """ |
no test coverage detected