Prelude: The author of this article owns several types of cryptoassets, but has no partnership or commercial links with Poloniex & Bitfinex exchanges.

Warning: There is no risk-free income. Anyone telling you a different story is trying to steal your money. There are two strong risks to consider carefully: the hacking, or failure, of the exchanges (the history of crypto has shown us that this risk is non-zero) and the fact that your money is “locked” for at least two days, meaning that in the event of a sudden fall in the price of the lended asset, it will destroy all your earnings and the possibility of mitigating your losses. We encourage our readers to manage their capital responsibly and never to put all their eggs in the same basket.

Some exchange platforms allow their users to lend their assets out to traders practicing “Margin Trading”. The lenders are then remunerated for performing this service. The purpose of this article is not to provide a full finance course, but simply to share a step-by-step method to automate and optimize a process that may help generate capital gains. If the procedure seems tedious, readers should know that it takes only about ten minutes to set up and that they have almost nothing to do thereafter.

Beware: if you use this method, it will theoretically take up to 48 hours to recover your funds when you want to stop the lending process. This method is free, the only cost will be the risk taken (see prelude) and the time you spend on it. Scrupulously follow all of these steps, this is your money at stake, and any small box that remains unticked is a risk that you do not want to take.

This procedure applies to all operating systems. This article is an update to my article on Ethereum France (in French) with many updates.

What Do we need?

First Step:  Generating an API Key on Poloniex

Prelude: transfer your assets to the “lending” account (balances bookmark then transfer balances)

Generate an API key for your poloniex account. You will generate an authorization for a program to connect and do things on your account (Are you scared ? You should! Follow this step carefully.) In the bookmark “tool” select “API KEYS”

Click on Enable API, that’s the big yellow button!

(you’ll need to submit your 2FA and follow a link in your email, if not, you’re not serious enough about security!). Click on show and select “Unrestricted (less secure)” (follow the next steps carefully)


Write down your “API-Key” and your “secret” somewhere safe you’ll need these soon. (Do not share these with anyone!)

Step 2: Generating an API Key on Bitfinex

It’s the same process as on Poloniex but now on this other platform.

  1. Click on API in your profile bookmark (Personal Account in the top right corner) or follow this direct link (you need to be logged in).

2. Within the “Create new key” bookmark check “write” boxes on “margin funding” & “Wallets”, Give a name to your key.  Do not check any additional boxes!

You must submit your 2FA, check your email and click on “create API key” in the received message.

Write down your “API Key” & your “API Key Secret” somewhere, as you will soon need it. (Do not give this information to anyone!!!).This information will never be available after this, so if you lose it, you will need to “revoke” your KEY and create another one.

Step 3: deposit assets on your funding accounts.

Poloniex side: “Balances” bookmark then click on “transfer balances”, select “exchange” and “funding,” then choose the right amount to transfer.

Bitfinex side:

  • deposit” side (top right side)
  • Select the asset within the list, click on it.
  • Copy the “Funding” address, send your assets to this address.

Note: Only “audited” accounts may deposit fiat currencies. you can, however, deposit cryptocurrencies, sell them for fiat and lend this fiat if you want. We recommend having your account verified.

Step 4: Setting up your Lendingbot on

This is the last step and it requires some Linux command line configuration. do not worry, this guide tells you all the steps and gives you the commands to submit. your only job will be to copy and paste.

  1. Create your account follow this direct link, choose the “beginner account” that is free, it’s limited but enough for what we want to do.
  2. Go to your Dashboard, the direct link is: with your username instead of “username”.

—> Click on “bash” under “New console.”

You can name your console if you click on the console name on the top left corner.

We are now starting to enter command lines, just copy/paste it! Simply enter the following list in order (feel free to copy and paste.)

git clone
cd poloniexlendingbot/
python (then hit return key)
cp default.cfg poloniex.cfg
cp poloniex.cfg bitfinex.cfg

Your screen should look like this at this point : 

We have installed the program that will lend your available assets and we have created two configuration files (one for each exchange “poloniex.cfg & bitfinex.cfg”

We will now configure this program, for that we need the API information collected in step 1 & 2.

Setup for Poloniex:

nano poloniex.cfg
A file opens, to navigate in the file just use the arrows on your keyboard.

  • Replace “YourAPIKey” and “YourSecret” with the credentials you had written down during step 1
  • Replace “sleeptimeinactive = 300” with “sleeptimeinactive = 901”,
  • The “0.005” value represents the minimum interest rate at which you want to “lend” this is at your discretion, it should be noted that these are daily rates if this value is too high you may risk that no one consider your loan proposals, 0.005% per day is about 2% per year, below this rate, it may be better not to lend at all. Your program will always look for the best rate, and if the “market” is below your minimum rate, it will just pause until the situation improves.

Once the chosen values are submitted, do “Ctlr+O” then “return”
then lastly “Ctlr+X”

Setup for Bitfinex :

nano bitfinex.cfg

  • Replace “#exchange = Poloniex” with “exchange = Bitfinex” (it’s really important to remove the “#” before the word exchange.)
  • Replace “YourAPIKey” and “YourSecret” by the credentials written down during step 2.
  • Replace “sleeptimeinactive = 300” with “sleeptimeinactive = 901”
  • Add EUR in the following list :

# Full list of supported currencies

(with this you can lend Euros)

Once the chosen values are submitted, do “Ctlr+O” then “return”
then lastly “Ctlr+X”

Last Step: Launch the bot!

With your keyboard: Ctlr+B % (Ctlr and B keys at the same time then % key). Your screen is now split in two, we will use it to make your assets available on both platforms at the same time.

  • cd poloniexlendingbot/
  • python -cfg bitfinex.cfg
  • with your keyboard: Ctlr+B O (Ctlr and B keys simultaneously  then O key, the letter not the number!)
  • python -cfg poloniex.cfg

And that’s it, your program will lend the assets you’ll deposit in the “funding” (bitfinex) or “lending” (poloniex) wallets. This program will also lend all interest collected generating that way compound interests.

If you want to stop lending:

ctlr + C (this command stops a program in progress)
then ctlr + b o (this command switch between the two screen)
then ctlr + c (stop the second program)

To restart lending:

python -cfg bitfinex.cfg
then ctlr + b o (we switch screens)
python -cfg poloniex.cfg

Tip: The up arrow on your keyboard allows you to navigate among the previous commands used, convenient to avoid rewriting the same commands each time.

Additional Remarks :

  • When writing the first article, Poloniex had the best rates, but as of today it is just the opposite, Bitfinex is more profitable, you can follow the average rates on: (approximate rates, it is to give you a rough idea, you will never have exactly the same rate). This website proposes to arrange for you the lending process as a service, but we recommend that you do it yourself by following this guide. 
  • It is absolutely not mandatory to lend simultaneously on both platforms, this configuration automatically adapts to the funds deposited on the wallets. If you only want to make your funds available on Bitfinex for example, keep the same configuration but do not deposit anything on Poloniex wallets. the Poloniex part of the screen will be inactive but always ready when you change your mind.
  • Reminder: to launch the bot commands line to submit are :
    Poloniex: python -cfg poloniex.cfg
    Bitfinex: python -cfg bitfinex.cfg
  • Bitfinex does not particularly encourage programs of this type, your program will display many messages indicating that your I.P has been banned. do not worry, we have setup the program in a way that it is slow enough so the limits of Bitfinex are not reached permanently, you’ll be able to lend without issue.
  • If your bot has the following text:

Do not worry, it means that your I.P has been “banned”, wait 15 minutes and restart the program with the command python -cfg bitfinex.cfg and it will work as intended.


Don't miss out!
Become an informed investor !

Did you enjoy this content ? Catch the best of the fresh news selected by our experts !

Invalid email address
Your email is secure, you can unsubscribe at any moment.

Comments are closed.