| Conditions | 1 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.4218 |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 19 | 1 | def request_withdrawal(self, amount: float, withdrawal_method: str = Processor.PAYPAL) -> APIResponse: |
|
| 20 | """MoneyWithdrawal v1 implementation |
||
| 21 | https://bitskins.com/api/#request_withdrawal |
||
| 22 | |||
| 23 | :type amount: float |
||
| 24 | :type withdrawal_method: str |
||
| 25 | :return: |
||
| 26 | """ |
||
| 27 | api_url = "https://bitskins.com/api/v1/request_withdrawal/" |
||
| 28 | |||
| 29 | payload = { |
||
| 30 | 'amount': str(amount), |
||
| 31 | 'withdrawal_method': withdrawal_method |
||
| 32 | } |
||
| 33 | |||
| 34 | return self.api_request(api_url=api_url, params=payload) |
||
| 35 |