Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Margin Trading in Catalyst - Short Sells practically not possible #415

Open
avolution opened this issue Jul 25, 2018 · 7 comments
Open

Margin Trading in Catalyst - Short Sells practically not possible #415

avolution opened this issue Jul 25, 2018 · 7 comments

Comments

@avolution
Copy link

avolution commented Jul 25, 2018

At the Moment when I execute an order lets say

order_target_value(symbol('btc_usd'), -30.0)

It will be executed as an low level exchange order.

This is a problem because in this case Short Positions are not really possible because you have to have an amount of every currency which have pairs in your universe.

Otherwise you will get an exceptions like this:
For example:
catalyst.exchange.exchange_errors.ExchangeRequestError: Request failed: bitfinex {"message":"Invalid order: not enough exchange balance for -0.00367152 BTCUSD at 8170.0"}

So its not practically posible to use short sells(and related strategies in result).

Is it possible/ planed to switch to margin trading
I think ccxt is able to do margin-trading

Margin Trading makes much more sense cause a lot of quant strategies are more related to margin trading with leverage as to low level exchange trading.


I have tested this on Bitfinex
Catalyst Version 0.5.18

@avolution avolution changed the title Margin Trading in catalyst - Short Sells practically not possible Margin Trading in Catalyst - Short Sells practically not possible Jul 25, 2018
@SOGorman35
Copy link

according to issue #235, shorting is not yet possible. :(

@avolution
Copy link
Author

avolution commented Jul 25, 2018

@SOGorman35
Thanks for the link
So its from 16 Feb

@catalyst-support @lenak25
How is the priority for implementing margin-trading?
I can provide help for implementing it, if needed.

@lenak25
Copy link
Contributor

lenak25 commented Jul 25, 2018

@avolution, we haven't yet started addressing it and will appreciate any contribution.
Thanks!

@richrines
Copy link

@catalyst-support Curious if this has been started and/or if myself or someone else should lend a hand to start work on it? Thanks!

@lenak25
Copy link
Contributor

lenak25 commented Sep 26, 2018

Hi @richrines , we still haven't started addressing it, any contribution will be very much appreciated.

@0xDmtri
Copy link

0xDmtri commented Oct 6, 2019

Hi @richrines , we still haven't started addressing it, any contribution will be very much appreciated.

Hi, what's up with shorts now?

@avolution
Copy link
Author

avolution commented Oct 8, 2019

@QuantDimension
check out -> #559

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants