ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.33k stars 819 forks source link

Feature requests #134

Closed wulabs closed 7 years ago

wulabs commented 7 years ago

A few feature requests. Please point me in the direction if it is something on the roadmap or can be implemented using something else.

1) External data Ability to take external signal/data feed to help make decisions. Simple example would be a polling request to a REST API that returns 0 or 1, and trade only when value is 1.

2) Support for OHLC, resampled data. Resample price feed ask/bids into OHLC using ask/bid midpoint. Then resample into various timeframes (1min, 5min, etc).

3) Futures Support for Futures

4) Access to level 2 order book in real time. Would like to write custom logic around market depth / order book.

ctubio commented 7 years ago

Hello'' point 1 is not planned because is not a feature of general interest (an option is to run make start and make stop with some shell sccript for example while.. sleep.. curl.. if.. make..) point 2 is already done, just click Watch link point 3 can be done, but is not a priority point 4 is out of my understanding

wulabs commented 7 years ago

Thanks for the quick reply.

For #1, the idea is to take external signals. Such as multiple data sources (price, sentiment, events, etc). Is there a way I can hook this? either polling a DB or some zeromq or other messaging service?

For #4, you already grab the bid/ask. Why only grab the top bid/ask? why not grab the entire book? There is significantly more information knowing the structure of the entire book than just the top prices. If it is nonunderstanding of how to use the OB I would be happy to explain that to you offline.

ctubio commented 7 years ago

best way may be to simply listen to the websocket, you can test at https://www.websocket.org/echo.html using the same url as your bot but replace https:// by wss://

about the order book, the bot already knows not only the topBid and topAsk, but also all market levels; in some exchanges like in coinbase all market levels means more than 700 on each side

CarlitoGrey commented 7 years ago

I totally forgot about the 'Watch' link, I've been using cryptowat.ch on a separate tab for each bot!