(self, accountIndex, apiKeyIndex, params={})
| 810 | return orders |
| 811 | |
| 812 | def fetch_nonce(self, accountIndex, apiKeyIndex, params={}): |
| 813 | if (accountIndex is None) or (apiKeyIndex is None): |
| 814 | raise ArgumentsRequired(self.id + ' fetchNonce() requires accountIndex and apiKeyIndex.') |
| 815 | if 'nonce' in params: |
| 816 | return self.safe_integer(params, 'nonce') |
| 817 | nonceInOptions = self.safe_integer(self.options, 'nonce') |
| 818 | if nonceInOptions is not None: |
| 819 | return nonceInOptions |
| 820 | # avoid skipNonce for l1 operations |
| 821 | skipNonce = True |
| 822 | skipNonce, params = self.handle_option_and_params(params, 'fetchNonce', 'skipNonce', True) |
| 823 | if skipNonce: |
| 824 | return self.milliseconds() |
| 825 | response = self.publicGetNextNonce({'account_index': accountIndex, 'api_key_index': apiKeyIndex}) |
| 826 | return self.safe_integer(response, 'nonce') |
| 827 | |
| 828 | def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}): |
| 829 | """ |
no test coverage detected