michaelgrosner / tribeca

A high frequency, market making cryptocurrency trading platform in node.js
Other
4.01k stars 948 forks source link

Creating one-side market trading. ANY HELP IS WELCOME #208

Open vrevuelta opened 6 years ago

vrevuelta commented 6 years ago

Hi,

I know that tribeca is designed to make two-sided trading for market making, but I would like to implement also other type of trading strategies. So, for example, my idea is to have a subprogram where I could send simple orders to the exchanges. For example: Sendorder(exchange, pair, price, order_type, buy_sell). So if I want to buy 1 BTC in GDAX at a price of 11.000€ I could simply do: Sendorder(Coinbase, BTCEUR, 11000, limit, buy) Which .ts should I modify to achieve this?

Any help will be appreciated.

Thanks

michaelgrosner commented 6 years ago

Hi @zlatanibra - you can fairly easily do so by writing you own quoting mode, which only sends orders on a one-sided basis. There may be some extra stuff you'd need to do to not send post-only orders, because I am assuming you'd send taking orders. Check out #123

donaldforest commented 6 years ago

@michaelgrosner respect for tribeca as idea. You genius! Thank You!

vrevuelta commented 6 years ago

Thank you for your answer @michaelgrosner. I have been trying to create a new quoting mode but without results. Doing like #123, I am able to fix the price and size of the order, but I cannot decide when the order will be sent.

I guess there should be a common function to send orders to the different exchanges, but I cannot find it.

Also, I have seen that the button "Submit order" from the UI does exactly what I am looking for. Is it possible to call this function without needing to interact with the UI (click Submit button)?

Thank you