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

Margin Protocol: Support Orders Feature #163

Open
shaunxw opened this issue Apr 6, 2020 · 0 comments
Open

Margin Protocol: Support Orders Feature #163

shaunxw opened this issue Apr 6, 2020 · 0 comments

Comments

@shaunxw
Copy link
Member

shaunxw commented Apr 6, 2020

Orders (pending order)

An order to open a buy or sell position in the future, when preset condition is reached.

Required margin are reserved (locked, can’t use for others, unless order is cancelled by trader or closed/removed by broker) when an order is placed.

Types of orders

6 types of order: “Sell Stop”, “Sell Limit”, “Buy Stop”, “Buy Limit”, “Buy Stop Limit” or “Sell Stop Limit”.

Buy Limit Example

  • Suppose now EURUSD=1.23.
  • Place a 20x 1 lot Buy Limit order of 1.20 by having the required margin reserved (EUR 100,000 x 1.20 x 0.05 = 6,000 USD)
  • If EURUSD goes downwards and reached 1.20 or lower at the next day, a long position to buy EURUSD at 1.20 or slightly lower price will be open.
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