Skip to content
Advertisement

How can I get only the figure of a symbol in Binance API using Python

This is my code:

JavaScript

OUTPUT

JavaScript

and that is not what I wanted,

This is what I wanted it to look like: 2013.44000000, only the digits

Advertisement

Answer

You need to define which object you want from the response, for this case we have two options:

JavaScript

or

JavaScript

So, for your need we can define it like this:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement