These are chat archives for peatio/peatio

11th
Feb 2018
The Crypto Club
@The_Crypto_Club_twitter
Feb 11 07:12
@scatterp In the intro on GH you say: "and a market making system which will provide a trading partner for your users". Not following what that is?
shivagouraram
@shivagouraram
Feb 11 09:29
HI Guys, I am trying to install the Peatio by muhammednagy and seems the installation went well
however, I could not see BTC rates on the UI
did anyone else encountered the same?
GH0STL1N3R
@GH0STL1N3R
Feb 11 09:52
You do not see any rates as there are no orders / trades on your platform
Rates don't appear magically
You need to have buy and sell orders
shivagouraram
@shivagouraram
Feb 11 09:54
thanks @GH0STL1N3R
I tried adding few buys but did not work
do we need to do anything additional to start bidding
GH0STL1N3R
@GH0STL1N3R
Feb 11 09:57
Once you have added buy orders, you need the same account or another account to sell that order
To execute it
shivagouraram
@shivagouraram
Feb 11 09:58
Yes, do I need to have some funds before I place an order? I tried placing a buy it did not work
GH0STL1N3R
@GH0STL1N3R
Feb 11 10:02
Of course you do need to have funds
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 10:07
Hi All, I am working on a high performance drop-in replacement for peatio in node.js (My perf. benchmark. indicate an average of 10X + performance on every routes, with much lower hardware requirements). It's currently in very early stage, but I want to know if performance is a problem with the existing rails peatio exchange in production and would people be interested in switching . Any feedback/ideas are welcome.
shivagouraram
@shivagouraram
Feb 11 10:17
How to add the funds on a test system?
prototypensx
@prototypensx
Feb 11 11:07
Have you ever worked on Peatio before? @bhanuc
shivagouraram
@shivagouraram
Feb 11 11:26
hi Guys, tried couple of ways but couldn't add a buy order
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:33
@prototypensx Just locally, haven't run it in production yet.
prototypensx
@prototypensx
Feb 11 11:34
Oh, what was the benchmark for that?
when you say drop in replacement, is it some sort of code converter tool or you are rewriting the peatio code from scratch in node?
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:36
So I have peatio running atm in a 2017 pro, peatio API's average response time is always around 300ms or more. My version atm does the same in around 10-20 ms. This is under no load actually, which makes me think, I am onto something.
@prototypensx From scratch, implementing the API.
Numbers would be similar or better under load.
prototypensx
@prototypensx
Feb 11 11:39
what are the versions of ROR ? 300ms seems to be pretty consistent wherever you deploy.
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:40
Rails 4.2.10
ruby 2.5.0p0
prototypensx
@prototypensx
Feb 11 11:45
Oh ok. rails needs a bit of updating there
Have you checked the tests in Peatio? those can be used for load generation
Are you using Mysql ?
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:48
yup, actually I would mostly write my own stress tester, for the API. But I am sure the results won't differ.
@prototypensx yes, using mysql.
prototypensx
@prototypensx
Feb 11 11:52
I see, mongo seems to be faster for peatio
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:52
Well then it won't be a drop-in replacement right.
I was thinking it would be really useful for people already running peatio, to use a load balancer and offload some routes to my server.
All the client libraries would be compatible.
prototypensx
@prototypensx
Feb 11 11:55
why not ?
what do you mean offload some routes to your server? host another instance of their app on your server ?
There is a lot more than API there ..
there are a lot of tolls out there that can instantly transform the data between mysql and mongo - mongify.com
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 11:59
Yup, so I plan to start with the API and develop microservices for notifications, accounts and other components separately.
Mysql is not a performance bottleneck here, rails is. In anycase, moving to mongo is not a great idea.
Mongodb is a horrible database to manage at TB Scale where mysql handles such load with ease (I speak from experience)
prototypensx
@prototypensx
Feb 11 12:02
that is a lot of components to build, are you sure Node is the right solution for all of them ?
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 12:03
Well with microservices, we can switch the languages of the components independently.
I have good experience with working on golang too.
But the structure I have made for the node app is perfect for a public facing api, in terms of security, maintenance and documentation, it's actually a poetic solution lol.
prototypensx
@prototypensx
Feb 11 12:09
you example of TB scale data doesnt make sense, why would an exchange end up with that ?
Mongo is actually good if you know where to utilize it instead of deploying it .
Looks like you will end up with a lot of technologies in this way, another issue with Peatio. Everyone seems to add a bit of crap instead of fixing anything
prototypensx
@prototypensx
Feb 11 12:15
Have a look at this, built by the best - https://github.com/bitfinexcom/grenache
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 12:16
Hahaha, well the goal of 6 month is to replace the whole app that behaves exactly the same. Not sure if it will be crap, but I have two goals in mind -> reduce response time of the server and reduce the dev-ops/hardware requirements.
prototypensx
@prototypensx
Feb 11 12:16
or this one if you are looking for 1000K TCP connections - https://github.com/viabtc/viabtc_exchange_server
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 12:18
Nice projects. I had not seen greenache before. Maybe I will take some ideas from it.
prototypensx
@prototypensx
Feb 11 12:18
Peatio is remotely completed as an app so good luck with that.
response times are dependent on many factors besides the code but I would love to see how it pans out- a drop in replacement of an incomplete app
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 12:21
Cool, btw what do you think are the missing pieces of the app ?
prototypensx
@prototypensx
Feb 11 12:21
Lol you are developing a drop in replacement so you should know better :P
too many issues to even remember....
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 12:24
I know few things, wanted to know your perspective as well. Might add up.
prototypensx
@prototypensx
Feb 11 12:25
Oh ok, which fork are you using ?
mostly ROR issues and then comes JS
Js has the worstky written code
prototypensx
@prototypensx
Feb 11 12:27
lots of places for DDOS
Oh does that have all the stuffs needed ?
I dont prefer to use that fork.
prototypensx
@prototypensx
Feb 11 12:36
Do let me know when your app is ready, I might buy a copy who knows
Bhanu Pratap Chaudhary
@bhanuc
Feb 11 13:33
Cool.
shivagouraram
@shivagouraram
Feb 11 15:16
ok guys
for some reason I couldn't add funds from UI
so did that from database and can place orders now