Category : binance-chain

i wanted change this spot trading code into futures trading import json, config from flask import Flask, request, jsonify, render_template from binance.client import Client from binance.enums import * app = Flask(__name__) client = Client(config.API_KEY, config.API_SECRET, tld=’us’) def order(side, quantity, symbol, order_type=ORDER_TYPE_MARKET): try: print(f"sending order {order_type} – {side} {quantity} {symbol}") order = client.create_order(symbol=symbol, side=side, type=order_type, quantity=quantity) ..

Read more