Connect aggr to aggr-server config problems
icazaji opened this issue · 9 comments
how do you know aggr is connected to the aggr-server
I see you don't have influxdb on the server side
InfluxDB 1.8 is required for serving preformatted data into a set of timeframe on demand
- Download and run influx
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.10_windows_amd64.zip -UseBasicParsing -OutFile influxdb-1.8.10_windows_amd64.zip
Expand-Archive .\influxdb-1.8.10_windows_amd64.zip -DestinationPath 'C:\Program Files\InfluxData\influxdb\'
or with docker -> https://hub.docker.com/_/influxdb
you can check that influx is running by navigating to http://localhost:8086/query
then you should see aggr-server connect to it in the logs
Setting up .env on client
Yours looks ok, maybe you need to specify the timeframes available... not sure
API_URL is the root url of server and shouldn't include anything after the domain:port/
API_URL=http://localhost:3000/
API_SUPPORTED_TIMEFRAMES=10,30,60,180,300,900,1800,3600,7200,14400,21600,28800,86400
Hope that help :)
sorry I think I installed 2.2 DB im going to try 1.8 version like your link
There is a way to collect old data?
no easy way I'm afraid, especially if you don't know much coding
main purpose of aggr-server is collection and storage in real time, mostly because there is no straightfoward way to download this kind of data (incl. buy / sell volume) for free
Some exchange will let you retrieve tick data from their public API, some don't, some will only allow a day, some only allow 100 trade at a time, some will let you download it from a website (ex https://www.binance.com/en-NG/landing/data) etc...
Another way is stealing the data from some other platform, like coinalize, tradingview or if you got an account in a private platform like tradinglite, exochart you can try to reverse engineering their api but yeah don't expect me to help you do that lmao
If you have the raw trades files, you can format & import them using the following tool
importer.zip (all instructions are in importer.js)
thanks for your time, im coder, all the purpose of setting all this environment is:
- Understand the code aggr and aggr-server
- I want to create a CVD filtered by trades sizes and exchanges
- I want to create Open interest graph like the CVD line
- I want to create funding graph like CVD line
- To do all this I need understand the code and some data.
Base on what you explain I will let run the server-all day to collect data and im going to focus
on learn the code to create the CVD filtered like step 1
thanks very much
One last questions, how you know the code and the data Do you think it is possible create a CVD filtered by trade sizes?
for example I want a CVD that graph trades from 1 to 10k and other CVD from 10k to 20M usd only Binance Perps