CyberPunkMetalHead / binance-trading-bot-new-coins

This Binance trading bot detects new coins as soon as they are listed on the Binance exchange and automatically places sell and buy orders. It comes with trailing stop loss and other features. If you like this project please consider donating via Brave.
MIT License
1.46k stars 270 forks source link

this function is deprecated now #98

Open trumpest2 opened 2 years ago

trumpest2 commented 2 years ago

DevTools listening on ws://127.0.0.1:65382/devtools/browser/46129e6d-89d4-4906-9efc-8b3b5379019c [0325/161020.203:INFO:CONSOLE(49)] "[.WebGL-0000645600D13800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels", source: https://www.binance.com/en/support/announcement/c-48 (49) [0325/161020.708:INFO:CONSOLE(74)] "Refused to connect to 'https://www.google.com/pagead/landing?gcs=G111&gcd=G110&rnd=1337593105.1648195821&url=https%3A%2F%2Fwww.binance.com%2Fen%2Fsupport%2Fannouncement%2Fc-48&gtm=2wg3e0M86QHGF&auid=1073443361.1648195821' because it violates the following Content Security Policy directive: "connect-src 'self' https://bin.bnbstatic.com https://public.bnbstatic.com https://*.saasexch.com https://api.saasexch.com/bapi/themis/api/ wss://stream.binance.com wss://nbstream.binance.com wss://haodesk.binance.im https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com https://*.s3-accelerate.amazonaws.com wss://.binance.com https://.binance.com https://frontend-m.binance.cloud https://sensors.binance.cloud https://report.binance.gg https://*.sentry.io https://stats.g.doubleclick.net https://cdn.ampproject.org https://tk-dev-s3-bucket.s3.ap-northeast-1.amazonaws.com https://www.google-analytics.com https://www.googletagmanager.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.litix.io https://*.wistia.com https://embedwistia-a.akamaihd.net https://data-collect.toolsfdg.net". ", source: https://www.googletagmanager.com/gtm.js?id=GTM-M86QHGF (74) [0325/161020.741:INFO:CONSOLE(457)] "Refused to execute inline script because it violates the following Content Security Policy directive: "script-src blob: 'self' https://cdn.ampproject.org https://bin.bnbstatic.com https://public.bnbstatic.com https://*.saasexch.com 'nonce-7d861b00-c528-49d2-a879-2edea7675082' https://accounts.binance.com https://www.googletagmanager.com https://www.google-analytics.com https://www.google.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.wistia.com https://*.wistia.net https://src.litix.io data:". Either the 'unsafe-inline' keyword, a hash ('sha256-n6njHpSSxDkGfJLdaVOe7qBiS66DM8ZNrdWjzXmKSMg='), or a nonce ('nonce-...') is required to enable inline execution. ", source: https://www.googletagmanager.com/gtm.js?id=GTM-M86QHGF (457) [0325/161020.981:INFO:CONSOLE(1)] "Refused to load the script 'https://bat.bing.com/p/action/137033855.js' because it violates the following Content Security Policy directive: "script-src blob: 'self' https://cdn.ampproject.org https://bin.bnbstatic.com https://public.bnbstatic.com https://*.saasexch.com 'nonce-7d861b00-c528-49d2-a879-2edea7675082' https://accounts.binance.com https://www.googletagmanager.com https://www.google-analytics.com https://www.google.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.wistia.com https://*.wistia.net https://src.litix.io data:". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. ", source: https://bat.bing.com/bat.js (1) [0325/161020.984:INFO:CONSOLE(0)] "Refused to load the image 'https://bat.bing.com/action/0?ti=137033855&tm=gtm002&Ver=2&mid=18e9b457-c1b9-40ad-9f82-43efe2f71a10&sid=03cdd580ac1311eca3a471d899c02f11&vid=03ce1860ac1311ecb16be9d194b6366d&vids=1&gtm_tag_source=1&pi=0&lg=zh-TW&sw=800&sh=600&sc=24&tl=New%20Cryptocurrency%20Listing%20%7C%20Binance%20Support&kw=Binance%20Support&p=https%3A%2F%2Fwww.binance.com%2Fen%2Fsupport%2Fannouncement%2Fc-48&r=&lt=3165&evt=pageLoad&msclkid=N&sv=1&rn=855330' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: https://static.qa1fdg.net https://sensors.binance.cloud https://bin.bnbstatic.com https://public.bnbstatic.com https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com https://*.saasexch.com https://public-1259603563.file.myqcloud.com https://static-file-1259603563.file.myqcloud.com https://www.googletagmanager.com https://www.google-analytics.com https://googleads.g.doubleclick.net https://www.google.com https://analytics.twitter.com https://t.co https://www.facebook.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.wistia.com https://*.wistia.net https://embedwistia-a.akamaihd.net". ", source: https://www.binance.com/en/support/announcement/c-48 (0) [0325/161021.086:INFO:CONSOLE(0)] "Refused to load the image 'https://www.google.com.tw/pagead/1p-user-list/373946534/?random=1648195820966&cv=9&fst=1648195200000&num=1&bg=ffffff&guid=ON&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_his=2&u_tz=480&u_java=false&u_nplug=0&u_nmime=0&gtm=2wg3e0&sendb=1&frm=0&url=https%3A%2F%2Fwww.binance.com%2Fen%2Fsupport%2Fannouncement%2Fc-48&tiba=New%20Cryptocurrency%20Listing%20%7C%20Binance%20Support&async=1&fmt=3&is_vtc=1&random=138534967&resp=GooglemKTybQhCsO&rmt_tld=1&ipr=y' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: https://static.qa1fdg.net https://sensors.binance.cloud https://bin.bnbstatic.com https://public.bnbstatic.com https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com https://*.saasexch.com https://public-1259603563.file.myqcloud.com https://static-file-1259603563.file.myqcloud.com https://www.googletagmanager.com https://www.google-analytics.com https://googleads.g.doubleclick.net https://www.google.com https://analytics.twitter.com https://t.co https://www.facebook.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.wistia.com https://*.wistia.net https://embedwistia-a.akamaihd.net". ", source: https://www.binance.com/en/support/announcement/c-48 (0) working... [0325/161021.247:INFO:CONSOLE(0)] "Refused to load the image 'https://www.google.com.tw/ads/ga-audiences?t=sr&aip=1&_r=4&slf_rd=1&v=1&_v=j96&tid=UA-162512367-1&cid=874266704.1648195821&jid=1892821198&_u=YEDAAEAAAAAAAC~&z=1944610355' because it violates the following Content Security Policy directive: "img-src 'self' data: blob: https://static.qa1fdg.net https://sensors.binance.cloud https://bin.bnbstatic.com https://public.bnbstatic.com https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com https://*.saasexch.com https://public-1259603563.file.myqcloud.com https://static-file-1259603563.file.myqcloud.com https://www.googletagmanager.com https://www.google-analytics.com https://googleads.g.doubleclick.net https://www.google.com https://analytics.twitter.com https://t.co https://www.facebook.com https://cdn.cookielaw.org https://geolocation.onetrust.com https://privacyportal-bn.my.onetrust.com https://*.wistia.com https://*.wistia.net https://embedwistia-a.akamaihd.net". ", source: https://www.binance.com/en/support/announcement/c-48 (0) Exception in thread Thread-2 (search_and_update): Traceback (most recent call last): File "C:\Python310\lib\threading.py", line 1009, in _bootstrap_inner self.run() File "C:\Python310\lib\threading.py", line 946, in run self._target(*self._args, **self._kwargs) File "C:\bot\new_listings_scraper.py", line 69, in search_and_update latest_coin = get_last_coin() File "C:\bot\new_listings_scraper.py", line 23, in get_last_coin latest_announcement = driver.find_element(By.ID, 'link-0-0-p1') File "C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1248, in find_element return self.execute(Command.FIND_ELEMENT, { File "C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 425, in execute self.error_handler.check_response(response) File "C:\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="link-0-0-p1"]"} (Session info: headless chrome=99.0.4844.82) Stacktrace: Backtrace: Ordinal0 [0x00A09943+2595139] Ordinal0 [0x0099C9F1+2148849] Ordinal0 [0x00894528+1066280] Ordinal0 [0x008C0FD4+1249236] Ordinal0 [0x008C11CB+1249739] Ordinal0 [0x008ED812+1431570] Ordinal0 [0x008DBA34+1358388] Ordinal0 [0x008EBAF2+1424114] Ordinal0 [0x008DB806+1357830] Ordinal0 [0x008B6086+1204358] Ordinal0 [0x008B6F96+1208214] GetHandleVerifier [0x00BAB232+1658114] GetHandleVerifier [0x00C6312C+2411516] GetHandleVerifier [0x00A9F261+560433] GetHandleVerifier [0x00A9E366+556598] Ordinal0 [0x009A286B+2173035] Ordinal0 [0x009A75F8+2192888] Ordinal0 [0x009A76E5+2193125] Ordinal0 [0x009B11FC+2232828] BaseThreadInitThunk [0x75C3FA29+25] RtlGetAppContainerNamedObjectPath [0x77807A7E+286] RtlGetAppContainerNamedObjectPath [0x77807A4E+238]

[0325/161021.283:INFO:CONSOLE(1)] "this function is deprecated now, use getStrategiesConfig instead", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1) [0325/161021.283:INFO:CONSOLE(1)] "this function is deprecated now, use getStrategiesConfig instead", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1) [0325/161021.283:INFO:CONSOLE(1)] "[object Object]", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1) [0325/161021.284:INFO:CONSOLE(1)] "[object Object]", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1) [0325/161021.284:INFO:CONSOLE(1)] "[object Object]", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1) [0325/161021.284:INFO:CONSOLE(1)] "[object Object]", source: https://bin.bnbstatic.com/static/chunks/475e4bce0f7561145380ae2c893647ffd71d68a5.4fc3a9b4.js (1)