Giter Club home page Giter Club logo

bitfinex-auto-lend's Introduction

Bitfinex Auto Lend

Bitfinex Auto Lend is bitfinex PHP bot that automatically lends your money based on the market prices.

Create a Bitfinex account if you haven't done so yet.

P.S. It's a referral link. If you sign up with it you'll get 10% off of trading and lending fees.

Options

To change options please edit config-{currency}.php

Available currencies to lend: USD, BTC, ETH, ETC, BFX, ZEC, XMR, LTC, DASH.

Option Default Description
api_key - Your API key generated at https://www.bitfinex.com/account/api
api_secret - Your API secret generated at https://www.bitfinex.com/account/api
currency USD Currency of the money to lend.
period 2 Number of days to lend money
remove_after 50 Number of minutes after unexecuted offer will get cancelled
minimum_balance 50 Minimum balance in order to start lending (bitfinex constant)
max_total_swaps 20000 Max number of total swaps to check for a closest rate *

* If there are e.g. total of 12000 swaps at 1%/day and 22000 swaps at 1.001%/day the script chooses the lower rate, because we don't want to go beyond the rate of 20000 swaps. * If the currency isn't lent within an hour you may want to lower this value

How to run

Set cron to automatically execute the script lend.php at given time. To add cron jobs, open crontab file:

crontab -e

and append a cron entry. Make sure you set the correct script path.

Save the file when you're done and make sure you can see your job in crontab:

crontab -l

Examples

Option Description
*/30 * * * * /path/to/script/lend.php Run every 30 minutes
30 * * * * /path/to/script/lend.php?currency=btc Run every hour at 30 minutes
0 0 * * * /path/to/script/lend.php?currency=ltc Run every day at 12AM
20 13 * * 6 /path/to/script/lend.php Run every saturday at 1:20PM
0 8 * * 1,2,3,4,5 /path/to/script/lend.php Run every work day at 8AM

Donations

Feel free to donate some bitcoins if my work is helpful to you: 1x1UnfVJu7cprs3E2jjQ9WRcdDi5KJxAU

Thank you!

bitfinex-auto-lend's People

Contributors

mariodian avatar

Watchers

 avatar  avatar

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.