mehtadone / PTFeeder

Official GitHub for ProfitTrailer's best buddy, PT Feeder. Be sure to visit their GitHub too.
https://wiki.ptfeeder.co/
183 stars 33 forks source link

[Error] Could not get all markets from ProfitTrailer #352

Open kirkelrain opened 1 year ago

kirkelrain commented 1 year ago

Hi,

i can not get PT feeder running.

I always get the same Error: 2023-06-25 21:32:35.725 +02:00 [Error] Could not get all markets from ProfitTrailer. Using an empty list. This probably won't work

I already checked the host and the setting sin ProfitTrailer GUI, but i can not figure out why it can not get the markets.

Can you please help? Attached is the log data in Debug mode. The Error happens after: 2023-06-25 21:32:13.288 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound

The API Key from PT is definitly correct.

kind regards

2023-06-25 21:32:08.968 +02:00 [Information] 2023-06-25 21:32:09.011 +02:00 [Information] Starting PT Feeder Version: 1.9.3.0 2023-06-25 21:32:09.013 +02:00 [Information] DotNet version: 5.0.17 2023-06-25 21:32:09.013 +02:00 [Information] Running from: C:\Users\Kirk\Desktop\pt-feeder-v1.9.3\pt-feeder 2023-06-25 21:32:09.014 +02:00 [Information] Machine name: DESKTOP-DTPU86C 2023-06-25 21:32:09.015 +02:00 [Information] OS version: Microsoft Windows NT 10.0.19045.0 2023-06-25 21:32:09.015 +02:00 [Information] Process ID: 11132 2023-06-25 21:32:09.016 +02:00 [Information] 2023-06-25 21:32:09.016 +02:00 [Information] Massive thanks to Elroy and team for ProfitTrailer. 2023-06-25 21:32:09.067 +02:00 [Information] Using PT host: http://localhost:8083 2023-06-25 21:32:10.694 +02:00 [Debug] Checking mandatory properties 2023-06-25 21:32:12.990 +02:00 [Debug] Ping ProfitTrailer endpoint http://localhost:8083 2023-06-25 21:32:13.001 +02:00 [Information] 2023-06-25 21:32:13.001 +02:00 [Information] Running PT Version 2.5.47 2023-06-25 21:32:13.002 +02:00 [Information] 2023-06-25 21:32:13.004 +02:00 [Debug] Checking for license information 2023-06-25 21:32:13.241 +02:00 [Debug] Trading View alerts functionality disabled 2023-06-25 21:32:13.246 +02:00 [Information] Loading initial candles from Binance 2023-06-25 21:32:13.288 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:15.604 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:18.639 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:24.688 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:35.723 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:35.725 +02:00 [Error] Could not get all markets from ProfitTrailer. Using an empty list. This probably won't work 2023-06-25 21:32:37.797 +02:00 [Information] The required size of the candles: 5m, 1h 2023-06-25 21:32:37.808 +02:00 [Information] 0 out of 0 pairs queried 2023-06-25 21:32:37.808 +02:00 [Debug] All pairs will be added to database on shutdown 2023-06-25 21:32:37.809 +02:00 [Debug] All prices has been added to database 2023-06-25 21:32:37.811 +02:00 [Information] Startup complete 2023-06-25 21:32:37.813 +02:00 [Information] Scheduling market conditions to be checked every 2 minutes 2023-06-25 21:32:37.826 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:40.122 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:43.163 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound 2023-06-25 21:32:49.222 +02:00 [Debug] ProfitTrailer market summaries status code is not success http://localhost:8083/private?command=returnTicker&token=lAilSb34aIsARqZntGOMWijsJ NotFound

mehtadone commented 1 year ago

Hi,

The error is a "NotFound" which suggests to me that the URL is wrong. What URL do you access ProfitTrailer on?

kirkelrain commented 1 year ago

I replied via mail sry:

i copied the content of my answer here:

Hi,

Profittrailer is running on the same windows device.

I can reach ProfitTrailer via http://localhost:8083/. I can also reach it with the static IP of my router: http://192.168.178.150:8083/ But same "not Found" Error with Feeder

This is my hostfile settings:

{ // Additional settings that can be added can be found on https://wiki.ptfeeder.co/configuration.html#hostsettings-json

"Host": { "ProfitTrailerFolder1": "C:\Users\Kirk\Desktop\ProfitTrailer-2.5.47\ProfitTrailer-2.5.47", "ProfitTrailerApiEndPoint1": "http://localhost:8083", // this is where the api is to be found from PT to save your settings. For example, http://localhost:8081/ "ProfitTrailerLicense1": "xxx", // this is your PT license key. This is needed to save config via the PT api "ProfitTrailerServerApiToken1": "lAilSb34aIsARqZntGOMWijsJ", // this is the server api token you setup in PT settings "LicenseKey": "xxx", // License key for PT Feeder0 "HostName": "feeder", },

"Serilog": { "MinimumLevel": "Debug" // Can be Information or Debug depending how much logging you want } }

i also deactivated my firewall, just to make sure it is not the problem. But same issue as before.

kindly

Kirk Screenshot 2023-06-27 123156

mehtadone commented 1 year ago

@kirkelrain Could you try with "ProfitTrailerApiEndPoint1": "http://localhost:8083/",

kirkelrain commented 1 year ago

@mehtadone unfortunately this results in the same error.

thepetercoin commented 3 months ago

Hi @mehtadone , hope I may bump this bc it's not closed. Getting the same error.

Thx in advance!

Update: Ah I think I found sth when I put the link in the browser, see Image. Sounds like a timezone problem? But what I read in discord timezone can not be set? On the computer it's fine, also written files have the same correct time.

ScreenShot 172  Error  Could not get all markets from ProfitTrailer · Issue #352 · mehtadone_PTFeeder - Google Chrome

2nd Update: Found it. Was using latest Java, downgraded to 8 - working. BUT: Just takes quite long to query pairs: 25min, as far as I saw this is just the initial population, correct?