Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Phemex: fetch_balance() returning 0 for swaps #26999

@kilianjanssen

Description

@kilianjanssen

Operating System

Linux

Programming Language

Python

CCXT Version

v4.5.8

Description

I have USDT on my Phemex futures account but fetch_balance() always returns 0.

import ccxt

exchange = ccxt.phemex({
			'apiKey': '',
			'secret': '',
		    'options': {
		        'defaultType': 'swap',
		    },
		})


balances = exchange.fetch_balance()

print(balances["total"])

Returns: {'USDT': 0.0}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions