michaelgrosner / tribeca

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

Awsome App, nearly got it working ! is there a stable version ? #145

Open teddytomas opened 7 years ago

teddytomas commented 7 years ago

Hi, i've been running latest trunk and going back to old versions trying to get one that works on bitfinex. I had some success (the app placed trades) but only one side (only asks were attempting to place). Oh yeah, this was after I made some code changes.

I'd really like to use this app as I work in algo trading, also I'd be happy to help with some development.

It looks like the app is in stages of large refactor/development effort ?

teddytomas commented 7 years ago

selection_001

teddytomas commented 7 years ago

logs seem ok though:

{"name":"ewma","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"Unable to compute EMWA value","time":"2017-06-30T13:12:22.799Z","v":0} {"name":"mt:broker","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"loaded 100 market trades","time":"2017-06-30T13:12:22.816Z","v":0} {"name":"ex:broker","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"Connection status changed :: Disconnected :: (md: Disconnected) (oe: Connected)","time":"2017-06-30T13:12:22.824Z","v":0} {"name":"ex:broker","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"Connection status changed :: Connected :: (md: Connected) (oe: Connected)","time":"2017-06-30T13:12:22.825Z","v":0} {"name":"quotingengine","hostname":"37fb9c198cdb","pid":16,"level":40,"msg":"cannot compute a quote since no position report exists!","time":"2017-06-30T13:12:22.988Z","v":0} {"name":"positionmanager","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"recalculated target base position: 3","time":"2017-06-30T13:12:23.291Z","v":0} {"name":"ewma","hostname":"37fb9c198cdb","pid":16,"level":30,"msg":"New EMWA value 2485.5","time":"2017-06-30T13:13:22.799Z","v":0}

it seems that the ProductAdvert listener is not being fired because the pair_name is empty and as far as I can tell there is only one place that pair_name gets set.

Have I missed something from the config ? I have the following: TRIBECA_MODE=prod EXCHANGE=Bitfinex TradedPair=BTC/USD

and then the keys etc (which seem correct because it has connected)

Camille92 commented 7 years ago

You should try ctubio K, it's based on Tribeca but with improved features, and works perfectly with Bitfinex.

https://github.com/ctubio/Krypto-trading-bot

teddytomas commented 7 years ago

thanks for the tip, this looks like it should be even more awsome, however when I run that (Im running on amazon ec2 btw) and connect to it I get nothing, just what looks like a bag of loot in the browser:

selection_002

where are the logs for this one ? I ran it using npm start and it gave no errors and process seems to be running:

ubuntu 29593 29578 0 17:20 ? 00:00:02 /home/ubuntu/.nvm/versions/node/v8.0.0/bin/node /home/ubuntu/K/K.js K.json

is the bag of swag something you've seen before ?

cheers

Camille92 commented 7 years ago

Hi I had the same issue this is due to the SSL certifications used.

If you want to use it without certs just remove the folder K/dist/sslcert.

There is no logs by defaults (logs were quickly taking too much space) if you want to see the logs, start the app with nodejs.

Ps: Alibaba cloud have now an offer for VPS at $30 a year, and by using my referral code you can even get it cheaper! https://account-intl.aliyun.com/register/intl_register.htm?biz_params=%7B%22intl%22%3A%22%7B%5C%22referralCode%5C%22%3A%5C%22yy0yuh%5C%22%7D%22%7D

teddytomas commented 7 years ago

heheh... its still tantalisingly out of reach.

I can run with node and it logs connectivity, ive deleted the sslcert directory and re-installed and restarted... but still nothing in the browser. The https is now unavailable, so the sslcert looks to have worked

Camille92 commented 7 years ago

See https://github.com/ctubio/Krypto-trading-bot/issues/35 if that might be helping.

teddytomas commented 7 years ago

Hi,

Thanks for following up.

I've just launched from my mobile phone instead (!) and it works. Seems this crappy old laptop with an ancient ubuntu installed on it cannot get a firefox version that will load the page.

SO its user error in this case. Time to buy a new laptop.

Is there any page/forum you have for discussing strategies and trading performance ?

Cheers

On 3 July 2017 at 12:07, Camille92 notifications@github.com wrote:

See ctubio/Krypto-trading-bot#35 https://github.com/ctubio/Krypto-trading-bot/issues/35 if that might be helping.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaelgrosner/tribeca/issues/145#issuecomment-312617687, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUyxKX-Ybi2GkDXyE1EisVXN1a_iOl1ks5sKMuKgaJpZM4OKbf7 .

Camille92 commented 7 years ago

haha, the forum is the very good idea, we don't have one already, don't hesitate to post it here https://github.com/ctubio/Krypto-trading-bot/issues/ to discuss it.

For the laptop, you should think about getting it cloud based !