All Projects → evdubs → Harmonia

evdubs / Harmonia

Licence: other
Margin funding bot for Bitfinex

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Harmonia

Crypto Exchange
Pulls together list of crypto exchanges to interact with their API's in a uniform fashion.
Stars: ✭ 241 (+1238.89%)
Mutual labels:  bitfinex
btc-ticker-esp8266
realtime bitcoin price on 7 segment display with arduino on esp8266
Stars: ✭ 18 (+0%)
Mutual labels:  bitfinex
go-bithue
correlate your Philips Hue lights to the bitcoin price on Bitfinex
Stars: ✭ 16 (-11.11%)
Mutual labels:  bitfinex
ccex-api
Cryptocurrency exchanges realtime api wrapper
Stars: ✭ 29 (+61.11%)
Mutual labels:  bitfinex
bitfinex-v2-wss-api-java
This project provides a Java client library for the Bitfinex WebSocket API (v2). Public and private channels (candles, ticks, executed trades, (raw) orderbooks, orders, and wallets) are implemented.
Stars: ✭ 90 (+400%)
Mutual labels:  bitfinex
Bitfinex.Net
Bitfinex Api wrapper for .Net
Stars: ✭ 76 (+322.22%)
Mutual labels:  bitfinex
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+14283.33%)
Mutual labels:  bitfinex
open-trading-platform-UI
The Open Trading Platform UI is a front-end module for trading across 5 crypto currency exchanges allowing both spot and margin trading. The UI needs to be used with the API repo.
Stars: ✭ 54 (+200%)
Mutual labels:  bitfinex
Nescience-Indexing-CLI
Nescience Software & Capital Rebalancing Tool
Stars: ✭ 26 (+44.44%)
Mutual labels:  bitfinex
rich-uncle-pennybags-bot
A telegram bot for all of your crypto needs. Works over the bitfinex and coinmarketcap APIs
Stars: ✭ 15 (-16.67%)
Mutual labels:  bitfinex
market-maker-bot
MM Bot for OpenDEX. Make profits via arbitrage between OpenDEX and a connected CEX account like Binance 🤖
Stars: ✭ 84 (+366.67%)
Mutual labels:  bitfinex
cryptox
Common API wrapper for multiple crypto currency exchanges
Stars: ✭ 50 (+177.78%)
Mutual labels:  bitfinex
cryptogalaxy
Get any cryptocurrencies ticker and trade data in real time from multiple exchanges and then save it in multiple storage systems.
Stars: ✭ 96 (+433.33%)
Mutual labels:  bitfinex
bfx-cpp-api
Bitfinex C++ API client
Stars: ✭ 38 (+111.11%)
Mutual labels:  bitfinex
crypto-quotes
100+ Best of Crypto Quotes - I HODL, you HODL, we HODL! - BREAKING: BITCOIN JUST BROKE $22 000!
Stars: ✭ 12 (-33.33%)
Mutual labels:  bitfinex
Gbot Trader
Trading robot for trade on crypto exchanges
Stars: ✭ 222 (+1133.33%)
Mutual labels:  bitfinex
CryptoCurrency
Page to keep track of value & profits of a portfolio of cryptocurrency (based on Coinmarketcap, Bitfinex and Binance)
Stars: ✭ 27 (+50%)
Mutual labels:  bitfinex
GOAi
No description or website provided.
Stars: ✭ 57 (+216.67%)
Mutual labels:  bitfinex
bitfinex-ohlc-import
Imports historical OHLC data from Bitfinex
Stars: ✭ 27 (+50%)
Mutual labels:  bitfinex
crypto-candlesticks
Download candlestick data fast & easy for analysis
Stars: ✭ 26 (+44.44%)
Mutual labels:  bitfinex

Harmonia is a Java console application to allow participants in the USD margin funding market to automatically submit margin funding offers at competitive rates. Harmonia also estimates and displays accrued interest throughout the bot's execution.

Installation

Harmonia requires a JDK and Apache Maven.

Starting Harmonia

After cloning the repository, execute the following commands in the Harmonia base directory:

mvn compile

mvn exec:java -Dexec.mainClass="name.evdubs.harmonia.Harmonia"

This process should build, download dependencies, and run Harmonia

Usage

When Harmonia starts, you are prompted to enter your API Key and Secret Key. There are perhaps other, better methods of acquiring and using these details. Please note that anyone with access to the system you execute Harmonia on can dump the heap and find your keys. Therefore, it is wise to run Harmonia in a jailed environment that only you have access to.

Operation

Harmonia is a simple margin funding offer bot. It will attempt to offer margin funds using the following logic:

If a flash return rate is bid, hit that bid

Here, the market (everyone else's orders) may look like

Bid duration Bid amount Bid rate Offer rate Offer amount Offer duration
2-30 days 20,000 0.05% (FRR) 0.06% 30,000 30 days

Harmonia will see this bid and hit it. As a result, you will have outstanding margin funding provided at FRR for 30 days.

If a flash return rate is the best 10 minute old (or older) offer (lowest percentage), join the other offers

Here, the market may look like

Bid duration Bid amount Bid rate Offer rate Offer amount Offer duration
2-30 days 20,000 0.05% 0.06% (FRR) 30,000 30 days

Harmonia will see the FRR order and send an offer with your remaining deposit balance for 30 days FRR. This offer will sit on the book and wait for a margin lender to take it. This calculation is computed once every twenty seconds, so if the market moves, Harmonia will change the offer twenty seconds later.

If a fixed rate is the best offer, join the best fixed rate that is higher than the best fixed bid and is at least 10 minutes old

Here, the market may look like

Bid duration Bid amount Bid rate Offer rate Offer amount Offer duration
2-20 days 20,000 0.06% 0.055% 30,000 30 days
2-30 days 40,000 0.05% 0.065% 60,000 30 days

Harmonia will send an offer at 0.065% as the 0.055% offer is lower than the highest demand rate of 0.06%. This offer will sit on the book and wait for a margin lender to take it. This calculation is computed once every twenty seconds, so if the market moves, Harmonia will change the offer twenty seconds later.

Harmonia recently instituted the requirement to only pay attention to offers that are at least 10 minutes old. This is a hacky way to not automatically join offers that are outlandishly far away from the core of the competitive offers. A better mechanism would likely incorporate a moving average of recent margin funding matches, but there is not currently a way to receive this stream from XChange.

License

Public domain

Tipjar

If you like this bot and would like for development to continue, please consider sending a donation to 1JSvYwhAWMCKB4zgvMFLDzhRp8u9Hv5Fat

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].