peatio icon indicating copy to clipboard operation
peatio copied to clipboard

All data in trade page is blank

Open AddzMDev opened this issue 8 years ago • 5 comments

This maybe duplicate with #742 but I'm still cannot find the solution and I'm also read https://github.com/rubykube/peatio/blob/master/docs/releases/1.5.0.md and found

The trading UI app will first download variables for specified market_id (like btcusd) from Peatio by issuing HTTP GET https://peatio.io/markets/btcusd.json, and then render Rails views according to received variables.

but https://peatio.io/markets/btcusd.json is invalid and I'm also not sure whether this link should be point to https://peatio.io/markets/btcusd.json or to http://localhost:3000/markets/btcusd.json in my localhost if it need to point to http://localhost:3000/markets/btcusd.json I've found that all data of each market contain only zero value like

"markets": [
  {
    "id":"btcusd",
    "name":"BTC/USD",
    "quote_unit":"usd",
    "base_unit":"btc",
    "ticker":{
      "low":"0.0",
      "high":"0.0",
      "last":"0.0",
      "volume":"0.0",
      "open":"0.0",
      "sell":"0.0",
      "buy":"0.0",
      "at":1522224522
    }
  },
  {
    "id":"xrpusd",
    "name":"XRP/USD",
    "quote_unit":"usd",
    "base_unit":"xrp",
    "ticker": {
      "low":"0.0",
      "high":"0.0",
      "last":"0.0",
      "volume":"0.0",
      "open":"0.0",
      "sell":"0.0",
      "buy":"0.0",
      "at":1522224522
    }
  },
  ....,
  ..,
  .,
]

Did I've miss something please advise

AddzMDev avatar Mar 28 '18 09:03 AddzMDev

@AddzMDev peatio.io is only sample, ofc you will use your own domain All data is stored into database, so .json will show you zero value until you make some transactions in your market.

Also I think that you need to use domain with nginx config from ci/nginx/server.conf to get market working.

tzman89 avatar Mar 28 '18 10:03 tzman89

@AddzMDev Please, check website peatio.trade and see how does it work. Please, ping here if you still have issues. We have successfully deployed peatio 1.5 using both docker-compose & k8s with trading UI and it works.

yivo avatar Mar 29 '18 14:03 yivo

@AddzMDev Feel free to reopen the issue if you still expect problems.

yivo avatar Mar 30 '18 09:03 yivo

@AddzMDev Have a look at https://github.com/rubykube/workbench/pull/40. Hope it helps.

nchigwamba avatar Mar 30 '18 23:03 nchigwamba

Hi @yivo i checked peatio.trade. It is not available. Can you suggest me other url?

@tzman89 would you please explain more precisely how to do transactions?

ianeinser avatar Jul 25 '18 09:07 ianeinser