Creating OCOs with the Binance python client

Another test scenario but this time with python.

class Leverage:

def __init__(self):
    self.leverage = 0.0
    self.symbol = 0.0
    self.symbol = ""

def json_parse(json_data):
    result = Leverage()
    result.leverage = json_data.get_float("leverage")
    result.maxNotionalValue = json_data.get_float("maxNotionalValue")
    result.symbol = json_data.get_string("symbol")
return result

testing upvote

Okay note that replies should maybe be less than 20 characters because this is really annoying to check

1 Like

yes, I agree and will update this setting to maybe 10.

1 Like