Pages:
Author

Topic: Bitcoin arbitrage on GitHub: ~2% monthly return, market-neutral long/short - page 3. (Read 38305 times)

full member
Activity: 224
Merit: 100
796.com has an option to sell short? I see this when I go to their trading page:

newbie
Activity: 49
Merit: 0

Do any implemented exchanges other than Bitfinex support short selling?

For the moment, only Bitfinex offers an API to short sell. We hope that 796.com will offer a similar API soon.

full member
Activity: 224
Merit: 100
Do any implemented exchanges other than Bitfinex support short selling?
Your attention span is shorter than 4 posts, isnt it?

It'd be a lot more productive use of everyone's time if you'd just answer the question...
sr. member
Activity: 474
Merit: 252
Do any implemented exchanges other than Bitfinex support short selling?
Your attention span is shorter than 4 posts, isnt it?
full member
Activity: 224
Merit: 100
Do any implemented exchanges other than Bitfinex support short selling?
legendary
Activity: 1064
Merit: 1000

Is BTC-E currently working? I see it's implemented

No BTC-e is not yet implemented. From the README file:

The following exchange should be implemented soon:
  • BTC-e

I will post something here when the implementation is done.



No rush, the best things come to those who wait. I love the project as it is now, each new implementation is exciting. Cheesy
newbie
Activity: 49
Merit: 0

I am really impressed by the project you are working on, using short selling is definitely a good idea to avoid fund transfer between exchanges (and the associated fees that would make arbitrage unprofitable).
But I have a few questions regarding how you tackle the inner risks of short selling. First of all, the potential loss while using short selling is (theoretically) infinite since the price has not an upper bound. Of course, since you are also buying, the winning would be as important as the loss. But this is true only if you strategy is perfectly market neutral, in other words: ONLY IF YOU BUY EXACTLY AT THE SAME TIME AS YOU SHORT SELL WITH EXACTLY THE SAME AMOUNT OF BTC. Your algorithm probably does not guarantee these two points so my question is did you try to assess the delay between short selling and buying? Did you assess the gap between them (in terms of btc amount)?

Thanks. The potential loss while using short selling is indeed infinite ...in theory. In reality, if your loss gets close to a defined amount of your account, you will get a margin call from the exchange. So you will never lose more than what you have on your margin account: if you only deposited $20 and you don't want to meet the margin calls then $20 will be your maximum loss.

That being said, Blackbird sends the two long and short orders at the same time. But if one is fully executed and not the other one (i.e. the market moved away from one order) then yes you won't be market neutral, that's correct. A solution would be to divide every order into child orders, e.g. a $50,000 order becomes 500 * $100 child orders. When you send your child orders you make sure than the number of already filled long orders is similar to the number of already filled short orders until all the orders are sent and fully filled. So the long/short unbalance would be $100 maximum at any time. That would be a nice implementation for Blackbird.

Meanwhile, note that to make sure the orders are almost instantly fully executed we do the following:

  • we always cross the spread
  • before we send an order we make sure that there is at least 3 times (by default) the liquidity in the order book than what we need for that order.


My second question is: you advise to use only small amounts to begin arbitraging (which is clearly prudent if we do not want to be ruined in a few minutes !). But if I run your algo, is my maximum loss really equal to my investment? Assume the algorithm goes crazy and order 1000btc for short selling! (The algo does need any money for that!) Assume the trend goes up... I could end up with 100000 dollars of debt due to the guys who borrowed me the btc even if I started to trade with 10$!!
How do you prevent this to happen, did you take this in account in your project or does the exchanges doing short selling prevent us from this event by rejecting too large short selling orders? If so what is the limit? 

Again, you will get a margin call from the exchange if your potential loss is above the limit. If you don't meet the margin call then the exchange will close your BTC position, usually at market price, and their loss will be covered by your margin account. So yes, you could entirely lose your margin account, but not more.

Note that as for now, Blackbird doesn't deal with margin calls.

newbie
Activity: 49
Merit: 0

Is BTC-E currently working? I see it's implemented

No BTC-e is not yet implemented. From the README file:

The following exchange should be implemented soon:
  • BTC-e

I will post something here when the implementation is done.

full member
Activity: 224
Merit: 100
Is BTC-E currently working? I see it's implemented
newbie
Activity: 1
Merit: 0
Hello Butor,

I am really impressed by the project you are working on, using short selling is definitely a good idea to avoid fund transfer between exchanges (and the associated fees that would make arbitrage unprofitable).
But I have a few questions regarding how you tackle the inner risks of short selling. First of all, the potential loss while using short selling is (theoretically) infinite since the price has not an upper bound. Of course, since you are also buying, the winning would be as important as the loss. But this is true only if you strategy is perfectly market neutral, in other words: ONLY IF YOU BUY EXACTLY AT THE SAME TIME AS YOU SHORT SELL WITH EXACTLY THE SAME AMOUNT OF BTC. Your algorithm probably does not guarantee these two points so my question is did you try to assess the delay between short selling and buying? Did you assess the gap between them (in terms of btc amount)?

My second question is: you advise to use only small amounts to begin arbitraging (which is clearly prudent if we do not want to be ruined in a few minutes !). But if I run your algo, is my maximum loss really equal to my investment? Assume the algorithm goes crazy and order 1000btc for short selling! (The algo does need any money for that!) Assume the trend goes up... I could end up with 100000 dollars of debt due to the guys who borrowed me the btc even if I started to trade with 10$!!
How do you prevent this to happen, did you take this in account in your project or does the exchanges doing short selling prevent us from this event by rejecting too large short selling orders? If so what is the limit? 

Thank you in advance for the clarification Smiley
sr. member
Activity: 474
Merit: 252
Hello dudes

Sorry for the dumb question but i am not properly a linux experericend user.

How to upgrade the jansson lib to 2.7 version?

I am getting the error message "json_boolean_value was not delcared in this scope"


I used apt-get install to download the previous version


Thanks for the support


Build from sources: http://jansson.readthedocs.org/en/2.7/gettingstarted.html or provide someone with a little more system information please.  Smiley

Thanks siameze

I run Linux Mint Rosetta, on a Vbox. What's the proper terminal command?
Read the thread and the document on Github. Your error and the solution are documented there. Ask in the Mint / ubuntuforums to get a backport of the package.
full member
Activity: 222
Merit: 100
Margin Call
Hello dudes

Sorry for the dumb question but i am not properly a linux experericend user.

How to upgrade the jansson lib to 2.7 version?

I am getting the error message "json_boolean_value was not delcared in this scope"


I used apt-get install to download the previous version


Thanks for the support


Build from sources: http://jansson.readthedocs.org/en/2.7/gettingstarted.html or provide someone with a little more system information please.  Smiley

Thanks siameze

I run Linux Mint Rosetta, on a Vbox. What's the proper terminal command?
legendary
Activity: 1064
Merit: 1000
Hello dudes

Sorry for the dumb question but i am not properly a linux experericend user.

How to upgrade the jansson lib to 2.7 version?

I am getting the error message "json_boolean_value was not delcared in this scope"


I used apt-get install to download the previous version


Thanks for the support


Build from sources: http://jansson.readthedocs.org/en/2.7/gettingstarted.html or provide someone with a little more system information please.  Smiley
full member
Activity: 222
Merit: 100
Margin Call
Hello dudes

Sorry for the dumb question but i am not properly a linux experericend user.

How to upgrade the jansson lib to 2.7 version?

I am getting the error message "json_boolean_value was not delcared in this scope"


I used apt-get install to download the previous version


Thanks for the support
sr. member
Activity: 474
Merit: 252
Good news:
Quote
Original Message -----Hi there, yes we will launch bitcoin spot trading soon but API might need later development.
newbie
Activity: 49
Merit: 0
I got it resolved by removing 796.com for the moment and also opened an issue with them as i
* suspected it is an issue with their API
* wanted to know if they will enable short sells via API

;-)

I will probably go ahead and patch it into mine tonight, but leave it commented out until after New Year. Exciting times though, 796 support is very nice.

Fingers crossed their API will allow short selling. We would double the arbitrage opportunities!

legendary
Activity: 1064
Merit: 1000
I got it resolved by removing 796.com for the moment and also opened an issue with them as i
* suspected it is an issue with their API
* wanted to know if they will enable short sells via API

;-)

I will probably go ahead and patch it into mine tonight, but leave it commented out until after New Year. Exciting times though, 796 support is very nice.
sr. member
Activity: 474
Merit: 252
I got it resolved by removing 796.com for the moment and also opened an issue with them as i
* suspected it is an issue with their API
* wanted to know if they will enable short sells via API

;-)
legendary
Activity: 1064
Merit: 1000

Thanks mxnsch and siameze!

Hopefully it will be possible to programmatically short sell on 796.com. For the moment, we still only have Bitfinex that offers that feature.

PS: the Chinese New Year is next Monday (February 8th).


Awesome news, and I like how the project keeps moving forward in a positive direction. Hopefully this weekend I will be able to see if I can look closer into the 796 code, did mxnsch get his issue resolved?
newbie
Activity: 49
Merit: 0

Thanks mxnsch and siameze!

Hopefully it will be possible to programmatically short sell on 796.com. For the moment, we still only have Bitfinex that offers that feature.

PS: the Chinese New Year is next Monday (February 8th).
Pages:
Jump to: