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

Method parse_transaction

python/ccxt/kraken.py:2746–2850  ·  view source on GitHub ↗
(self, transaction: dict, currency: Currency = None)

Source from the content-addressed store, hash-verified

2744 return self.safe_string(withdrawMethods, network, network)
2745
2746 def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
2747 #
2748 # fetchDeposits
2749 #
2750 # {
2751 # "method": "Ether(Hex)",
2752 # "aclass": "currency",
2753 # "asset": "XETH",
2754 # "refid": "Q2CANKL-LBFVEE-U4Y2WQ",
2755 # "txid": "0x57fd704dab1a73c20e24c8696099b695d596924b401b261513cfdab23…",
2756 # "info": "0x615f9ba7a9575b0ab4d571b2b36b1b324bd83290",
2757 # "amount": "7.9999257900",
2758 # "fee": "0.0000000000",
2759 # "time": 1529223212,
2760 # "status": "Success"
2761 # }
2762 #
2763 # there can be an additional 'status-prop' field present
2764 # deposit pending review by exchange => 'on-hold'
2765 # the deposit is initiated by the exchange => 'return'
2766 #
2767 # {
2768 # "type": 'deposit',
2769 # "method": 'Fidor Bank AG(Wire Transfer)',
2770 # "aclass": 'currency',
2771 # "asset": 'ZEUR',
2772 # "refid": 'xxx-xxx-xxx',
2773 # "txid": '12341234',
2774 # "info": 'BANKCODEXXX',
2775 # "amount": '38769.08',
2776 # "fee": '0.0000',
2777 # "time": 1644306552,
2778 # "status": 'Success',
2779 # status-prop: 'on-hold'
2780 # }
2781 #
2782 #
2783 # fetchWithdrawals
2784 #
2785 # {
2786 # "method": "Ether",
2787 # "aclass": "currency",
2788 # "asset": "XETH",
2789 # "refid": "A2BF34S-O7LBNQ-UE4Y4O",
2790 # "txid": "0x288b83c6b0904d8400ef44e1c9e2187b5c8f7ea3d838222d53f701a15b5c274d",
2791 # "info": "0x7cb275a5e07ba943fee972e165d80daa67cb2dd0",
2792 # "amount": "9.9950000000",
2793 # "fee": "0.0050000000",
2794 # "time": 1530481750,
2795 # "status": "Success"
2796 # "key":"Huobi wallet",
2797 # "network":"Tron"
2798 # status-prop: 'on-hold' # self field might not be present in some cases
2799 # }
2800 #
2801 # withdraw
2802 #
2803 # {

Callers 2

withdrawMethod · 0.95

Calls 7

safe_currency_codeMethod · 0.95
parse_networkMethod · 0.95
safe_stringMethod · 0.80
safe_timestampMethod · 0.80
safe_numberMethod · 0.80
iso8601Method · 0.45

Tested by

no test coverage detected