| 11721 | return self.safe_value(config, 'cost', 1) |
| 11722 | |
| 11723 | def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}): |
| 11724 | response = self.fetch2(path, api, method, params, headers, body, config) |
| 11725 | # a workaround for {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action."} |
| 11726 | if api == 'private': |
| 11727 | self.options['hasAlreadyAuthenticatedSuccessfully'] = True |
| 11728 | return response |
| 11729 | |
| 11730 | def modify_margin_helper(self, symbol: str, amount, addOrReduce, params={}): |
| 11731 | # used to modify isolated positions |