Coder Social home page Coder Social logo

tsarbuig / limitswap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaqub0r/limitswap

17.0 17.0 30.0 753 KB

LimitSwap is fully functional DeFi Trading Bot. No fees. You just need to hold LIMIT Utility token in your wallet to use.

Home Page: https://www.limitswap.com/

Python 14.84% Dockerfile 2.58% Makefile 82.58%

limitswap's People

Contributors

bc-sir avatar cryptognome avatar gradyd avatar nathan31337 avatar prt1999 avatar tsarbuig avatar vlameiras avatar yaqub0r avatar ypetrenko-nng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

limitswap's Issues

Change values in Buy the dip mode

Change the price monitor to use the ATH price not the listing price. Also add the ability to change the default 50% dip price for a custom one like 35%-40% in tokens.json.

Add the ability to change the default buy value 20% above all time low for a custom one like 15%-17% in tokens.json.

This token has reached maximum SUCCESS SIMULTANIOUS TRANSACTIONS

The bot does not sell because the number of successful confirmations has been exceeded.

My configuration:

[
  {
    "ENABLED": "true",

    "SYMBOL": "CONQ",
    "ADDRESS": "0xE3273EfB61EBB8d63333B05B42B5751Ef9758B42",
    "KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
    "BUYAMOUNTINBASE": "0.006",
    "BUYAMOUNTINTOKEN": "30000",
    "MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0.5", // used with KIND_OF_SWAP = tokens

    "BUYPRICEINBASE":  "0.01",
    "SELLPRICEINBASE": "60%", // You can now put amount in % in this field
    "STOPLOSSPRICEINBASE": "0", // You can now put amount in % in this field
    "SLIPPAGE": "16",
	
    "MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
    "MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
    "MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",
    "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "2",

    "RUGDOC_CHECK": "false",
    "BUYAFTER_XXX_SECONDS": "0", // if you want the bot to wait XXX seconds before if makes the BUY Tx
    "WAIT_FOR_OPEN_TRADE": "true_after_buy_tx_failed", // pinksale check Wiki, this is very useful
    "MULTIPLEBUYS": "false", // use this if you want bot to make multiple buys at the same time
    "BUYCOUNT": "1",
    "ALWAYS_CHECK_BALANCE": "false", // use this if you want bot to check your token balance between each price check

    "MINIMUM_LIQUIDITY_IN_DOLLARS": "1000",
    "WATCH_STABLES_PAIRS": "true", // use this if you want bot to check all Stable Liquidity pairs

    "LIQUIDITYINNATIVETOKEN": "true",
    "USECUSTOMBASEPAIR": "false",
    "BASESYMBOL": "BUSD",
    "BASEADDRESS": "0xe9e7cea3dedca5984780bafc599bd69add087d56",

    "SELLAMOUNTINTOKENS": "ALL",
    "HASFEES": "true",
    "GAS": "BOOST", // Team recommend you to use BOOST here
    "MAX_GAS": "9999", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
    "BOOSTPERCENT": "30",
    "GASLIMIT": "1000000", // Team recommend you to use 1000000 here
    "GASPRIORITY_FOR_ETH_ONLY": "1.5"
  }
]
INFO: 2022-01-26 17:37:46,810 YOUR BOT IS CURRENTLY RUNNING VERSION  4.2.1.2
INFO: 2022-01-26 17:37:47,084 Checking Latest Release Version on Github, Please Make Sure You are Staying Updated =  v4.2.1.2

INFO: 2022-01-26 17:37:51,146 --------------------------------------------------------------------------------------------------
INFO: 2022-01-26 17:37:51,150     DO NOT CLOSE THE BOT after BUY order is made, or your calculated SELLPRICE will be lost!
INFO: 2022-01-26 17:37:51,151 --------------------------------------------------------------------------------------------------
INFO: 2022-01-26 17:37:51,481 Current Wallet Balance is : 0.083929623003657216 BNB 
INFO: 2022-01-26 17:37:51,948 Current Wallet Balance is:  0.0 USDT
INFO: 2022-01-26 17:37:52,431 Current Wallet Balance is:  29.84926954191838 BUSD
INFO: 2022-01-26 17:37:52,901 Current Wallet Balance is:  0.0 USDC
INFO: 2022-01-26 17:37:53,373 -----------------------------------------------------------
INFO: 2022-01-26 17:37:53,373 Buy Signal Found =-= Buy Signal Found =-= Buy Signal Found 
INFO: 2022-01-26 17:37:53,374 
INFO: 2022-01-26 17:37:53,374 Buy price in CONQ/BNB  : 0.000053440514368975
INFO: 2022-01-26 17:37:53,374 -----------------------------------------------------------
INFO: 2022-01-26 17:37:53,464 make_the_buy condition 4
INFO: 2022-01-26 17:37:53,977 Transaction Hash =  0x106dcf3850cc0cc36df0ddf1f75361ee3a763993f513b23203e5ff8d816cfcf3
INFO: 2022-01-26 17:37:59,059 ----------------------------------
INFO: 2022-01-26 17:37:59,060 SUCCESS : your buy Tx is confirmed
INFO: 2022-01-26 17:37:59,561 Current Wallet Balance is : 0.075760924003657216 BNB 
INFO: 2022-01-26 17:37:59,666 Current Wallet Balance is:  0.0 CONQ
INFO: 2022-01-26 17:37:59,667 
INFO: 2022-01-26 17:37:59,667 You bought 0.0 CONQ tokens
INFO: 2022-01-26 17:37:59,668 ----------------------------------
ERROR: 2022-01-26 17:37:59,670 macosx:// is disabled on this system.
ERROR: 2022-01-26 17:37:59,670 windows:// is disabled on this system.
INFO: 2022-01-26 17:38:00,366 Transaction Hash =  0x9eebee310786f3c5a48076ce9e03bdd136f0bdb9db2b07c7f94a0c0d01bef499
INFO: 2022-01-26 17:38:04,547   Token is now approved : LimitSwap can sell this token
INFO: 2022-01-26 17:38:11,118 -----------------------------------------------------------
INFO: 2022-01-26 17:38:11,119 Buy Signal Found =-= Buy Signal Found =-= Buy Signal Found 
INFO: 2022-01-26 17:38:11,119 
INFO: 2022-01-26 17:38:11,119 Buy price in CONQ/BNB  : 0.000053441734059382
INFO: 2022-01-26 17:38:11,120 -----------------------------------------------------------
INFO: 2022-01-26 17:38:11,205 make_the_buy condition 4
INFO: 2022-01-26 17:38:11,704 Transaction Hash =  0x62a19ad6343664721cf42986d8c838f0d7306b7eead00740f59eaba3a585ad73
INFO: 2022-01-26 17:38:17,651 ----------------------------------
INFO: 2022-01-26 17:38:17,652 SUCCESS : your buy Tx is confirmed
INFO: 2022-01-26 17:38:17,830 Current Wallet Balance is : 0.067519979003657216 BNB 
INFO: 2022-01-26 17:38:17,932 Current Wallet Balance is:  212.78314343720837 CONQ
INFO: 2022-01-26 17:38:17,932 
INFO: 2022-01-26 17:38:17,933 You bought 212.78314343720837 CONQ tokens
INFO: 2022-01-26 17:38:17,933 ----------------------------------
ERROR: 2022-01-26 17:38:17,934 macosx:// is disabled on this system.
ERROR: 2022-01-26 17:38:17,934 windows:// is disabled on this system.
INFO: 2022-01-26 17:38:18,042 You have reached MAX_SUCCESS_TRANSACTIONS_IN_A_ROW for CONQ token --> disabling trade
INFO: 2022-01-26 17:38:18,043 You have reached MAXTOKENS for CONQ token --> disabling trade
INFO: 2022-01-26 17:38:18,044 Sell Signal Found @0.000053441734059382
INFO: 2022-01-26 17:38:18,045 
INFO: 2022-01-26 17:38:18,045 Sell price in CONQ/BNB  : 0.000053441734059382
INFO: 2022-01-26 17:38:18,046 ---------------------------------------------------------------
INFO: 2022-01-26 17:38:18,046 DISABLING CONQ
INFO: 2022-01-26 17:38:18,046 This token has reached maximum SUCCESS SIMULTANIOUS TRANSACTIONS
INFO: 2022-01-26 17:38:18,046 ---------------------------------------------------------------
INFO: 2022-01-26 17:41:27,075 **********************************************************************************************************************

Bot sold only 1 of 2 wallets

I set up the bot to sell my tokens immediately at launch, with 2 wallets. The first wallet sold, but the second one didn't.

This is the log:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-01-24 19:02:39,572 Current Wallet Balance is : (censored) BNB
ERROR: 2022-01-24 19:02:40,208 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-01-24 19:02:40,669 Current Wallet Balance is : (censored) BNB
INFO: 2022-01-24 19:02:41,238 Sell Signal Found @0.000000620033549369
INFO: 2022-01-24 19:02:41,240
INFO: 2022-01-24 19:02:41,240 Sell price in ONI/BNB : 0.000000620033549369
INFO: 2022-01-24 19:02:41,365 Current Wallet Balance is: 3500000.0 ONI
INFO: 2022-01-24 19:02:41,869 sell condition 3
INFO: 2022-01-24 19:02:42,261 Transaction Hash = (censored)
INFO: 2022-01-24 19:02:47,916 ----------------------------------
INFO: 2022-01-24 19:02:47,916 SUCCESS : your sell Tx is confirmed
INFO: 2022-01-24 19:02:48,151 Current Wallet Balance is : (censored) BNB
INFO: 2022-01-24 19:02:48,296 Current Wallet Balance is: 0.0 ONI
INFO: 2022-01-24 19:02:48,297 ----------------------------------
ERROR: 2022-01-24 19:02:48,297 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-01-24 19:02:48,714 Current Wallet Balance is : (censored) BNB
ERROR: 2022-01-24 19:02:49,330 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-01-24 19:02:49,634 Current Wallet Balance is : (censored) BNB
ERROR: 2022-01-24 19:02:50,160 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

This is my tokens set up:

[
{
"ENABLED": "true",

"SYMBOL": "ONI",
"ADDRESS": "0xBd68b8D34D2Cac8998aB238d014A321c7fac88C5",
"KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
"BUYAMOUNTINBASE": "0",
"BUYAMOUNTINTOKEN": "",
"MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0", // used with KIND_OF_SWAP = tokens

"BUYPRICEINBASE":  "0",
"SELLPRICEINBASE": "0", // You can now put amount in % in this field
"STOPLOSSPRICEINBASE": "0", // You can now put amount in % in this field
"SLIPPAGE": "49",

"MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
"MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
"MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "3",
"MAX_FAILED_TRANSACTIONS_IN_A_ROW": "3",

"RUGDOC_CHECK": "false",
"BUYAFTER_XXX_SECONDS": "0", // if you want the bot to wait XXX seconds before if makes the BUY Tx
"WAIT_FOR_OPEN_TRADE": "false", // check Wiki, this is very useful
"MULTIPLEBUYS": "true", // use this if you want bot to make multiple buys at the same time
"BUYCOUNT": "2",
"ALWAYS_CHECK_BALANCE": "true", // use this if you want bot to check your token balance between each price check

"MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
"WATCH_STABLES_PAIRS": "false", // use this if you want bot to check all Stable Liquidity pairs

"LIQUIDITYINNATIVETOKEN": "false",
"USECUSTOMBASEPAIR": "false",
"BASESYMBOL": "",
"BASEADDRESS": "",

"SELLAMOUNTINTOKENS": "ALL",
"HASFEES": "true",
"GAS": "50", // Team recommend you to use BOOST here
"MAX_GAS": "99999", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
"BOOSTPERCENT": "30",
"GASLIMIT": "2000000", // Team recommend you to use 1000000 here
"GASPRIORITY_FOR_ETH_ONLY": "1.5"

}
]

Error when liquidity already added - FTM blockchain

Hi! I try to snipe a launch on FTM and even with the "WAIT_FOR_OPEN_TRADE": "true_after_buy_tx_failed_no_message", i have an error and the bot shutdown. Here is one of the tx id : https://ftmscan.com/tx/0x657c53bc944c80e575d4e511aeb5788aac2c824c68f3ba460f04b5e95fce2ec8

The error in the log is :

INFO: 2022-02-02 11:41:28,561 Buy Signal Found =-= Buy Signal Found =-= Buy Signal Found 
INFO: 2022-02-02 11:41:28,561 
INFO: 2022-02-02 11:41:28,561 Buy price in FCC/FTM : 0.000006920415224913
INFO: 2022-02-02 11:41:28,561 -----------------------------------------------------------
INFO: 2022-02-02 11:41:28,843 make_the_buy condition 4
INFO: 2022-02-02 11:41:29,573 Transaction Hash =  0x657c53bc944c80e575d4e511aeb5788aac2c824c68f3ba460f04b5e95fce2ec8
INFO: 2022-02-02 11:41:33,011 -------------------------------
INFO: 2022-02-02 11:41:33,011    BUY TRANSACTION FAILURE !
INFO: 2022-02-02 11:41:33,011 -------------------------------
INFO: 2022-02-02 11:41:33,011 Type of failures and possible causes:
INFO: 2022-02-02 11:41:33,012 - TRANSFER_FROM_FAILED         --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-02 11:41:33,012 - TRANSFER_FROM_FAILED         --> Your BASE token is not approved for trade
INFO: 2022-02-02 11:41:33,012 - INSUFFICIENT_OUTPUT_AMOUNT   --> SLIPPAGE too low
INFO: 2022-02-02 11:41:33,013 - TRANSFER_FAILED              --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-02 11:41:33,013 - TRANSFER_FAILED              --> There is a whitelist
INFO: 2022-02-02 11:41:33,013 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-02 11:41:33,013 - ... or your node is not working well
INFO: 2022-02-02 11:41:33,014 -------------------------------
ERROR: 2022-02-02 11:41:33,014 macosx:// is disabled on this system.
INFO: 2022-02-02 11:41:33,015 Notifying 1 service(s) asynchronously.
INFO: 2022-02-02 11:41:45,034 Sent Windows notification.
INFO: 2022-02-02 11:41:45,425 -----------------------------------------------------------------------------------------------------------------------------
INFO: 2022-02-02 11:41:45,426 WAIT_FOR_OPEN_TRADE is enabled
INFO: 2022-02-02 11:41:45,426 
ERROR: 2022-02-02 11:41:45,692 {'code': -32004, 'message': 'the method eth_newFilter does not exist/is not available'}
Traceback (most recent call last):
  File "C:\Users\Desktop\Desktop\LimitSwap-4.2.1.4\LimitSwap.py", line 5131, in run
    wait_for_open_trade(token, token['_IN_TOKEN'], token['_OUT_TOKEN'])
  File "C:\Users\Desktop\Desktop\LimitSwap-4.2.1.4\LimitSwap.py", line 2594, in wait_for_open_trade
    tx_filter = client.eth.filter({"filter_params": "pending", "address": inToken})
  File "C:\Users\Desktop\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\module.py", line 57, in caller
    result = w3.manager.request_blocking(method_str,
  File "C:\Users\Desktop\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 187, in request_blocking
    return self.formatted_response(response,
  File "C:\Users\Desktop\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 168, in formatted_response
    raise ValueError(response["error"])
ValueError: {'code': -32004, 'message': 'the method eth_newFilter does not exist/is not available'}
INFO: 2022-02-02 11:41:45,693 ERROR. Please go to /log folder and open your logs: you will find more details.

Inserted max failed tx = 3, bot tried to sell 6 times. I shut it down manually.

I bought a token in presale and wanted to sell shortly after launch.

I inserted "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "3", however, the bot kept trying to sell more than 3 times in a row. It made 6 failed sell transactions before I shut it down manually. It would have probably kept going if I didn't shut it down.

log:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:01:21,714 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:01:21,715 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:01:22,012 Current Wallet Balance is : 5.005116316416662407 BNB
INFO: 2022-02-01 18:01:22,484 Sell Signal Found @0.000000013639299041
INFO: 2022-02-01 18:01:22,487
INFO: 2022-02-01 18:01:22,487 Sell price in BFYC/BNB : 0.000000013639299041
INFO: 2022-02-01 18:01:22,567 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:01:22,867 sell condition 3
INFO: 2022-02-01 18:01:23,332 Transaction Hash = censored
INFO: 2022-02-01 18:01:29,643 --------------------------------
INFO: 2022-02-01 18:01:29,643 SELL TRANSACTION FAILURE !
INFO: 2022-02-01 18:01:29,644 --------------------------------
INFO: 2022-02-01 18:01:29,644 Type of failures and possible causes:
INFO: 2022-02-01 18:01:29,644 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-01 18:01:29,645 - TRANSFER_FROM_FAILED --> Token is not approved for trade. LimitSwap will check approval right now.
INFO: 2022-02-01 18:01:29,645 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-02-01 18:01:29,645 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-01 18:01:29,645 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-02-01 18:01:29,645 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-01 18:01:29,645 - ... or your node is not working well
INFO: 2022-02-01 18:01:29,646 -------------------------------
ERROR: 2022-02-01 18:01:29,764 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:01:29,884 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:01:29,884 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:01:30,050 Current Wallet Balance is : 4.905116416416662407 BNB
INFO: 2022-02-01 18:01:30,366 Sell Signal Found @0.000000019457335698
INFO: 2022-02-01 18:01:30,368
INFO: 2022-02-01 18:01:30,369 Sell price in BFYC/BNB : 0.000000019457335698
INFO: 2022-02-01 18:01:30,470 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:01:30,694 sell condition 3
INFO: 2022-02-01 18:01:31,066 Transaction Hash = censored
INFO: 2022-02-01 18:01:36,459 --------------------------------
INFO: 2022-02-01 18:01:36,461 SELL TRANSACTION FAILURE !
INFO: 2022-02-01 18:01:36,462 --------------------------------
INFO: 2022-02-01 18:01:36,463 Type of failures and possible causes:
INFO: 2022-02-01 18:01:36,464 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-01 18:01:36,465 - TRANSFER_FROM_FAILED --> Token is not approved for trade. LimitSwap will check approval right now.
INFO: 2022-02-01 18:01:36,466 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-02-01 18:01:36,468 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-01 18:01:36,469 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-02-01 18:01:36,471 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-01 18:01:36,471 - ... or your node is not working well
INFO: 2022-02-01 18:01:36,472 -------------------------------
ERROR: 2022-02-01 18:01:36,569 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:01:36,766 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:01:36,767 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:01:37,167 Current Wallet Balance is : 4.805116516416662407 BNB
INFO: 2022-02-01 18:01:37,577 Sell Signal Found @0.000000018508578796
INFO: 2022-02-01 18:01:37,581
INFO: 2022-02-01 18:01:37,588 Sell price in BFYC/BNB : 0.000000018508578796
INFO: 2022-02-01 18:01:37,723 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:01:38,063 sell condition 3
INFO: 2022-02-01 18:01:38,507 Transaction Hash = censored
INFO: 2022-02-01 18:01:44,661 --------------------------------
INFO: 2022-02-01 18:01:44,661 SELL TRANSACTION FAILURE !
INFO: 2022-02-01 18:01:44,662 --------------------------------
INFO: 2022-02-01 18:01:44,663 Type of failures and possible causes:
INFO: 2022-02-01 18:01:44,663 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-01 18:01:44,664 - TRANSFER_FROM_FAILED --> Token is not approved for trade. LimitSwap will check approval right now.
INFO: 2022-02-01 18:01:44,664 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-02-01 18:01:44,664 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-01 18:01:44,665 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-02-01 18:01:44,665 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-01 18:01:44,665 - ... or your node is not working well
INFO: 2022-02-01 18:01:44,665 -------------------------------
ERROR: 2022-02-01 18:01:44,849 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:01:44,973 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:01:44,976 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:01:45,152 Current Wallet Balance is : 4.705116616416662407 BNB
INFO: 2022-02-01 18:01:45,468 Sell Signal Found @0.000000015863136909
INFO: 2022-02-01 18:01:45,469
INFO: 2022-02-01 18:01:45,469 Sell price in BFYC/BNB : 0.000000015863136909
INFO: 2022-02-01 18:01:45,703 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:01:45,924 sell condition 3
INFO: 2022-02-01 18:01:46,360 Transaction Hash = censored
INFO: 2022-02-01 18:01:54,050 --------------------------------
INFO: 2022-02-01 18:01:54,051 SELL TRANSACTION FAILURE !
INFO: 2022-02-01 18:01:54,052 --------------------------------
INFO: 2022-02-01 18:01:54,053 Type of failures and possible causes:
INFO: 2022-02-01 18:01:54,053 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-01 18:01:54,053 - TRANSFER_FROM_FAILED --> Token is not approved for trade. LimitSwap will check approval right now.
INFO: 2022-02-01 18:01:54,054 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-02-01 18:01:54,054 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-01 18:01:54,054 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-02-01 18:01:54,055 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-01 18:01:54,056 - ... or your node is not working well
INFO: 2022-02-01 18:01:54,056 -------------------------------
ERROR: 2022-02-01 18:01:54,202 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:01:54,331 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:01:54,333 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:01:54,526 Current Wallet Balance is : 4.605116716416662407 BNB
INFO: 2022-02-01 18:01:54,948 Sell Signal Found @0.000000018179994260
INFO: 2022-02-01 18:01:54,950
INFO: 2022-02-01 18:01:54,950 Sell price in BFYC/BNB : 0.000000018179994260
INFO: 2022-02-01 18:01:55,039 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:01:55,239 sell condition 3
INFO: 2022-02-01 18:01:55,721 Transaction Hash = censored
INFO: 2022-02-01 18:02:03,433 --------------------------------
INFO: 2022-02-01 18:02:03,434 SELL TRANSACTION FAILURE !
INFO: 2022-02-01 18:02:03,441 --------------------------------
INFO: 2022-02-01 18:02:03,441 Type of failures and possible causes:
INFO: 2022-02-01 18:02:03,451 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-02-01 18:02:03,454 - TRANSFER_FROM_FAILED --> Token is not approved for trade. LimitSwap will check approval right now.
INFO: 2022-02-01 18:02:03,460 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-02-01 18:02:03,461 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-02-01 18:02:03,461 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-02-01 18:02:03,462 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-02-01 18:02:03,463 - ... or your node is not working well
INFO: 2022-02-01 18:02:03,466 -------------------------------
ERROR: 2022-02-01 18:02:03,644 name 'cooldown' is not defined
Traceback (most recent call last):
File "LimitSwap.py", line 5258, in
File "LimitSwap.py", line 2231, in auth
UnboundLocalError: local variable 'decode' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5203, in run
NameError: name 'cooldown' is not defined
INFO: 2022-02-01 18:02:03,789 Your wallet already owns : 222222222.0 BFYC
INFO: 2022-02-01 18:02:03,799 You have reached MAXTOKENS for token BFYC --> bot stops to buy
INFO: 2022-02-01 18:02:04,047 Current Wallet Balance is : 4.505116816416662407 BNB
INFO: 2022-02-01 18:02:04,457 Sell Signal Found @0.000000018105612880
INFO: 2022-02-01 18:02:04,467
INFO: 2022-02-01 18:02:04,468 Sell price in BFYC/BNB : 0.000000018105612880
INFO: 2022-02-01 18:02:04,675 Current Wallet Balance is: 222222222.0 BFYC
INFO: 2022-02-01 18:02:04,968 sell condition 3

tokens set up:

[
{
"ENABLED": "true",

"SYMBOL": "BFYC",
"ADDRESS": "0xa627Eb25dA4bCF6620DfF3f3fa87e4117eC71c6D",
"KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
"BUYAMOUNTINBASE": "0",
"BUYAMOUNTINTOKEN": "",
"MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0", // used with KIND_OF_SWAP = tokens

"BUYPRICEINBASE":  "0",
"SELLPRICEINBASE": "0", // You can now put amount in % in this field
"STOPLOSSPRICEINBASE": "0", // You can now put amount in % in this field
"SLIPPAGE": "49",

"MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
"MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
"MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "3",
"MAX_FAILED_TRANSACTIONS_IN_A_ROW": "3",

"RUGDOC_CHECK": "false",
"BUYAFTER_XXX_SECONDS": "0", // if you want the bot to wait XXX seconds before if makes the BUY Tx
"WAIT_FOR_OPEN_TRADE": "false", // check Wiki, this is very useful
"MULTIPLEBUYS": "false", // use this if you want bot to make multiple buys at the same time
"BUYCOUNT": "2",
"ALWAYS_CHECK_BALANCE": "false", // use this if you want bot to check your token balance between each price check

"MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
"WATCH_STABLES_PAIRS": "false", // use this if you want bot to check all Stable Liquidity pairs

"LIQUIDITYINNATIVETOKEN": "false",
"USECUSTOMBASEPAIR": "false",
"BASESYMBOL": "",
"BASEADDRESS": "",

"SELLAMOUNTINTOKENS": "ALL",
"HASFEES": "true",
"GAS": "300", // Team recommend you to use BOOST here
"MAX_GAS": "99999", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
"BOOSTPERCENT": "30",
"GASLIMIT": "333333", // Team recommend you to use 1000000 here
"GASPRIORITY_FOR_ETH_ONLY": "1.5"

}
]

Since I inserted quite a high gas, I spent 0.1 bnb on every failed transactions, and ended up losing 0.6 in total.

I have the feeling that "MAX_FAILED_TRANSACTIONS_IN_A_ROW" relates only to buy transactions, not sell. But that's just a guess.

In general, I have the feeling that the bot is optimized for buying and not so much for selling. Since the bot can be used for either, or both, I have some suggestions to make changes in the settings. I will make a detailed feature request about this shortly.

1inch Dex for LimitSwap users

Please bring back 1inch Dex for Matic network enthusiasts. Sure, 1inch is an aggregator but that actually ensures that the users get the best quotes for their swaps.
QuickSwap is currently charging a 0.3% Liquid Provide fee (or 0.6% for a round trip) per transaction on top of the gas fees.
Thank you!

Trailing Stop Loss updated functionality

I had a couple of instances where the trailing stop loss feature worked against me. Both times, I had a sell price set around 200-300% of buy price. As the bot runs, it calculated a trailing stop loss based on ATH (that it sees while the bot runs). But this ATH is no where near the sell price level I had set. As the price drops lower, I do not want to sell, but it reached the calculated trailing stop loss level that it had calculated based on the ATH that the bot saw. And the bot sells at a much lower level that I had wanted. Taking significant losses both times.
What I would like is for the trailing stop loss feature to not even activate until the sell price level is reached. That way, the bot never sells for loss and keeps active until the price reaches the sell point. Then the trailing stop loss is triggered and the bot monitors the price updates the ATH at that point only That way the ATH is always at or greater than the sell price. And the trailing stop loss feature will track the price increase and update the ATH from that point on, and sell only if the price falls to the level that was set (% of ATH).
This will make this feature much more useable for people who want to wait for a token to spike and keep while it is still low.

Pingpong after first sell at launch

The first sell at launch usually it is the Trailing Stop Loss, so we want to add Pingpong after this. Could be implemented like this in token.json:
-Pingpong_After_First_Sell = True

Examples of tokens

BNB testnet

  • Decimals 9 : 0x3cf377130e8dd3d193834b26cf1ff57e2faa2f60

BNB

  • Decimals 8 : 0x8d047f4f57a190c96c8b9704b39a1379e999d82b
  • Decimals 2 : 0xffdc00285dde1f5b5c65c6a963357b4c55d8f601
  • Decimals 18 / BUSD liquidity : 0xd52efe1039d706722b3d696e74ad4095dc3d3860
  • Decimals 18 / USDT liquidity : 0xcc079ca45b62c5bc0064e0b40a2dd3d409503119

MATIC

  • USDT (decimals 6) : 0xc2132d05d31c914a87c6611c10748aeb04b58e8f

MAX Buy Count

Hi Tsar,

would be nice if you could create a Maximum Buy count as an alternative to MAXTOKEN Amount. Because a lot of launches have so many zeros that it is sometimes easy to type a "0" mistake.

Many thanks!

Bot buy but the the sell price was still 99999

Hello Tsar,

i have a problem again, now the bot is buying but not selling.

Sellprice is always 99999 no matter what I change in the tokens.json.

Please help.

This is my tokens.json:

[
{
"ENABLED": "true",
"SELECT_MODE": "limitswap", // available values : limitswap / buy_the_dip / trailing_stop / limitswap+trailing_stop / ping_pong / limitswap+ping_pong / snipe_on_pinksale / pinksale
"SYMBOL": "MTVP",
"ADDRESS": "0x64d2906391a82721bb24925fc16a3eff20c8756e",

// ----------- BUY / SELL PARAMETERS ---------------------------------------------------------------------------------
"KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
"BUYAMOUNTINBASE": "1",
"BUYAMOUNTINTOKEN": "(not used)",
"MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "(not used)", // used with KIND_OF_SWAP = tokens

"BUYPRICEINBASE":  "0.0244",
"SELLPRICEINBASE": "107%",         // You can now put amount in % in this field
"SELLAMOUNTINTOKENS": "ALL",
"STOPLOSSPRICEINBASE": "70%",      // You can now put amount in % in this field
"SLIPPAGE": "49",

// ----------- BUY_THE_DIP / TRAILING_STOP_LOSS PARAMETERS -----------------------------------------------------------
"BUY_THE_DIP_PARAMETERS": "20%---10%", // % of the dip under ATH, then % of the rise above ATL
"TRAILING_STOP_LOSS_PARAMETER": "55%", // put amount in % in this field. Enter '0' if you don't want to use it

// ----------- LIQUIDITY PARAMETERS -----------------------------------------------------------------------------------
"WATCH_STABLES_PAIRS": "false", // use this if you want bot to check all Stable Liquidity pairs
"LIQUIDITYINNATIVETOKEN": "false",
"USECUSTOMBASEPAIR": "true",
"BASESYMBOL": "BUSD",
"BASEADDRESS": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",

// ----------- COUNTER ANTI BOT PARAMETERS ---------------------------------------------------------------------------
"WAIT_FOR_OPEN_TRADE": "true_after_buy_tx_failed", // check Wiki, this is very useful
"CHECK_IF_TRADING_IS_ENABLED": "false", // EXPERIMENTAL - BSC/AVAX/FTM only - put 'true' if you want the bot to check if openTrading is enabled after detecting liquidity
"BUY_AND_SELL_TAXES_CHECK": "false", // BSC/AVAX/FTM only - put 'true' if you want the bot to check BUY/SELL tax fees
"MAX_BUY_TAX_IN_%": "20", // bot will buy as soon as BUY tax is lower that this value
"MAX_SELL_TAX_IN_%": "20", // bot will buy as soon as SELL tax is lower that this value
"BUYAFTER_XXX_SECONDS": "0",
"MULTIPLEBUYS": "false", // you can use 2 options : 'several_wallets' or 'same_wallet'. Check wiki
"BUYCOUNT": "2",

// ----------- GAS PARAMETERS -----------------------------------------------------------------------------------------
"GAS": "BOOST", // Team recommend you to use BOOST here
"GAS_FOR_APPROVE": "BOOST", // Gas for Approval Tx. Team recommend you to use BOOST here
"MAX_GAS": "9999", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
"BOOSTPERCENT": "30",
"BOOSTPERCENT_FOR_APPROVE": "30",
"GASLIMIT": "1000000",
"GASPRIORITY_FOR_ETH_ONLY": "1.5",

// ----------- OTHER PARAMETERS ---------------------------------------------------------------------------------------
"MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
"MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
"HASFEES": "true",
"MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",
"MAX_FAILED_TRANSACTIONS_IN_A_ROW": "2",
"RUGDOC_CHECK": "true",

// ----------- PINKSALE SNIPING ----------------------------------------------------------------------------------------
"PINKSALE_PRESALE_ADDRESS": "enter here the presale address if you're sniping a Pinksale listing",
"PINKSALE_PRESALE_START_TIMESTAMP": "1647477029"
}
]

And here the log:

NFO: 2022-04-29 15:29:43,550 Your bot is running v4.4.1.2
INFO: 2022-04-29 15:29:43,866 Last version available v4.4.3.0 PLEASE KEEP UPDATED
INFO: 2022-04-29 15:33:26,295 Your tokens.json contains:
INFO: 2022-04-29 15:33:26,295 ENABLED= true ADDRESS= 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82 KIND_OF_SWAP= base MINIMUM_LIQUIDITY_IN_DOLLARS= 10000 BUYAMOUNTINBASE= 0.005 BUYAMOUNTINTOKEN= 5 MAX_BASE...= 0.5 BUYPRICEINBASE= 0.0 SELLPRICEINBASE= 99999 STOPLOSSPRICEINBASE= 0 SELLAMOUNTINTOKENS= ALL SLIPPAGE= 15 WATCH_STABLES_PAIRS= true LIQUIDITYINNATIVETOKEN= false USECUSTOMBASEPAIR= true BASEADDRESS= 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d BUY_THE_DIP_PARAMETERS= 50%---20% TRAILING_STOP_LOSS_PARAMETER= 80% BUY_AND_SELL_TAXES_CHECK= false MAX_BUY_TAX_IN_%= 20 MAX_SELL_TAX_IN_%= 20 BUYAFTER_XXX_SECONDS= 0 MULTIPLEBUYS= false BUYCOUNT= 2 GAS= BOOST MOONBAG= 0 MAXTOKENS= 1 HASFEES= false MAX_SUCCESS_TRANSACTIONS_IN_A_ROW= 2 MAX_FAILED_TRANSACTIONS_IN_A_ROW= 2
INFO: 2022-04-29 15:33:26,311
INFO: 2022-04-29 15:33:27,282 BNB balance : 0.769192985417187557
INFO: 2022-04-29 15:33:27,366 buy/sell condition = customF_nativeT
INFO: 2022-04-29 15:33:53,549 USDT balance : 0.0
INFO: 2022-04-29 15:33:53,549 buy/sell condition = customT_nativeF
INFO: 2022-04-29 15:33:55,569 BUSD balance : 3060.507435951185
INFO: 2022-04-29 15:33:55,622 buy/sell condition = customT_nativeF
INFO: 2022-04-29 15:33:59,209 USDC balance : 0.0
INFO: 2022-04-29 15:33:59,231 buy/sell condition = customT_nativeF
INFO: 2022-04-29 15:48:45,168 Your bot is running v4.4.1.2
INFO: 2022-04-29 15:48:45,586 Last version available v4.4.3.0 PLEASE KEEP UPDATED
INFO: 2022-04-29 15:48:52,739 Your tokens.json contains:
INFO: 2022-04-29 15:48:52,739 ENABLED= true ADDRESS= 0x64d2906391a82721BB24925fc16A3EfF20c8756e KIND_OF_SWAP= base MINIMUM_LIQUIDITY_IN_DOLLARS= 10000 BUYAMOUNTINBASE= 250.0 BUYAMOUNTINTOKEN= (not used) MAX_BASE...= (not used) BUYPRICEINBASE= 0.032 SELLPRICEINBASE= 400% STOPLOSSPRICEINBASE= 85% SELLAMOUNTINTOKENS= ALL SLIPPAGE= 49 WATCH_STABLES_PAIRS= false LIQUIDITYINNATIVETOKEN= false USECUSTOMBASEPAIR= true BASEADDRESS= 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56 BUY_THE_DIP_PARAMETERS= 20%---10% TRAILING_STOP_LOSS_PARAMETER= 85% BUY_AND_SELL_TAXES_CHECK= false MAX_BUY_TAX_IN_%= 20 MAX_SELL_TAX_IN_%= 20 BUYAFTER_XXX_SECONDS= 0 MULTIPLEBUYS= false BUYCOUNT= 2 GAS= BOOST MOONBAG= 0 MAXTOKENS= 1 HASFEES= true MAX_SUCCESS_TRANSACTIONS_IN_A_ROW= 2 MAX_FAILED_TRANSACTIONS_IN_A_ROW= 2
INFO: 2022-04-29 15:48:52,740
INFO: 2022-04-29 15:48:54,197 BUSD balance : 3060.507435951185
INFO: 2022-04-29 15:48:54,208 buy/sell condition = customT_nativeF
INFO: 2022-04-29 15:52:53,335 Found 108976.4481 liquidity for MTVP/BUSD
INFO: 2022-04-29 15:52:53,977 -----------------------------------------------------------
INFO: 2022-04-29 15:52:53,986 Buy Signal Found =-= Buy Signal Found =-= Buy Signal Found
INFO: 2022-04-29 15:52:53,988
INFO: 2022-04-29 15:52:53,989 Buy price in MTVP/BUSD : 0.023687288691358083
INFO: 2022-04-29 15:52:53,990 -----------------------------------------------------------
INFO: 2022-04-29 15:52:54,007 - MINIMUM_LIQUIDITY_IN_DOLLARS= 10000 $
INFO: 2022-04-29 15:52:55,993 Tx Hash = 0x6cf1f0acaaedf094fc22d426c3588b75d88198ca39a965569b00b50c28145c2b
INFO: 2022-04-29 15:53:02,727 ----------------------------------
INFO: 2022-04-29 15:53:02,752 SUCCESS : your buy Tx is confirmed
INFO: 2022-04-29 15:53:06,301 BUSD balance : 2810.507435951185
INFO: 2022-04-29 15:53:06,523 MTVP balance : 10141.211861400123
INFO: 2022-04-29 15:53:06,537
INFO: 2022-04-29 15:53:06,542 You bought 10141.211861400123 MTVP tokens
INFO: 2022-04-29 15:53:06,555 ----------------------------------
ERROR: 2022-04-29 15:53:06,560 macosx:// is disabled on this system.
ERROR: 2022-04-29 15:53:06,561 windows:// is disabled on this system.
INFO: 2022-04-29 15:53:07,484 Tx Hash = 0xc2868cabde9665211cc7330303218887263c48c2ab233a7c7883289adeed47c2
INFO: 2022-04-29 15:53:13,223 Token is now approved : LimitSwap can sell this token
INFO: 2022-04-29 15:53:13,249 You have reached MAXTOKENS for MTVP token --> disabling trade
INFO: 2022-04-29 15:53:13,253 -----------------------------------------------------------------------------------------------------------------------------
INFO: 2022-04-29 15:53:13,261 TRAILING_STOP_LOSS mode is enabled
INFO: 2022-04-29 15:53:13,267
INFO: 2022-04-29 15:53:13,268 Bot will:
INFO: 2022-04-29 15:53:13,269 1/ Wait for the price to go above SELLPRICEINBASE
INFO: 2022-04-29 15:53:13,271 2/ Monitor ATH
INFO: 2022-04-29 15:53:13,273 3/ Wait for price to drop to ( 85% * ATH ) to sell
INFO: 2022-04-29 15:53:13,274
INFO: 2022-04-29 15:53:13,274 --> it will make you sell 15 % under the ATH :)
INFO: 2022-04-29 15:53:13,276 ------------------------------------------------------------------------------------------------------------------------------
INFO: 2022-04-29 15:53:19,392 TRAILING STOP | Token price 0.0250918483 | ATH 0.0250922952 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:53:31,255 TRAILING STOP | Token price 0.0307040043 | ATH 0.0307043202 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:10,198 TRAILING STOP | Token price 0.0309947366 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:16,346 TRAILING STOP | Token price 0.0295804152 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:22,195 TRAILING STOP | Token price 0.0292992957 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:25,267 TRAILING STOP | Token price 0.0290147478 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:34,392 TRAILING STOP | Token price 0.0291123981 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:47,287 TRAILING STOP | Token price 0.0286024728 | ATH 0.0312971151 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:54:59,295 TRAILING STOP | Token price 0.0328434415 | ATH 0.0329580025 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:55:05,205 TRAILING STOP | Token price 0.0326801390 | ATH 0.0329580025 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:55:08,133 TRAILING STOP | Token price 0.0325486909 | ATH 0.0329580025 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:55:11,177 TRAILING STOP | Token price 0.0325130214 | ATH 0.0329580025 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:55:41,063 TRAILING STOP | Token price 0.0332696214 | ATH 0.0336656342 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:55:59,375 TRAILING STOP | Token price 0.0343577991 | ATH 0.0345782041 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:56:05,396 TRAILING STOP | Token price 0.0345782041 | ATH 0.0348403052 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:56:11,293 TRAILING STOP | Token price 0.0314749983 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:56:36,147 TRAILING STOP | Token price 0.0319392633 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:56:54,391 TRAILING STOP | Token price 0.0316341843 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:00,345 TRAILING STOP | Token price 0.0319392633 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:03,154 TRAILING STOP | Token price 0.0318226271 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:09,245 TRAILING STOP | Token price 0.0318142709 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:18,354 TRAILING STOP | Token price 0.0317921833 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:21,130 TRAILING STOP | Token price 0.0317341357 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:57:51,374 TRAILING STOP | Token price 0.0325273542 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:58:00,410 TRAILING STOP | Token price 0.0326326849 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:58:15,154 TRAILING STOP | Token price 0.0327007062 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:58:21,074 TRAILING STOP | Token price 0.0336085358 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:58:30,056 TRAILING STOP | Token price 0.0327007062 | ATH 0.0348403312 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:58:57,180 TRAILING STOP | Token price 0.0356510372 | ATH 0.0357992556 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:00,291 TRAILING STOP | Token price 0.0356244336 | ATH 0.0357992556 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:09,241 TRAILING STOP | Token price 0.0356244336 | ATH 0.0363947498 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:15,183 TRAILING STOP | Token price 0.0363947225 | ATH 0.0363947498 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:21,083 TRAILING STOP | Token price 0.0368469477 | ATH 0.0369526433 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:33,166 TRAILING STOP | Token price 0.0367919059 | ATH 0.0369526433 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:45,297 TRAILING STOP | Token price 0.0370684304 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:48,207 TRAILING STOP | Token price 0.0366599979 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 15:59:54,407 TRAILING STOP | Token price 0.0368512565 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:00,295 TRAILING STOP | Token price 0.0369153546 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:06,097 TRAILING STOP | Token price 0.0367709237 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:09,184 TRAILING STOP | Token price 0.0367280185 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:15,157 TRAILING STOP | Token price 0.0367280185 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:24,970 TRAILING STOP | Token price 0.0360968771 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:30,123 TRAILING STOP | Token price 0.0360695333 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:36,597 TRAILING STOP | Token price 0.0364078775 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:39,190 TRAILING STOP | Token price 0.0357110453 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:45,227 TRAILING STOP | Token price 0.0354520555 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:48,156 TRAILING STOP | Token price 0.0351600350 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:54,152 TRAILING STOP | Token price 0.0355508381 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:57,277 TRAILING STOP | Token price 0.0354520555 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:00:58,904 Your tokens.json contains:
INFO: 2022-04-29 16:00:58,905 ENABLED= true ADDRESS= 0x64d2906391a82721BB24925fc16A3EfF20c8756e KIND_OF_SWAP= base MINIMUM_LIQUIDITY_IN_DOLLARS= 10000 BUYAMOUNTINBASE= 250.0 BUYAMOUNTINTOKEN= (not used) MAX_BASE...= (not used) BUYPRICEINBASE= 0.032 SELLPRICEINBASE= 200% STOPLOSSPRICEINBASE= 85% SELLAMOUNTINTOKENS= ALL SLIPPAGE= 49 WATCH_STABLES_PAIRS= false LIQUIDITYINNATIVETOKEN= false USECUSTOMBASEPAIR= true BASEADDRESS= 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56 BUY_THE_DIP_PARAMETERS= 20%---10% TRAILING_STOP_LOSS_PARAMETER= 85% BUY_AND_SELL_TAXES_CHECK= false MAX_BUY_TAX_IN_%= 20 MAX_SELL_TAX_IN_%= 20 BUYAFTER_XXX_SECONDS= 0 MULTIPLEBUYS= false BUYCOUNT= 2 GAS= BOOST MOONBAG= 0 MAXTOKENS= 1 HASFEES= true MAX_SUCCESS_TRANSACTIONS_IN_A_ROW= 2 MAX_FAILED_TRANSACTIONS_IN_A_ROW= 2
INFO: 2022-04-29 16:00:58,905
INFO: 2022-04-29 16:01:00,145 TRAILING STOP | Token price 0.0350172567 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:01:09,058 TRAILING STOP | Token price 0.0345803260 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:01:31,391 TRAILING STOP | Token price 0.0353629371 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:02:19,284 TRAILING STOP | Token price 0.0331569014 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:02:25,165 TRAILING STOP | Token price 0.0330572030 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:02:28,145 TRAILING STOP | Token price 0.0324613184 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:03:09,371 TRAILING STOP | Token price 0.0322231705 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:03:18,349 TRAILING STOP | Token price 0.0324732359 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:03:21,218 TRAILING STOP | Token price 0.0320476953 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:03:42,324 TRAILING STOP | Token price 0.0320476953 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:03,170 TRAILING STOP | Token price 0.0331811059 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:06,337 TRAILING STOP | Token price 0.0320476953 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:15,313 TRAILING STOP | Token price 0.0331337916 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:24,142 TRAILING STOP | Token price 0.0332211632 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:27,088 TRAILING STOP | Token price 0.0323596749 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000
INFO: 2022-04-29 16:04:30,347 TRAILING STOP | Token price 0.0320476953 | ATH 0.0370749234 | Target Price = SELLPRICEINBASE = 99999.0000000000

MoonBag Percentage

Do you think it's possible, sometime in the future when you have time, to make the 'moonbag' so you can hold a percentage of tokens bought?

Custom wss crashes and custom HTTPS issues

With the newest version v4.0, the bot automatically crashes when I try to load up a custom wss node. There log does not give any details about the crash, it just writes ***********************************.
I also used the HTTPS version of the custom nodes and the speeds are slower than usual. currently getting maximum 2 checks/second.

Buy after a wallet sell

Good afternoon Tsar,

I would like to know if it is possible or if it will be possible to do the following, bot to do something as simple as.

Waiting for a sell order from a specific wallet and as soon it sells I proceed to buy that same coin.

e.g

1- Listing Wallet 0x........
2- When wallet 0x....... sells a specific currency, I buy the same currency
3- Then when reach 1/2% (or something) of the purchase price, sell automatically

4- Profit ๐Ÿ‘ or n0t ๐Ÿ‘Ž

I know it's a very, very high risky method but it doesn't hurt to try.

It would be to test on BSC and Polygon.

Thank you in advance for the way you have taken LimitSwap to another level, for your sympathy and always available to help the community.

Thanks.

Couldn't sell

I bought a token in presale. When I tried to sell shortly after launch I got this error message:

INFO: 2022-01-21 18:01:13,896 Your wallet already owns : 390155603.30727994 MetaApes
INFO: 2022-01-21 18:01:13,897 You have reached MAXTOKENS for token MetaApes --> bot stops to buy
INFO: 2022-01-21 18:01:14,067 Current Wallet Balance is : 6.075088569824165648 BNB
INFO: 2022-01-21 18:01:14,514 Sell Signal Found @0.000000006782259616
INFO: 2022-01-21 18:01:14,517
INFO: 2022-01-21 18:01:14,517 Sell price in MetaApes/BNB : 0.000000006782259616
INFO: 2022-01-21 18:01:14,664 Current Wallet Balance is: 390155603.30727994 MetaApes
ERROR: 2022-01-21 18:01:14,664 '>' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
File "LimitSwap.py", line 5126, in run
File "LimitSwap.py", line 4079, in sell
TypeError: '>' not supported between instances of 'int' and 'str'

This is my setup:

[
{
"ENABLED": "true",

"SYMBOL": "MetaApes",
"ADDRESS": "0xd764457Fadd15B52089BeE2b3c38964C7dFf0B70",
"KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
"BUYAMOUNTINBASE": "0",
"BUYAMOUNTINTOKEN": "",
"MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0", // used with KIND_OF_SWAP = tokens

"BUYPRICEINBASE":  "0",
"SELLPRICEINBASE": "0", // You can now put amount in % in this field
"STOPLOSSPRICEINBASE": "0", // You can now put amount in % in this field
"SLIPPAGE": "49",

"MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
"MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
"MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "3",
"MAX_FAILED_TRANSACTIONS_IN_A_ROW": "3",

"RUGDOC_CHECK": "false",
"BUYAFTER_XXX_SECONDS": "0", // if you want the bot to wait XXX seconds before if makes the BUY Tx
"WAIT_FOR_OPEN_TRADE": "false", // check Wiki, this is very useful
"MULTIPLEBUYS": "false", // use this if you want bot to make multiple buys at the same time
"BUYCOUNT": "",
"ALWAYS_CHECK_BALANCE": "true", // use this if you want bot to check your token balance between each price check

"MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
"WATCH_STABLES_PAIRS": "false", // use this if you want bot to check all Stable Liquidity pairs

"LIQUIDITYINNATIVETOKEN": "false",
"USECUSTOMBASEPAIR": "false",
"BASESYMBOL": "",
"BASEADDRESS": "",

"SELLAMOUNTINTOKENS": "ALL",
"HASFEES": "true",
"GAS": "50", // Team recommend you to use BOOST here
"MAX_GAS": "", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
"BOOSTPERCENT": "30",
"GASLIMIT": "2000000", // Team recommend you to use 1000000 here
"GASPRIORITY_FOR_ETH_ONLY": "1.5"

}
]

Track a list of wallet.

Using the mempool, track a provide list of wallet to enter after his buy.

Also, if they are going to sell, selld before they ;)

Intermittent error 32603 when leaving the bot to run over a time

I get 3 consecutive errors (before of that log shows normal behavior):

{'code': -32603, 'message': 'empty resp'}
Traceback (most recent call last):
File "LimitSwap.py", line 5830, in runLoop
run()
File "LimitSwap.py", line 5467, in run
token['_QUOTE'] = check_precise_price(token['_IN_TOKEN'], token['_OUT_TOKEN'], token['_WETH_DECIMALS'], token['_CONTRACT_DECIMALS'], token['_BASE_DECIMALS'])
File "LimitSwap.py", line 3283, in check_precise_price
reserves = pair_contract.functions.getReserves().call()
File "/home/X/.local/lib/python3.8/site-packages/web3/contract.py", line 959, in call
return call_contract_function(
File "/home/X/.local/lib/python3.8/site-packages/web3/contract.py", line 1503, in call_contract_function
return_data = web3.eth.call(
File "/home/X/.local/lib/python3.8/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/home/X/.local/lib/python3.8/site-packages/web3/manager.py", line 187, in request_blocking
return self.formatted_response(response,
File "/home/X/.local/lib/python3.8/site-packages/web3/manager.py", line 168, in formatted_response
raise ValueError(response["error"])
ValueError: {'code': -32603, 'message': 'empty resp'}

31mERROR

I set up everything and when I run the bot I get:
2022-01-20 22:28:07.244592 โ†[31mERROR. Please go to /log folder and open your logs: you will find more details.โ†[0m
2022-01-20 22:28:07.244592 Restarting LimitSwap

Log file:
INFO: 2022-01-20 22:28:00,254 YOUR BOT IS CURRENTLY RUNNING VERSION 4.2.1.2
INFO: 2022-01-20 22:28:00,988 Checking Latest Release Version on Github, Please Make Sure You are Staying Updated = v4.2.1.2

ERROR: 2022-01-20 22:28:07,244 could not convert string to float: ''
Traceback (most recent call last):
File "LimitSwap.py", line 4746, in run
File "LimitSwap.py", line 723, in load_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''
INFO: 2022-01-20 22:28:07,244 ERROR. Please go to /log folder and open your logs: you will find more details.
ERROR: 2022-01-20 22:28:07,244 local variable 'token' referenced before assignment
Traceback (most recent call last):
File "LimitSwap.py", line 4746, in run
File "LimitSwap.py", line 723, in load_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5226, in runLoop
File "LimitSwap.py", line 5211, in run
UnboundLocalError: local variable 'token' referenced before assignment
ERROR: 2022-01-20 22:28:07,244 local variable 'token' referenced before assignment
Traceback (most recent call last):
File "LimitSwap.py", line 4746, in run
File "LimitSwap.py", line 723, in load_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5226, in runLoop
File "LimitSwap.py", line 5211, in run
UnboundLocalError: local variable 'token' referenced before assignment
ERROR: 2022-01-20 22:28:19,519 could not convert string to float: ''
Traceback (most recent call last):
File "LimitSwap.py", line 4748, in run
File "LimitSwap.py", line 910, in reload_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''
INFO: 2022-01-20 22:28:19,523 ERROR. Please go to /log folder and open your logs: you will find more details.
ERROR: 2022-01-20 22:28:19,523 local variable 'token' referenced before assignment
Traceback (most recent call last):
File "LimitSwap.py", line 4748, in run
File "LimitSwap.py", line 910, in reload_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5226, in runLoop
File "LimitSwap.py", line 5211, in run
UnboundLocalError: local variable 'token' referenced before assignment
ERROR: 2022-01-20 22:28:19,526 local variable 'token' referenced before assignment
Traceback (most recent call last):
File "LimitSwap.py", line 4748, in run
File "LimitSwap.py", line 910, in reload_tokens_file
File "LimitSwap.py", line 2010, in build_extended_base_configuration
ValueError: could not convert string to float: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "LimitSwap.py", line 5226, in runLoop
File "LimitSwap.py", line 5211, in run
UnboundLocalError: local variable 'token' referenced before assignment

This is my tokens.json setup:
[
{
"ENABLED": "true",

"SYMBOL": "flappy floki",
"ADDRESS": "0xe477bb2F425C6184243e40174Fe276f281B1C8fB",
"KIND_OF_SWAP": "base", // enter "base" to use BUYAMOUNTINBASE , and "tokens" to use BUYAMOUNTINTOKENS
"BUYAMOUNTINBASE": "0.01",
"BUYAMOUNTINTOKEN": "",
"MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0.01", // used with KIND_OF_SWAP = tokens

"BUYPRICEINBASE":  "0",
"SELLPRICEINBASE": "999999999", // You can now put amount in % in this field
"STOPLOSSPRICEINBASE": "", // You can now put amount in % in this field
"SLIPPAGE": "49",

"MOONBAG": "0", // Bot will keep this amount in your wallet after SELL order
"MAXTOKENS": "1", // Bot will stop if your balance > MAXTOKENS
"MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",
"MAX_FAILED_TRANSACTIONS_IN_A_ROW": "2",

"RUGDOC_CHECK": "false",
"BUYAFTER_XXX_SECONDS": "0", // if you want the bot to wait XXX seconds before if makes the BUY Tx
"WAIT_FOR_OPEN_TRADE": "false", // check Wiki, this is very useful
"MULTIPLEBUYS": "false", // use this if you want bot to make multiple buys at the same time
"BUYCOUNT": "",
"ALWAYS_CHECK_BALANCE": "false", // use this if you want bot to check your token balance between each price check

"MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
"WATCH_STABLES_PAIRS": "true", // use this if you want bot to check all Stable Liquidity pairs

"LIQUIDITYINNATIVETOKEN": "false",
"USECUSTOMBASEPAIR": "false",
"BASESYMBOL": "",
"BASEADDRESS": "",

"SELLAMOUNTINTOKENS": "0",
"HASFEES": "true",
"GAS": "50", // Team recommend you to use BOOST here
"MAX_GAS": "", // Put here the maximum of GAS you want to pay if you use BOOST. If GAS > MAX_GAS Tx won't be made
"BOOSTPERCENT": "30",
"GASLIMIT": "2000000", // Team recommend you to use 1000000 here
"GASPRIORITY_FOR_ETH_ONLY": "1.5"

}
]

Have valuation on screen as bot is running

Is it possible to have the valuation of the token bought on the screen as the bot is running? For example, if I bought $80 worth, it would be great to show "value=$120. It's a way to keep track of the net gain or loss so one can sell quickly.

when preapprove is set to yes, LimitSwap tries to approve a disabled token from another chain

'RITE'
Traceback (most recent call last):
File "LimitSwap.py", line 5830, in runLoop
run()
File "LimitSwap.py", line 5224, in run
tokens = reload_tokens_file(command_line_args.tokens, True)
File "LimitSwap.py", line 956, in reload_tokens_file
'_LIQUIDITY_READY': _TOKENS_saved[token['SYMBOL']]['_LIQUIDITY_READY'],
KeyError: 'RITE'
Could not transact with/call contract function, is contract deployed correctly and chain synced?
Traceback (most recent call last):
File "/home/xxx/.local/lib/python3.8/site-packages/web3/contract.py", line 1515, in call_contract_function
output_data = web3.codec.decode_abi(output_types, return_data)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/codec.py", line 181, in decode_abi
return decoder(stream)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/decoding.py", line 127, in call
return self.decode(stream)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_utils/functional.py", line 45, in inner
return callback(fn(*args, **kwargs))
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/decoding.py", line 173, in decode
yield decoder(stream)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/decoding.py", line 127, in call
return self.decode(stream)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/decoding.py", line 198, in decode
raw_data = self.read_data_from_stream(stream)
File "/home/xxx/.local/lib/python3.8/site-packages/eth_abi/decoding.py", line 305, in read_data_from_stream
raise InsufficientDataBytes(
eth_abi.exceptions.InsufficientDataBytes: Tried to read 32 bytes. Only got 0 bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "LimitSwap.py", line 5830, in runLoop
run()
File "LimitSwap.py", line 5294, in run
token['_CONTRACT_DECIMALS'] = int(decimals(token['ADDRESS']))
File "LimitSwap.py", line 2405, in decimals
decimals = balanceContract.functions.decimals().call()
File "/home/xxx/.local/lib/python3.8/site-packages/web3/contract.py", line 959, in call
return call_contract_function(
File "/home/xxx/.local/lib/python3.8/site-packages/web3/contract.py", line 1532, in call_contract_function
raise BadFunctionCallOutput(msg) from e
web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced?

MemoryError -> unclear error

Traceback (most recent call last):
File "sniper.py", line 954, in
run()
File "sniper.py", line 945, in run
scan(tokens)
File "sniper.py", line 677, in scan
buy(pending, token, nonce, token['BUYAFTER_XXX_SECONDS'])
File "sniper.py", line 759, in buy
amount = token['BUYAMOUNT'] * DECIMALS
MemoryError

From tokens.json:

[
{
"SYMBOL": "XXX",
"ADDRESS": "0x...",

"USECUSTOMBASEPAIR": "True",
"BASESYMBOL": "BUSD",
"BASEADDRESS": "0xe9e7cea3dedca5984780bafc599bd69add087d56",

"BUYAFTER_XXX_SECONDS": "3",

"BUYAMOUNT": "0.0062",
"MULTIPLEBUYS": "false",
"BUYCOUNT": "5",
"RUGCHECK": "false"

}
]

I was using BUSD as a pair and I didn't have any BUSD. Also my BUYAMOUNT was too low for BUSD.
The error should be more descriptive.

add planning mode

we would like to plan new launches in advance in the same bot session, thanks to the new multithread module

some ideas how can be done using the already implemented features:

-planning.json is a simplified version of token.json but with multiple tokens only for snipe and sell with trailing stop loss or normal "SELLPRICEINBASE"
-fixed parameters for all snipes,it will be launched with a separate json file i.e: python LimitSwap.py -t planning.json
-if one token doesn't have contract address or date in unixtime will be ignored
-the excution will be prioritized by the timestamp, After one snipe is done could show a message like: "Waiting 15 UTC to snipe Cake on Pancakeswap you can change your planning.json parameters meanwhile".
-the user will be use planning.json to input new launches so the bot rewrites the status parameter i.e: the user inputs data for a new launch tomorrow (contract, date), so the default parameter will be "waiting" , and when the time come and the trade is done the bot will rewrite the status to "done"
-the planning.json could look like this:

    //SNIPE A
    "STATUS": "waiting"      //waiting: bot is waiting the date to trade, done: bot has completed the trade, ignore: is missing contract or date
    "SYMBOL": "CAKE",
    "ADDRESS": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
    "EXCHANGE": "pancakeswap",
    "START_BUY_AFTER_TIMESTAMP": "1650332678",

    
    //SNIPE B
   "STATUS": "waiting"      //waiting: bot is waiting the date to trade, done: bot has completed the trade, ignore: is missing contract or date
    "SYMBOL": "VELAS",
    "ADDRESS": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
    "EXCHANGE": "WAGYUSWAP",
    "START_BUY_AFTER_TIMESTAMP": "2350332678",

    //SNIPE C
   "STATUS": "waiting"      //waiting: bot is waiting the date to trade, done: bot has completed the trade, ignore: is missing contract or date
    "SYMBOL": "SHIBA",
    "ADDRESS": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
    "EXCHANGE": "UNISWAP",
    "START_BUY_AFTER_TIMESTAMP": "2460332678",

maybe there is a bettter way to implement to the user input new launches than rewriting planning.json, like a simple gui

problem when you use WATCH_STABLES_PAIRS with BUY_THE_DIP

https://t.me/LimitSwap/109996

TypeError: can't multiply sequence by non-int of type 'float'
can't multiply sequence by non-int of type 'float'
Traceback (most recent call last):
File "C:\Users\Louie\Desktop\Crypto\LimitSwap\LimitSwap-4.2.4.1\LimitSwap-4.2.4.1\LimitSwap.py", line 5728, in runLoop
run()
File "C:\Users\Louie\Desktop\Crypto\LimitSwap\LimitSwap-4.2.4.1\LimitSwap-4.2.4.1\LimitSwap.py", line 5148, in run
tokens = load_tokens_file(command_line_args.tokens, True)
File "C:\Users\Louie\Desktop\Crypto\LimitSwap\LimitSwap-4.2.4.1\LimitSwap-4.2.4.1\LimitSwap.py", line 746, in load_tokens_file
for new_token_dict in build_extended_base_configuration(token):
File "C:\Users\Louie\Desktop\Crypto\LimitSwap\LimitSwap-4.2.4.1\LimitSwap-4.2.4.1\LimitSwap.py", line 2214, in build_extended_base_configuration
"BUYPRICEINBASE": token_dict['BUYPRICEINBASE'] * settings['_STABLE_BASES'][stable_token]['multiplier'],
TypeError: can't multiply sequence by non-int of type 'float'

cant buy

i cant buy tokens

INFO: 2022-01-16 22:13:58,503 BUY TRANSACTION FAILURE !
INFO: 2022-01-16 22:13:58,503 -------------------------------
INFO: 2022-01-16 22:13:58,503 Type of failures and possible causes:
INFO: 2022-01-16 22:13:58,504 - TRANSFER_FROM_FAILED --> GASLIMIT too low. Raise it to GASLIMIT = 1000000 at least
INFO: 2022-01-16 22:13:58,504 - TRANSFER_FROM_FAILED --> Your BASE token is not approved for trade
INFO: 2022-01-16 22:13:58,504 - INSUFFICIENT_OUTPUT_AMOUNT --> SLIPPAGE too low
INFO: 2022-01-16 22:13:58,505 - TRANSFER_FAILED --> Trading is not enabled. Use WAIT_FOR_OPEN_TRADE parameter after reading wiki
INFO: 2022-01-16 22:13:58,505 - TRANSFER_FAILED --> There is a whitelist
INFO: 2022-01-16 22:13:58,505 - Sorry, We are unable to locate this TxnHash --> You don't have enough funds on your wallet to cover fees
INFO: 2022-01-16 22:13:58,505 - ... or your node is not working well

"SELLAMOUNTINTOKENS": "ALL",
"HASFEES": "false",
"GAS": "boost",
"BOOSTPERCENT": "30",
"GASLIMIT": "1000000",
"GASPRIORITY_FOR_ETH_ONLY": "1.5"

"SYMBOL": "bcoin",
"ADDRESS": "0x00e1656e45f18ec6747f5a8496fd39b50b38396d",
"KIND_OF_SWAP": "base",
"BUYAMOUNTINBASE": "0.05",
"BUYAMOUNTINTOKEN": "1",

"BUYPRICEINBASE":  "0.007",
"SELLPRICEINBASE": "200%",
"STOPLOSSPRICEINBASE": "60%",
"SLIPPAGE": "5",

can you help me?

Ropsten ETH testnet

Hi Tsarbuig,

I've tried to follow all your directions on Rinkeby testnet. However, swapping on Rinkeby takes forever compared to Ropsten.

Go to uniswap on both Rinkeby and Ropsten and you can see that Rinkeby transactions remain pending while Ropsten's transaction gets processed within minutes.

Thanks!

limitswap exitted with "please send me this message: '' "

Scanning Mempool & Waiting for New Liquidity Add Event..... Current Block: ...
Bot will wait 3 seconds before buy, as you entered in BUYAFTER_XXX_SECONDS parameter
Uh oh, please send me this message: ''

My tokens config file has: "BUYAFTER_XXX_SECONDS": "3".

Token is: BSC 0x469aCf8e1F29C1B5Db99394582464Fad45A1fC6F

Add new Buying fonction

Add a new Buying fonction ๐Ÿ‘
BuyInPrice range : x to x

It could help prevent anti bot measure.
Like if we know and see that they will blacklist people before official announcement today we can not do anything to counter this.
But if we assume that the listing price will be 1$ and we know with the hype on the project it could reach something like 30$. We could try to set up the bot to "buyinprice range : 4 to 7" so we could assume that with this price increase, they have announced the launch. It could be the best bot blacklist bypass

Send me DM if you want more information

Support for Curve and Balancer

Would it be possible to add support for curve and balancer dexes?

Not sure if it would be easier to integrate a dex aggregator instead maybe matcha.xyz?

web3.exceptions.InvalidAddress

web3.exceptions.InvalidAddress: ('Web3.py only accepts checksum addresses. The software that gave you this non-checksum address should be considered unsafe, please file it as a bug on their platform. Try using an ENS name instead. Or, if you must accept lower safety, use Web3.toChecksumAddress(lower_case_address).'

Seems like wallet address needs to be wrapped with Web3.toChecksumAddress() function , there are lot of places where it is not done, so is this some thing that can be taken care ?

feature request: colors for sell and buy

I've noticed that I always have to check the current price before I know if the token is selling or buying. It would be easier to see if the link of the token would be red for tokens that we are getting sold and green for tokens that we are trying to get bought (instead of just alternating the 2 colors).

snipe miners function

Hey dev,

To buy miners you need to interact with the dapp interface on their website. Can you make an option that the bot has a functions to snipe those miners without using their dapp interface

most miners launching on BNB chain, but it would be great if you can make it multichain, example of a miner that launched yesterday: https://bnb.cropsfarmer.online/

Add Bot Loop option

If the bot has success (profit) with "buy the dip mode" + "trailing stop loss" we want to repeat this so please:

-add an loop option in tokens.json example (loop:no or loop:yes)

-add loop time frame in hours example (looptime:48 or looptime=infinite)

-the "buy the dip mode" + "trailing stop loss" parameters will be the same

It's repeating like the pingpong mode. This will be useful for the volatility of token launches the first few days.

So much code!

Lin 3639 of LimitSwap.py:

You have 40 lines of code, 20 of which are repeating and you only change one thing, weth instead of outToken. You also check for pool and on and else you give the same error message as your exception. That 40 lines of code should be about 10.

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.