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

Method parse_transaction

python/ccxt/async_support/binance.py:8389–8510  ·  view source on GitHub ↗
(self, transaction: dict, currency: Currency = None)

Source from the content-addressed store, hash-verified

8387 return self.safe_string(statuses, status, status)
8388
8389 def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
8390 #
8391 # fetchDeposits
8392 #
8393 # {
8394 # "amount": "4500",
8395 # "coin": "USDT",
8396 # "network": "BSC",
8397 # "status": 1,
8398 # "address": "0xc9c923c87347ca0f3451d6d308ce84f691b9f501",
8399 # "addressTag": "",
8400 # "txId": "Internal transfer 51376627901",
8401 # "insertTime": 1618394381000,
8402 # "transferType": 1,
8403 # "confirmTimes": "1/15"
8404 # }
8405 #
8406 # fetchWithdrawals
8407 #
8408 # {
8409 # "id": "69e53ad305124b96b43668ceab158a18",
8410 # "amount": "28.75",
8411 # "transactionFee": "0.25",
8412 # "coin": "XRP",
8413 # "status": 6,
8414 # "address": "r3T75fuLjX51mmfb5Sk1kMNuhBgBPJsjza",
8415 # "addressTag": "101286922",
8416 # "txId": "19A5B24ED0B697E4F0E9CD09FCB007170A605BC93C9280B9E6379C5E6EF0F65A",
8417 # "applyTime": "2021-04-15 12:09:16",
8418 # "network": "XRP",
8419 # "transferType": 0
8420 # }
8421 #
8422 # fiat transaction
8423 # withdraw
8424 # {
8425 # "orderNo": "CJW684897551397171200",
8426 # "fiatCurrency": "GBP",
8427 # "indicatedAmount": "29.99",
8428 # "amount": "28.49",
8429 # "totalFee": "1.50",
8430 # "method": "bank transfer",
8431 # "status": "Successful",
8432 # "createTime": 1614898701000,
8433 # "updateTime": 1614898820000
8434 # }
8435 #
8436 # deposit
8437 # {
8438 # "orderNo": "25ced37075c1470ba8939d0df2316e23",
8439 # "fiatCurrency": "EUR",
8440 # "transactionType": 0,
8441 # "indicatedAmount": "15.00",
8442 # "amount": "15.00",
8443 # "totalFee": "0.00",
8444 # "method": "card",
8445 # "status": "Failed",
8446 # "createTime": "1627501026000",

Callers 1

withdrawMethod · 0.95

Calls 13

safe_string_2Method · 0.80
safe_stringMethod · 0.80
findMethod · 0.80
safe_integer_2Method · 0.80
safe_dictMethod · 0.80
safe_numberMethod · 0.80
safe_number_2Method · 0.80
safe_integerMethod · 0.80
safe_currency_codeMethod · 0.45
parse8601Method · 0.45
network_id_to_codeMethod · 0.45

Tested by

no test coverage detected