Coinbase-Pro-Crypto-Trading-Bot-CrypFinder icon indicating copy to clipboard operation
Coinbase-Pro-Crypto-Trading-Bot-CrypFinder copied to clipboard

Error in profileTransfer.

Open Madeindreams opened this issue 3 years ago • 3 comments

"level":30,"time":1615518723989,"pid":14368,"hostname":"DESKTOP-T1KFBKG","msg":"Profit: 0.000005287755000000106"} {"level":50,"time":1615518724323,"pid":14368,"hostname":"DESKTOP-T1KFBKG","message":"Error occurred in profileTransfer method. Number of attempts: 3","errorMsg":{},"err":{"message":"Request failed with status code 400"

The transfer of the profit to the default portfolio is causing this error can't find why.

Madeindreams avatar Mar 12 '21 03:03 Madeindreams

Do you have the profitTransferPortfolio set to "default" all lower case? If it's not something as simple as the name being wrong could you post the full logs, and a screenshot of your configuration?

LeviathanLevi avatar Mar 12 '21 03:03 LeviathanLevi

These are my settings.

const sellPositionDelta = .02; //The amount of change between peak and valley to trigger a sell off
const buyPositionDelta = .015; //The amount of change between the peak and valley price to trigger a buy in
const orderPriceDelta = .001; //The amount of extra room to give the sell/buy orders to go through

//Currency config:
//The pieces of the product pair, this is the two halves of coinbase product pair (examples of product pairs: BTC-USD, DASH-BTC, ETH-USDC). For BTC-USD the base currency is BTC and the quote currency is USD 
const baseCurrencyName = "MATIC";
const quoteCurrencyName = "BTC";

//Profile config:
//Coinbase portfolios (profiles):
const tradingProfileName = "BTC trader"; //This is the name of the profile you want the bot to trade in
const depositProfileName = "default"; //This is the name of the profile you want to deposit some profits to

//Deposit config:
const depositingEnabled = true; //Choose whether or not you want you want to deposit a cut of the profits (Options: true/false)
const depositingAmount = 0.5; //Enter the amount of profit you want deposited (Options: choose a percent between 1 and 100 in decimal form I.E. .5 = 50%)

// Due to rounding errors the buy order may not have enough funds to execute the order. This is the minimum funds amount in dollars that
// will be left in usd account to avoid this error. Default = 6 cents (.06).
const balanceMinimum = .00000100; 

The log i will have to wait for next trade to come in see if i get the same error again. There are always error 400 not sure why. Even if the trade worked.

Could it be because the profit when devided by 2 end up being to small? I dont think this is the case cause i have seen some ppl making some transfers worth pennies.

Madeindreams avatar Mar 12 '21 05:03 Madeindreams

I've actually never tried trading coin to coin instead of usd to coin, if it works that's great haha :D. Weird that the profit transfer would fail though. You say there are other 400 errors? I wonder if there's another issue causing it. If you could dump a whole log file from start to where it encounters errors that would be great. 0.000005 MATIC is a very small amount, why don't you go into your portfolio and attempt to transfer that amount manually and see if it errors out so we can rule out the size being an issue right away.

LeviathanLevi avatar Mar 12 '21 05:03 LeviathanLevi