Forum > General

A bot for auto-trading

(1/6) > >>

ezlage:
Hello, friends!

I'm doing some drafts to create a "robot" for cryptocurrencies and stablecoins automatic trading. I don't started to code yet, but I'm studying how I can achieve this goal. The bot will need to interact with some APIs, and I want to start from the WebSocket/HTTP based ones.

Preliminarily, I'm intended to use a TProcess inside of a TThread. The first one will send a command and listen to WebSocket data through pipeline (curl and/or some websocket client). The second will continuously read the output, separating each piece, converting and updating some database tables.

So, here is my question: Anybody sees a better solution or have recommendations about it?

Thank you!

LemonParty:
Why don't you want to use libs like Synapse, Indy or fphttpclient?
They can directly manage an HTTP (or other protocols) communication.
For the simple Rest API things fphttpclient should be enough.

ezlage:

--- Quote from: LemonParty on December 18, 2019, 03:33:34 pm ---Why don't you want to use libs like Synapse, Indy or fphttpclient?
They can directly manage an HTTP (or other protocols) communication.
For the simple Rest API things fphttpclient should be enough.

--- End quote ---

I can use it for some things, like send a command or get a non-continuously output, even through HTTPS. But for listen to a websocket channel, I need to send a command and keep listening and reading the output. I think that this feature isn't available on Synapse, Indy or fphttpclient.

mr-highball:
If you want to trade on coinbase pro you can use my library,
https://github.com/mr-highball/coinbase-pro

I do have a trading framework/bot... but I haven't released it yet :)
The idea to opensource is still there, but I'm not sure if I want to release strategies or not

mr-highball:
also for threading, you can use my library which may simplify prototyping the multi threaded aspect,
https://github.com/mr-highball/ezthreads

Navigation

[0] Message Index

[#] Next page

Go to full version