Idea for CREATE SPREAD
This commit is contained in:
parent
3ea6236165
commit
2cffa5c78c
@ -1,7 +1,7 @@
|
||||
# Table of Contents
|
||||
* [Action Statements](#action-statements)
|
||||
* [CREATE EXCHANGE](#create-exchange-statement)
|
||||
* [CREATE PRODUCT](#create-product-statement)
|
||||
* [CREATE SPREAD](#create-spread)
|
||||
* [SELL](#sell-statement)
|
||||
* [BUY](#buy-statement)
|
||||
* [Functions](#functions)
|
||||
@ -27,16 +27,20 @@ CREATE EXCHANGE 'IB' TYPE IB_API
|
||||
URI 'https://127.0.0.1:11590/'
|
||||
```
|
||||
|
||||
## CREATE PRODUCT Statement
|
||||
## CREATE SPREAD Statement
|
||||
This is a shortcut function to create a buy/sell order pairs with hedge triggers
|
||||
```
|
||||
CREATE PRODUCT [Name] AS [Exchange].[Product]
|
||||
TODO
|
||||
```
|
||||
|
||||
### Examples
|
||||
```
|
||||
CREATE PRODUCT 'QQQ' AS "IB"."QQQ"
|
||||
CREATE SPREAD OF 10 BTC FOR QQQToken FROM "CryptoExchange"
|
||||
HEDGE BTC FOR USD FROM "CryptoExchange"
|
||||
HEDGE QQQToken FOR QQQ FROM "StockExchange"
|
||||
```
|
||||
|
||||
|
||||
## SELL Statement
|
||||
```
|
||||
[SELL] [Units] OF [Product]
|
||||
|
Loading…
Reference in New Issue
Block a user