/

Let's build something legendary together

  • About
  • Projects
  • Skills

Trading Bot

Aug 2022 - Sep 2022

This video showcases how the bot improves the portfolio performance from 106 to 120 within 15 seconds.

CAPM Trading Bot is a Python program that optimizes portfolio performance on the FlexEMarkets platform using the Capital Asset Pricing Model.

CAPM Trading Bot operates in multiple markets simultaneously, continually analyzing the order book to identify profitable buying and selling opportunities. Its reactive and proactive trading capabilities allow traders to take advantage of these opportunities effectively. The bot also dynamically adjusts pending orders in response to changes in market conditions, ensuring that the portfolio remains optimized at all times.

CAPM Trading Bot utilizes the FMClient library to interact with the FlexEMarkets platform, but dealing with the asynchronous nature of interactions was a significant challenge. This was addressed by implementing a robust system that keeps track of orders sent but not yet acknowledged, enabling the bot to wait for server responses.