avatarJames Hinton

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1509

Abstract

iguration problems — rather than experiencing the joy of algorithmic trading.</p><p id="0520">I want to change this narrative — and in so doing, open up algorithmic trading for everyone.</p><p id="6593">To do this, I’ve recently launched <a href="https://www.tradeoxy.com/">Tradeoxy: Trading For Everyone</a>.</p><p id="bd3d">If you’re reading this, Tradeoxy will simplify 90% of this series, using a series of powerful API’s and easy to use tooling.</p><p id="626d">Currently it’s in the early-access / building stage and I’d be incredibly grateful if you’d join us on this adventure. Your feedback will help us shape a better product.</p><p id="303d">Join the <a href="https://www.tradeoxy.com/">early access program (for free) here.</a></p><p id="7ae4">You can also view our <a href="https://youtu.be/z9tu0Gwmuak?si=mhOwtR6x5aKvkmqB">launch video</a>, and follow our journey on <a href="https://www.linkedin.com/in/appnologyjames/">LinkedIn</a>, <a href="https://twitter.com/algoquant_trade">Twitter</a>, <a href="https://www.instagram.com/appnologyjames/">Instagram</a>, <a href="https://www.youtube.com/channel/UC1sfWAyk-48pGy58lgehKFA">YouTube</a>.</p><h1 id="2d8f">Assumptions</h1><ol><li>You’ve connected to the Binance API using an <code>api_key</code> and <code>api_secret_key</code></li><li>You’re using the <a href="https://www.binance.com/en/support/faq/how-to-test-my-functions-on-binance-testnet-ab78f9a1b8824cf0a106b4229c76496d">Binance Testnet</a> as well as their live Spot trading</li><li>Y

Options

ou’ve received a <code>binance_testnet_api_key</code> and <code>binance_testnet_secret_key</code></li><li>You know how to trade and the risks involved</li></ol><blockquote id="ff40"><p><b>P.S.</b> If you’d like to see the full story on developing all the connections and keys you need in Python, check out my series “<a href="https://readmedium.com/how-to-build-a-crypto-trading-bot-with-binance-and-python-connect-to-binance-9e69bb320c24">How to Build a Crypto Trading Bot on Binance with Python</a>”.</p></blockquote><h1 id="a298">Code</h1><h2 id="0bd5">What You Need</h2><ol><li>The keys listed above. That’s all ❤</li></ol><h2 id="0ff0">Function</h2> <figure id="5a37"> <div> <div>

            <iframe class="gist-iframe" src="/gist/jimtin/3915e7cd283d064b9fe54f6ed92a855b.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="5b22">Enjoy, and don’t forget to follow me on Medium, <a href="https://twitter.com/blockchainvalu1">Twitter</a>, and <a href="https://www.linkedin.com/in/jameshinton84/">LinkedIn</a>.</p><blockquote id="6762"><p><b>P.S.</b> If you’d like to follow along with my development of an open source <a href="https://github.com/jimtin/python_trading_bot">Python Trading Bot, check out my GitHub</a>.</p></blockquote><p id="a1a2" type="7">New to trading? Try crypto trading bots or copy trading</p></article></body>
Python Trading Bot

Python Trading Bot

How to List all Your Open Orders on Binance with Python

When running an algorithmic trading bot, there are times when it’s handy to list all your open trades. This can give you a rapid overview of your various risk factors, and your currently open commitments.

You can do this programmatically through Binance, using their advanced API. Even better, if you’re using Python, they have an official Python Library to help make life easier.

The Binance API documentation can be slightly confusing/overwhelming to work through, so I’ve extracted a few bits and pieces to construct the function below.

Update August 2023

I could never have anticipated how popular this blog, along with a YouTube channel would become.

After a listening to my readers/viewers feedback, I realized that many people were spending huge amounts of time trying to solve installation/configuration problems — rather than experiencing the joy of algorithmic trading.

I want to change this narrative — and in so doing, open up algorithmic trading for everyone.

To do this, I’ve recently launched Tradeoxy: Trading For Everyone.

If you’re reading this, Tradeoxy will simplify 90% of this series, using a series of powerful API’s and easy to use tooling.

Currently it’s in the early-access / building stage and I’d be incredibly grateful if you’d join us on this adventure. Your feedback will help us shape a better product.

Join the early access program (for free) here.

You can also view our launch video, and follow our journey on LinkedIn, Twitter, Instagram, YouTube.

Assumptions

  1. You’ve connected to the Binance API using an api_key and api_secret_key
  2. You’re using the Binance Testnet as well as their live Spot trading
  3. You’ve received a binance_testnet_api_key and binance_testnet_secret_key
  4. You know how to trade and the risks involved

P.S. If you’d like to see the full story on developing all the connections and keys you need in Python, check out my series “How to Build a Crypto Trading Bot on Binance with Python”.

Code

What You Need

  1. The keys listed above. That’s all ❤

Function

Enjoy, and don’t forget to follow me on Medium, Twitter, and LinkedIn.

P.S. If you’d like to follow along with my development of an open source Python Trading Bot, check out my GitHub.

New to trading? Try crypto trading bots or copy trading

Algorithmic Trading
Python Programming
Python
Trading
Trading Bot
Recommended from ReadMedium