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

Method parse_balance

python/ccxt/bybit.py:3337–3495  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

3335 return self.parse_order_book(result, symbol, timestamp, 'b', 'a')
3336
3337 def parse_balance(self, response) -> Balances:
3338 #
3339 # cross
3340 # {
3341 # "retCode": 0,
3342 # "retMsg": "success",
3343 # "result": {
3344 # "acctBalanceSum": "0.122995614474732872",
3345 # "debtBalanceSum": "0.011734191124529754",
3346 # "loanAccountList": [
3347 # {
3348 # "free": "0.001143855",
3349 # "interest": "0",
3350 # "loan": "0",
3351 # "locked": "0",
3352 # "tokenId": "BTC",
3353 # "total": "0.001143855"
3354 # },
3355 # {
3356 # "free": "200.00005568",
3357 # "interest": "0.0008391",
3358 # "loan": "200",
3359 # "locked": "0",
3360 # "tokenId": "USDT",
3361 # "total": "200.00005568"
3362 # },
3363 # ],
3364 # "riskRate": "0.0954",
3365 # "status": 1
3366 # },
3367 # "retExtInfo": {},
3368 # "time": 1669843584123
3369 # }
3370 #
3371 # funding
3372 # {
3373 # "retCode": 0,
3374 # "retMsg": "success",
3375 # "result": {
3376 # "memberId": "533285",
3377 # "accountType": "FUND",
3378 # "balance": [
3379 # {
3380 # "coin": "USDT",
3381 # "transferBalance": "1010",
3382 # "walletBalance": "1010",
3383 # "bonus": ""
3384 # },
3385 # {
3386 # "coin": "USDC",
3387 # "transferBalance": "0",
3388 # "walletBalance": "0",
3389 # "bonus": ""
3390 # }
3391 # ]
3392 # },
3393 # "retExtInfo": {},
3394 # "time": 1675865290069

Callers 1

fetch_balanceMethod · 0.95

Calls 13

safe_integerMethod · 0.80
safe_dictMethod · 0.80
safe_list_nMethod · 0.80
safe_stringMethod · 0.80
safe_listMethod · 0.80
string_addMethod · 0.80
safe_string_2Method · 0.80
safe_string_nMethod · 0.80
safe_balanceMethod · 0.80
rangeFunction · 0.50
iso8601Method · 0.45
accountMethod · 0.45

Tested by

no test coverage detected