Conditions | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | #!/usr/bin/python |
||
15 | def request_withdrawal(self, amount: float, withdrawal_method=Processor.PAYPAL) -> APIResponse: |
||
16 | """MoneyWithdrawal v1 implementation |
||
17 | https://bitskins.com/api/#request_withdrawal |
||
18 | |||
19 | :param amount: |
||
20 | :param withdrawal_method: |
||
21 | :return: |
||
22 | """ |
||
23 | api_url = "https://bitskins.com/api/v1/request_withdrawal/" |
||
24 | |||
25 | payload = { |
||
26 | 'amount': str(amount), |
||
27 | 'withdrawal_method': withdrawal_method |
||
28 | } |
||
29 | |||
30 | return self.api_request(api_url=api_url, params=payload) |
||
31 |