Skip to content

Take my balance of a coin and use the whole balance in a market trade #128

@plittlefield

Description

@plittlefield

In the app I can press the MAX button to use all of my balance of a coin to do a buy or convert.

How would I do that using Python ?

I've tried this ...

balance = client.get_crypto_balance("USDC")
client.fiat_market_buy("XRP-USDC", balance)

... but got a whole bunch of errors.

I guess it's because the amount is not a whole number?

Hope you can help.

Thanks,

Paully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions