Git Product home page Git Product logo

autocoins's People

Contributors

daisy613 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autocoins's Issues

Installed v 1.2.5 but it thinks it's 1.2.4

I installed version Installed v 1.2.5 but when I run it, it thinks it's version 1.2.4 and tells me there is a new version. I've even deleted the old json file. Not sure if I am missing a step...

Discord notifications not working

Daisy,
The discord message command needs to be changed to '$settings.discord' since the autoCoins code changed to load the json file each run doesn't pre-populate $discord anymore.

Script not banning newly listed coins

My autoCoins script is not banning newly listed coin - NKNUSDT. Below is my config:

System Information:
VPS Provider: AWS
Version: 1.2.8
Running Time: 2416.5 mins

{
    "max1hrPercent":  5,
    "max24hrPercent":  10,
    "minAthPercent":  5,
    "minAge":  60,
    "refresh":  5,
    "proxy":  "",
    "proxyUser":  "",
    "proxyPass":  "",
    "discord":  "",
    "blackList":  [
                      "BTCUSDT",
                      "ETHUSDT",
                      "BNBUSDT",
                      "DOGEUSDT",
                      "YFIUSDT",
                      "TRBUSDT",
                      "SOLUSDT",
                      "UNIUSDT",
                      "AVAXUSDT",
                      "HNTUSDT",
                      "KSMUSDT",
                      "AAVEUSDT",
                      "RSRUSDT",
                      "MATICUSDT",
                      "AXSUSDT",
                      "SKLUSDT",
                      "BTCBUSDT",
                      "BTSUSDT",
                      "BTCUSDT_210625",
                      "ETHUSDT_210625",
                      "KNCUSDT",
                      "CTKUSDT",
                      "RLCUSDT"
                  ],
    "cooldownHrs":  4,
    "max4hrPercent":  5
}

From binance, this coin is less than 2 months old:

image

Yet I've already had 2 trades for this coin, and the script is not putting it in the quarantined list:

QUARANTINED: AKROUSDT, ALICEUSDT, BTCSTUSDT, BTTUSDT, CELRUSDT, CHRUSDT, COMPUSDT, COTIUSDT, DENTUSDT, DGBUSDT, ETCUSDT, HBARUSDT, HOTUSDT, LINAUSDT, MANAUSDT, MKRUSDT, MTLUSDT, NKNUSDT, OGNUSDT, ONEUSDT, REEFUSDT, RVNUSDT, STMXUSDT, XEMUSDT, XMRUSDT
UNQUARANTINED: DEFIUSDT, SCUSDT, ZRXUSDT
MarketSwing - Last 1hr - 6% Bearish
47% Long | 41 Coins | Ave 0.87% | Max 4.26% ALICEUSDT
53% Short | 46 Coins | Ave -0.49% | Max -2.94% FTMUSDT 
MarketSwing - Last 4hrs - 54% Bullish
77% Long | 67 Coins | Ave 1.75% | Max 10.47% ETCUSDT
23% Short | 20 Coins | Ave -0.88% | Max -2.55% ALPHAUSDT 
MarketSwing - Last 24hrs - 58% Bullish
79% Long | 69 Coins | Ave -1.44% | Max 27.05% ETCUSDT
21% Short | 18 Coins | Ave 0% | Max -4.08% WAVESUSDT
QUARANTINED: AKROUSDT, ALICEUSDT, BTCSTUSDT, BTTUSDT, CELRUSDT, CHRUSDT, COMPUSDT, COTIUSDT, DEFIUSDT, DENTUSDT, DGBUSDT, ETCUSDT, HBARUSDT, HOTUSDT, MANAUSDT, MKRUSDT, MTLUSDT, OGNUSDT, ONEUSDT, REEFUSDT, RVNUSDT, SCUSDT, STMXUSDT, XEMUSDT, XMRUSDT
UNQUARANTINED: LINAUSDT, NKNUSDT

The age value that comes from Binance is accurate as per the logs:

symbol    perc1hrVal                  perc1hr perc4hrVal perc4hr perc24hrVal perc24hr AthVal Ath  AgeVal
------    ----------                  ------- ---------- ------- ----------- -------- ------ ---  ------
NKNUSDT   {-4.97, 0.56, 0.38, -2.41}  PASS         -6.13 FAIL          15.98 FAIL      46.17 PASS     23

Although above logs is missing values from the table, you pull: select symbol,perc1hrVal,perc1hr,perc4hrVal,perc4hr,perc24hrVal,perc24hr,AthVal,Ath,AgeVal,Age,Open yet there is nothing after AgeVal.

Script randomly not calculating some coins

The script is not calculating some coins and un-quarantining them.
I run two scripts for two bots side by side with identical JSON files and they get different results even though they are only seconds apart when they run.
Log1 un-quarantined REEF and it doesn't appear in the calc table whreas Log2 banned it with fails in the calculations.

Log 1.log
Log 2.log

Quarantined Opened Trade

Just had an instance where the script quarantined ATOM which was in an open trade and therefore it did not DCA.
Not sure if it popped into the trade as the script was calculating and so maybe had a kind of overlap on time?- Just speculating.
autoCoins.log

Null array error v1.2.9

[v1.2.9 2021-05-19 01:51:06] <- Time issue started UTC-0500
All of a sudden the script terminated with the attached error. And terminates every time without completing.
It starts processing coins and gets to about 15 and fails.

Screenshot 2021-05-19 161100

Update - Newly added coin BAKEUSDT causing the crash.

some message

while running this appears

Cannot index into a null array.
At C:\Users\Administrator\Desktop\WickHunter\autoCoins.ps1:87 char:9

  •     $1hrPercentCurr = [math]::Abs((($1hrPrices[-1] - $1hrPrices[0 ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Cannot index into a null array.
At C:\Users\Administrator\Desktop\WickHunter\autoCoins.ps1:91 char:9

  •     $athPercentCurr = (($ath - $1hrPrices[-1]) * 100 / $ath)
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Screenshot 2021-04-09 at 08 10 52

Open Positions & Data could not be obtained

After calculating coin list I get open positions error when I have non.
Then it says "data could not be obtained"
Edit. FYI I returned to the previous version and it worked fine so I presume my setup is OK and there is a prob with the new version.
1 2 Error

Un-Quarantined list

In the PowerShell script it is not displaying the un-quarantined coins.
Discord alert is working ok.

Suddenly Un-Quarantine a pumping coin (QTUM)

Autocoins suddenly un-quarantine qtum which showed pumping 59% on perc24hrVal
It didn't retrace and I got a qtum trade 5mins later.
Qtumusdt and detailed info (pass/fail) didn't show in the log during that 5mins
Until another 5mins later it showed 63% perc24hrVal and on open position

Attached my autocoin logs
qtumusdt.txt

And setting
"max1hrPercent": 5,
"max4hrPercent": 5,
"max24hrPercent": 15,
"minAthPercent": 5,
"cooldownHrs": 4,
"minAge": 14,
"refresh": 5,

when running command on Powershell: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

when running command on Powershell:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

I get error:

Exception setting "SecurityProtocol": "Cannot convert null to type "System.Net.
SecurityProtocolType" due to invalid enumeration values. Specify one of the fol
lowing enumeration values and try again. The possible enumeration values are "S
sl3, Tls"."
At line:1 char:28

  • [Net.ServicePointManager]:: <<<< SecurityProtocol = [Net.SecurityProtocolType
    ]::Tls12
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

Bug/unknown error

Please see attached images. Top one has the error, and the other one is when a new coin(s) joins Binance.

The script also stops un-quarantining after a new coin(s) gets added onto Binance / the available list while continuing to run WH 6.2. --> So I would need to manually close both the powershell and WH, then re-open both apps to continue.

Would also like to suggest 2 value input (10% to 99%) for both 1h and 24h, if you haven't added it yet.

I will send my log and images to you through discord. Thanks for making this app! It truly makes a huge difference in the trade positions :)

502 Bad Gateway

The script was running fine 24/7 for a few days. Then this issue appeared:

[v1.2.9 2021-05-31 16:03:21] Calculating coin list ...  Invoke-RestMethod :
502 Bad Gateway
502 Bad Gateway
At line:1 char:1
+ Invoke-RestMethod -Method Get -Uri "https://fapi.binance.com/fapi/v1/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

I am using the default settings.

Autocoins Intermittently Dies. Upon Restart receiving Divide by 0 error and failure to restart

I've noticed on occasion that AC will just not be running anymore. A scan of the logs doesn't show anything out of the ordinary. This morning when I tried to restart I received an error message: Attempted to divide by zero. At ine : 28 char: 13

I've attached a screenshot. I wonder if the API being used is either down or malfunctioning and not returning an expected value.

image

tls

has not been fixed

v1.2.6 error

Hi
The script is not running it says it is not digitally signed.

1.2.8 running errors

1.2.6 worked fine but 1.2.8. is full of running errors.
Seems to have a problem with the PoshRS-Job module I think ??
128 Error 1
128 Error 2

128 Error 3

Quarantined a coin in trade

Quarantined EOSUSDT while in a trade due to 4hr %.

[v1.2.8 2021-05-06 12:13:28] Quarantined: ETCUSDT, QTUMUSDT
[v1.2.8 2021-05-06 12:13:28] Avg API Calls/min: 52 | running time: 30.5 mins
[v1.2.8 2021-05-06 12:18:30] Using proxy [ http://p.webshare.io:9999 | geoIp: 45.154.244.192/Hong Kong ]

symbol perc1hrVal perc1hr perc4hrVal perc4hr perc24hrVal perc24hr AthVal Ath AgeV
al


EOSUSDT {2.54, -0.65} PASS 18.11 FAIL 35.97 PASS 4.32 PASS 485
ETCUSDT {3.81, 0.5} PASS 16.04 FAIL 49.87 PASS 8.89 PASS 477
QTUMUSDT {12, 1.06} FAIL 20.41 FAIL 51.25 PASS 2.21 PASS 442

[v1.2.8 2021-05-06 12:20:49] Quarantined: EOSUSDT, ETCUSDT, QTUMUSDT
[v1.2.8 2021-05-06 12:20:50] Avg API Calls/min: 51 | running time: 37.9 mins

Suggestion: Only announce quarantine deltas on the webhook

Right now the webhook quarantine announcements will include repeatedly-quarantined coins. It would be more useful to only include coins that were newly-quarantined since the last check.

Example of the current behavior:
10:22 AM: QUARANTINED: AKROUSDT, ALICEUSDT, ALPHAUSDT, AVAXUSDT, CHRUSDT, COMPUSDT, DGBUSDT, ETCUSDT, FLMUSDT, MATICUSDT, RENUSDT, STMXUSDT, SXPUSDT, XMRUSDT

10:38 AM: QUARANTINED: AKROUSDT, ALICEUSDT, ALPHAUSDT, AVAXUSDT, CHRUSDT, COMPUSDT, DGBUSDT, FLMUSDT, MATICUSDT, NKNUSDT, RENUSDT, STMXUSDT, SXPUSDT, XMRUSDT

Example of expected behavior:
10:22 AM: QUARANTINED: AKROUSDT, ALICEUSDT, ALPHAUSDT, AVAXUSDT, CHRUSDT, COMPUSDT, DGBUSDT, ETCUSDT, FLMUSDT, MATICUSDT, RENUSDT, STMXUSDT, SXPUSDT, XMRUSDT

10:38 AM: QUARANTINED: NKNUSDT

Feature: Minimum quarantine period / switch to disable auto un-quarantine

From my observation it does un-quarantine too quick (as soon as conditions are not met) which would be better if there is minimum cooldown period. Coins often pump a 2nd and 3rd wave or there is a huge dump directly after the pump and currently I am already back right in when that happens. I know it is probably not easy to implement but maybe a simple switch to disable un-quarantine then I could manually add the coins back as some work around until then.

max1hr24hrPercent

Hi, I'm not sure how this setting works.
I see the default value is 5, but what does it mean with 1hr/24h combination ?
Does it mean: Within the last 24 hours the price has moved 5% within any hour of the last 24 hours ?
or does it mean: Within the last 24 hours the price has moved 5% within the last hour of the last 24 hours ?
or does it mean: Within the last 24 hours the price has moved 5% ?
or does it mean: Within the last 1 hour the price has moved 5% ?

What value should I use for the following:
(Within the last 1 hour the price has moved 5%) OR (Within the last 24 hours the price has moved 20%)

I think it will be better to have two separate settings:
max1hrPercent and max24hrPercent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.