HaschekSolutions / cryptotrader

This is an experimental trading bot framework written in PHP. It may contain bugs and should not be trusted with much money
Other
143 stars 49 forks source link

Error getting accounts Info #22

Open lbzt opened 3 years ago

lbzt commented 3 years ago

Hi Christian, first of all thanks for your work. I am experiencing some issue in getting account info when calling function makeRequest that returns "Error getting accounts". I guess it could be some problem with CURLOPT_URL but i am not php expert.

Regars

phenixtai commented 3 years ago

Have you enter API credential (coinbase pro) in config.inc.php ?

cd cryptotrader cp example.config.inc.php config.inc.php nano config.inc.php

"Enter API Key and other setting" CTRL+o CTRL+x

lbzt commented 3 years ago

Hi phenixtai, yes i did, credentials are correct. the issue is randomic as you can see below : " [X] Error getting products Current price: 1294.18 Waiting for: 1250 EUR per ETH [i] 2021-02-03 >> 08:27:55 Current price: 1299.4 Waiting for: 1250 EUR p [X] Error getting products [i] 2021-02-03 >> 08:29:55 Current price: 1299.4 Waiting for: 1250 EUR p [i] 2021-02-03 >> 08:33:58 Current price: 1294.18 Waiting for: 1250 EUR per ETH"

Regards

lbzt commented 3 years ago

i am sorry, below is well formatted. As you can see the first 9 calls gets error while the last 2 are correct.

Regards

[X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [X] Error getting products Current price: 1299.4 Waiting for: 1250 EUR per ETH [i] 2021-02-03 >> 08:38:00 Current price: 1291.72 Waiting for: 1250 EUR per ETH [i] 2021-02-03 >> 08:40:01 Current price: 1291.09 Waiting for: 1250 EUR per ETH