MCPcopy Create free account
hub / github.com/ccxt/ccxt / fetch_deposits

Method fetch_deposits

python/ccxt/coinbase.py:920–939  ·  view source on GitHub ↗

Fetch all fiat deposits made to an account. Won't return crypto deposits or staking rewards. Use fetchLedger for those. https://docs.cdp.coinbase.com/coinbase-app/transfer-apis/deposit-fiat https://docs.cdp.coinbase.com/coinbase-app/track-apis/transactions :param s

(self, code: Str = None, since: Int = None, limit: Int = None, params={})

Source from the content-addressed store, hash-verified

918 return self.fetch_transactions_with_method('v2PrivateGetAccountsAccountIdWithdrawals', code, since, limit, params)
919
920 def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
921 """
922 Fetch all fiat deposits made to an account. Won't return crypto deposits or staking rewards. Use fetchLedger for those.
923
924 https://docs.cdp.coinbase.com/coinbase-app/transfer-apis/deposit-fiat
925 https://docs.cdp.coinbase.com/coinbase-app/track-apis/transactions
926
927 :param str code: unified currency code
928 :param int [since]: the earliest time in ms to fetch deposits for
929 :param int [limit]: the maximum number of deposits structures to retrieve
930 :param dict [params]: extra parameters specific to the exchange API endpoint
931 :param str [params.currencyType]: "fiat" or "crypto"
932 :returns dict[]: a list of `transaction structures <https://docs.ccxt.com/?id=transaction-structure>`
933 """
934 currencyType = None
935 currencyType, params = self.handle_option_and_params(params, 'fetchWithdrawals', 'currencyType')
936 if currencyType == 'crypto':
937 results = self.fetch_transactions_with_method('v2PrivateGetAccountsAccountIdTransactions', code, since, limit, params)
938 return self.filter_by_array(results, 'type', 'deposit', False)
939 return self.fetch_transactions_with_method('v2PrivateGetAccountsAccountIdDeposits', code, since, limit, params)
940
941 def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
942 """

Callers

nothing calls this directly

Calls 3

filter_by_arrayMethod · 0.80

Tested by

no test coverage detected