CinderellaMan

CinderellaMan OP

Hello :wave:

I just released the 10th episode of the course, We will move hardcoded settings from the leader to the database. We will look into the reasons why we should introduce a new database for the naive app instead of using the datawarehouse application’s database. Lastly, we will update the leader to fetch settings from the database.

Enjoy! :slight_smile:

0
Post #41
CinderellaMan

CinderellaMan OP

:heavy_plus_sign: as in the video (if you managed to get till the end :wink: ) - here’s a link to the ebook that I started to work on:
https://leanpub.com/create-a-cryptocurrency-trading-bot-in-elixir

3
Post #42
romik

romik

Is using a websocket a must for such trading bots? If not websocket, what else can be used? REST API will be too slow?

0
Post #43
CinderellaMan

CinderellaMan OP

Hello,

As far as I understand, that directly depends on your strategy.

  • There are strategies that are investing on every couple days* - they don’t need access to real time events stream. At that moment you can consider querying API to fetch OHLC(open, high, low, close for that timeframe) data every x minutes. That will cover data source but currently we are also using websocket data to confirm that our order got (partially) filled. This can be achieved by comparing OHLC data with order price(if it falls/raises enough - fetch order to confirm it was filled).

  • On the other hand it will be nearly impossible to do arbitrage trading using even most granual one minute OHLC data as it’s extremely time sensitive. The same applies to HFT (high frequency trading), again you can buy and sell within seconds with access to real time data.

I need to admit that at least for the Binance subsecond HFT is not really possible as there’s just not enough trading going on as it would be for stock trading where HFT is normally utilized.

Taking above under consideration you are probably fine with querying every one minute OHLC data for most of the non-HFT strategies - for the trading bot videos i picked websocket as it’s gives the feeling of things “being alive” - coolness factor :wink:

I hope that helps

0
Post #44
romik

romik

Why use Binance API for trading in the first place? Instead of simply using their dashboard in a manual manner.

0
Post #45
CinderellaMan

CinderellaMan OP

Hmmm that’s a good question. I believe the idea is to track multiple (tens or even hundreds of) pairs and based on price movement take decisions to buy in or sell - it’s doable for a few pairs but not for that many.

0
Post #46
CinderellaMan

CinderellaMan OP

Hi :wave:

After a long time, I’m back with a new episode that will focus on autostarting, stopping, and graceful shutdown of the trading strategy.

Enjoy

0
Post #47
Exadra37

Exadra37

You can allow for us to buy it before it’s finished :wink:

4
Post #48
CinderellaMan

CinderellaMan OP

I’m proud to release an early alpha version of my book:

Create a cryptocurrency trading bot in Elixir

Feel free to grill it as much as you want - any feedback appreciated, that’s the only way to get it better really :wink:

Enjoy <3

2
Post #49
ityonemo

ityonemo

What we want to know is how did it do in the last day lol!

2
Post #50