Bitcoin Forum
May 04, 2024, 04:44:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 »  All
  Print  
Author Topic: Bitcoin arbitrage on GitHub: ~2% monthly return, market-neutral long/short  (Read 38227 times)
wormat22
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
February 20, 2016, 02:33:00 AM
 #121

Any thoughts on adding https://www.poloniex.com/ ? They allow margin trading
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714841075
Hero Member
*
Offline Offline

Posts: 1714841075

View Profile Personal Message (Offline)

Ignore
1714841075
Reply with quote  #2

1714841075
Report to moderator
1714841075
Hero Member
*
Offline Offline

Posts: 1714841075

View Profile Personal Message (Offline)

Ignore
1714841075
Reply with quote  #2

1714841075
Report to moderator
siameze
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000



View Profile
February 20, 2016, 01:24:37 PM
 #122

Any thoughts on adding https://www.poloniex.com/ ? They allow margin trading

Quoting this to add to my project queue. Seems poloniex has a decent API: https://poloniex.com/support/api/

perhaps OP will add it, I am still waiting to see what happens on the chinese exchange now it is after New Years.  Smiley


                     ▀▀█████████▀████████████████▄
                        ████▄      ▄████████████████
                     ▄██████▀  ▄  ███████████████████
                  ▄█████████▄████▄███████████████████
                ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀████████
                                               ▀▀███▀
    ▄█▀█       ▄▀  ▄▀▀█  ▄▀   █████████████████▄ ██▀         ▄▀█
   ▄█ ▄▀      ▀█▀ █▀ █▀ ▀█▀  ███████████████████ █▀ ▀▀      ▄▀▄▀
  ▄█    ▄███  █     █   █   ████████████████████  ▄█     ▄▀▀██▀ ▄███
███▄▄▄  █▄▄▄ █▄▄ ▄▄▀   █▄▄ ██████████████████▀▀   █▄▄ ▄▄ █▄▄█▄▄▄█▄▄▄
                           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                            ▀▀█████████████▄
                                █████████████▄
                                  █████████████▄
                                    ▀███████▀▀▀▀▀
                                      ▀████▀
                                        ▀█▀
LetItRideINNOVATIVE ▬▬▬
DICE GAME
                        ▄███████████▄
                       ██  ██████████▄
                     ▄█████████████  ██▄
            ▄▄▀█▄▄▄▄▄████████████████████▄
        ▄▄█▀   ███████████  █████  ████  █
    ▄██████ ▄▄███████████████████████████▀
 ▄▀▀ ██████████████████████████  ████  █
█  ▄███████████▀▀▀█████████████████████
██████████████    ████████▀▀██████  █▀
██████████████▄▄▄██████████   ▀▀▀▀▀▀▀
███▀ ▀██████████████████████
██    ███████████████████████
██▄▄██████████████████████████
██████████████▀   ██████████
  █████████████   ▄██████▀▀
     ▀▀██████████████▀▀
         ▀▀██████▀▀
PROVABLY
F A I R
▄█████████████▀ ▄█
██            ▄█▀
██          ▄██ ▄█
██ ▄█▄    ▄███  ██
██ ▀███▄ ▄███   ██
██  ▀███████    ██
██    █████     ██
██     ███      ██
██      ▀       ██
██              ██
▀████████████████▀
BUY  BACK
PLANS
[BTC]
butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
February 20, 2016, 04:54:22 PM
 #123

Any thoughts on adding https://www.poloniex.com/ ? They allow margin trading

Quoting this to add to my project queue. Seems poloniex has a decent API: https://poloniex.com/support/api/

perhaps OP will add it, I am still waiting to see what happens on the chinese exchange now it is after New Years.  Smiley

Yes thanks, Poloniex sounds indeed promising as their API covers short selling with marginBuy and marginSell.

Unfortunately, I am not authorized to open an account on Poloniex since I live in New York. But I already created the generic files poloniex.h and poloniex.cpp if anyone wants to implement the functions.

wormat22
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
February 20, 2016, 06:13:46 PM
 #124

I opened one even though I live in NY. They didn't ask for any confirmation whatsoever.
wormat22
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
February 23, 2016, 01:33:47 PM
 #125

Anyone know if you can margin trade on Bitfinex if you're in New York state? I can't exchange trade, but I can fund my margin account via wire transfer....so?

Does anyone know?
butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
February 26, 2016, 03:36:38 PM
 #126


Anyone know if you can margin trade on Bitfinex if you're in New York state? I can't exchange trade, but I can fund my margin account via wire transfer....so?

Does anyone know?

I have the same problem as you. This is due to the BitLicense license issued by the NY State Department of Financial Services.

Bitfinex decided to avoid having to comply to that license by imposing limitations to NY residents: we can no longer hold BTC on our accounts, among other things. More info here on their FAQ.

Fortunately, I opened an account on Bitfinex before the license so I can still margin trade to test Blackbird.

netmonk
Full Member
***
Offline Offline

Activity: 219
Merit: 100


View Profile WWW
May 22, 2016, 08:27:41 AM
 #127

Good morning Butor,
Impressive work.

I see you only trade USD/BTC

Is it possible to change settings to do for exemple BTC/ETH on poloniex/kraken ?

Or is it only due to lake of short selling on both marketplace for such pair ?

butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
May 23, 2016, 11:33:13 PM
 #128

Good morning Butor,
Impressive work.

I see you only trade USD/BTC

Is it possible to change settings to do for exemple BTC/ETH on poloniex/kraken ?

Or is it only due to lake of short selling on both marketplace for such pair ?

Hi netmonk, thanks.

The structure of the code should allows programmers to (relatively) easily add new exchanges and new cryptocurrencies. Basically you "just" need to change the API calls from BTC to ETH. For example, the bid/ask information call on Bitfinex would change from:

https://api.bitfinex.com/v1/ticker/btcusd

to:

https://api.bitfinex.com/v1/ticker/ethbtc

And yes, at least one exchange needs to offer short selling on ETH and be implemented in Blackbird to do BTC/ETH arbitrage.

Warning: if you do BTC/ETH arbitrage you will be hedged against the market risk on ETH but not on BTC anymore. USD/BTC and USD/ETH would be safer, unless you are willing to accept BTC risk.

gcride
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
May 24, 2016, 01:51:39 AM
 #129

very interesting project, will be keeping check. cheers
lightpuma
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 26, 2016, 05:04:37 PM
 #130

Hi!

Interesting project. Have you considered adding checks for triangular arbitrage opportunities? For example, coincheck.jp offers margin trading (so does okcoin.cn for that matter) meaning that the bot could work for a triangular arbitrage between JPY/BTC/USD or CNY/BTC/USD. Also opens up plenty more exchanges.

The only forseeable problem is that you'd have to find a reliable website to convert USD<->JPY/CNY for the initial deposit into the balance, but that shouldn't be a problem considering the wealth of money exchange platforms out there (OFX, TransferWise, etc.)

Anyway, seriously interesting venture and I'll keep checking back on this.
butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
May 26, 2016, 08:54:51 PM
 #131

Hi!

Interesting project. Have you considered adding checks for triangular arbitrage opportunities? For example, coincheck.jp offers margin trading (so does okcoin.cn for that matter) meaning that the bot could work for a triangular arbitrage between JPY/BTC/USD or CNY/BTC/USD. Also opens up plenty more exchanges.

The only forseeable problem is that you'd have to find a reliable website to convert USD<->JPY/CNY for the initial deposit into the balance, but that shouldn't be a problem considering the wealth of money exchange platforms out there (OFX, TransferWise, etc.)

Anyway, seriously interesting venture and I'll keep checking back on this.

Thanks. Yes this is something we've already considered (see previous posts on this thread). Adding this extra layer of currency conversion (e.g. USD/CNY) would generate more inefficiencies that can be captured as arbitrage opportunities. We will need to add the real-time currency rate into the spread calculation and the currency risk will need to be hedged.

netmonk
Full Member
***
Offline Offline

Activity: 219
Merit: 100


View Profile WWW
May 31, 2016, 08:33:15 PM
Last edit: May 31, 2016, 09:29:51 PM by netmonk
 #132

And yes, at least one exchange needs to offer short selling on ETH and be implemented in Blackbird to do BTC/ETH arbitrage.

Warning: if you do BTC/ETH arbitrage you will be hedged against the market risk on ETH but not on BTC anymore. USD/BTC and USD/ETH would be safer, unless you are willing to accept BTC risk.


Does it still need to short dealing with only cryptocurrency ?
Time for transfert a far lower between market when dealing with cryptocurrency only but still need one or more hours to confirm transaction.

But i understand it's totally out of bot's strategy to perform any transfer between markets.
butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
June 01, 2016, 02:00:39 AM
 #133

Does it still need to short dealing with only cryptocurrency ?
I don't think I understand the question. Can you elaborate?

Time for transfert a far lower between market when dealing with cryptocurrency only but still need one or more hours to confirm transaction.
But i understand it's totally out of bot's strategy to perform any transfer between markets.
Yes that's correct. Since we want to be hedged against the market, the two orders (long and short) need to be executed as fast as possible. If we need a USD/CNY conversion before it will also have to be exectued as fast as possible. As you mentioned there is no money or bitcoin transfer in this project so the hours needed to confirm a transaction don't apply here.

lightpuma
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 02, 2016, 06:47:51 AM
 #134

Okay, since my last post I've had a bit of a think about this, and there are a few things I'd like to clear up - and also a few ideas I'd like to suggest.
Thank you very much for bearing with me for the following noobish questions.

1) What is your method for quantifying liquidity?
1a) Do you check for the bid/ask spread within an exchange?  If this is the case isn't this counter intuitive, since the more illiquid the market the more volatile it is? How then do you strike a balance between liquidity risk and potential volatility profits?

1b) A way to ensure 0% liquidity risk that I can see is by buying at the lowest ask price at Exchange 1 and selling at the highest bid price at Exchange 2. Of course this is a smaller spread, but if the markets are as volatile as they've been in the past few days then there should be a few opportunities.

2) For exchanges that offer short-selling/margin-trading but with no API to do so, have you considered pure web automation, with something like Selenium?  Of course this would be much slower than an API call. However if your polling timeframe is 5 seconds then generally speaking using a web automation framework would be well within those bounds.

Thank you!
butor (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile WWW
June 14, 2016, 12:58:26 AM
 #135


1a) Do you check for the bid/ask spread within an exchange?  If this is the case isn't this counter intuitive, since the more illiquid the market the more volatile it is? How then do you strike a balance between liquidity risk and potential volatility profits?

No, we only check the bid/ask difference between separated exchanges: bid on exchange A vs. ask on exchange B, ask on exchange A vs. bid on exchange B. We don't need to look at the bid/ask spread within an exchange to do arbitrage.


1b) A way to ensure 0% liquidity risk that I can see is by buying at the lowest ask price at Exchange 1 and selling at the highest bid price at Exchange 2. Of course this is a smaller spread, but if the markets are as volatile as they've been in the past few days then there should be a few opportunities.

This is exactly what Blackbird does. Once the spread threshold SpreadEntry is reached the system will buy at the ask and sell at the bid. This is called crossing the spread and helps ensuring an immediate execution.


2) For exchanges that offer short-selling/margin-trading but with no API to do so, have you considered pure web automation, with something like Selenium?  Of course this would be much slower than an API call. However if your polling timeframe is 5 seconds then generally speaking using a web automation framework would be well within those bounds.

I know Selenium a little bit and I don't think speed would be an issue as the tasks can be executed at a pretty fast pace. I'm sure that it might be possible to implement, but could be rather complex (credentials, order generation, waiting until the order is 100% filled, verification, etc) and not as robust as the REST calls we are using now. But technically yes I think it's definitely possible.

lightpuma
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 24, 2016, 12:05:20 PM
 #136

Thank you for your reply. You seem very knowledgeable about all this Smiley
Could you explain the idea behind "OrderBookFactor"? How does the number have a correlation with the liquidity? If I set it at 3.0, is it 3x the spread, or?

Thank you! I'm probably not ready to start contributing much however I'm learning quite a fair amount and hopefully I'll be able to add something in the future.
cointabo
Sr. Member
****
Offline Offline

Activity: 477
Merit: 250



View Profile
June 25, 2016, 10:28:59 PM
 #137

Is there people here who are using Blackbird and profiting from it? Please share your reviews, comments here so others can read.
Very interested in this project, thanks for investing your time in this, OP.
lightpuma
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 26, 2016, 07:32:55 AM
 #138

Is there people here who are using Blackbird and profiting from it? Please share your reviews, comments here so others can read.
Very interested in this project, thanks for investing your time in this, OP.
There are some reviews on google and generally speaking the response has been mixed. I think the general consensus is that the bot works smoothly however could be tweaked a little for consistency of returns.

You can read a blog post here: http://honeybadgerofmoney.com/blackbirdarbbot/

Still it's an amazing idea and can only benefit the community.
netmonk
Full Member
***
Offline Offline

Activity: 219
Merit: 100


View Profile WWW
June 27, 2016, 12:33:08 PM
 #139

Any plan to fully support poloniex soon  ?
yudy
Full Member
***
Offline Offline

Activity: 252
Merit: 100


View Profile
June 27, 2016, 09:01:48 PM
Last edit: July 22, 2016, 02:12:03 AM by yudy
 #140

very low profit
only 2% every month, high risk profit only 2% is very low
iam only smile is high risk profit only 2% is every month
if one lost accident profit not cover
Pages: « 1 2 3 4 5 6 [7] 8 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!