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

Method parse_transfer_status

python/ccxt/latoken.py:1716–1724  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1714 }
1715
1716 def parse_transfer_status(self, status: Str) -> Str:
1717 statuses = {
1718 'TRANSFER_STATUS_COMPLETED': 'ok',
1719 'TRANSFER_STATUS_PENDING': 'pending',
1720 'TRANSFER_STATUS_REJECTED': 'failed',
1721 'TRANSFER_STATUS_UNVERIFIED': 'pending',
1722 'TRANSFER_STATUS_CANCELLED': 'canceled',
1723 }
1724 return self.safe_string(statuses, status, status)
1725
1726 def sign(self, path, api: Any = 'public', method='GET', params={}, headers: dict = None, body: Any = None):
1727 request = '/' + self.version + '/' + self.implode_params(path, params)

Callers 1

parse_transferMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected