Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FtxExchange should cater for futures and spot #4

Open
atkinson opened this issue Nov 3, 2021 · 2 comments
Open

FtxExchange should cater for futures and spot #4

atkinson opened this issue Nov 3, 2021 · 2 comments
Assignees

Comments

@atkinson
Copy link
Owner

atkinson commented Nov 3, 2021

The ftx API treats futures and spot differently; we should not conflate them.

execution.exchanges.Exchange defines a base class for Exchanges (currently the only implementation is execution.exchanges.ftx.FtxExchange which is incomplete).

We need to support strategies that work with spot, and futures.

@atkinson atkinson self-assigned this Nov 11, 2021
@atkinson
Copy link
Owner Author

Also, implement some better execution logic.

@CharlesFr
Copy link
Collaborator

CharlesFr commented Dec 16, 2021

I think we should consider the use case where we know we want to trade an asset but acknowledge that it can be more profitable to get exposure via other instruments or even exchanges.

What do you think about removing the quote currency from the Security model and adding a symbol and exchange attribute to? That way, when a StrategyPositionRequest is created we can insert an additional piece of logic that will choose optimal symbol and eventually exchange.

Initially we can keep it simple, long = spot, short = perp

We will need to handle shifts from one symbol to another, and ensure frequency of this happening is as low as possible.

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

No branches or pull requests

2 participants