MCPcopy Create free account
hub / github.com/danpaquin/coinbasepro-python / deposit

Method deposit

cbpro/authenticated_client.py:798–823  ·  view source on GitHub ↗

Deposit funds from a payment method. See AuthenticatedClient.get_payment_methods() to receive information regarding payment methods. Args: amount (Decmial): The amount to deposit. currency (str): The type of currency. payment_method_id (

(self, amount, currency, payment_method_id)

Source from the content-addressed store, hash-verified

796 data=json.dumps(params))
797
798 def deposit(self, amount, currency, payment_method_id):
799 """ Deposit funds from a payment method.
800
801 See AuthenticatedClient.get_payment_methods() to receive
802 information regarding payment methods.
803
804 Args:
805 amount (Decmial): The amount to deposit.
806 currency (str): The type of currency.
807 payment_method_id (str): ID of the payment method.
808
809 Returns:
810 dict: Information about the deposit. Example::
811 {
812 "id": "593533d2-ff31-46e0-b22e-ca754147a96a",
813 "amount": "10.00",
814 "currency": "USD",
815 "payout_at": "2016-08-20T00:31:09Z"
816 }
817
818 """
819 params = {'amount': amount,
820 'currency': currency,
821 'payment_method_id': payment_method_id}
822 return self._send_message('post', '/deposits/payment-method',
823 data=json.dumps(params))
824
825 def coinbase_deposit(self, amount, currency, coinbase_account_id):
826 """ Deposit funds from a coinbase account.

Callers

nothing calls this directly

Calls 1

_send_messageMethod · 0.80

Tested by

no test coverage detected