Some basic create commands
This commit is contained in:
parent
bbed09b5b7
commit
3ea6236165
@ -1,14 +1,42 @@
|
||||
# Table of Contents
|
||||
* [Action Statements](#action-statements)
|
||||
* [CREATE EXCHANGE](#create-exchange-statement)
|
||||
* [CREATE PRODUCT](#create-product-statement)
|
||||
* [SELL](#sell-statement)
|
||||
* [BUY](#buy-statement)
|
||||
* [Functions](#functions)
|
||||
* [PURCHASING_POWER](#purchasing_power)
|
||||
* [CURRENT_PRICE](#current_price)
|
||||
* [Types of Exchange](#types-of-exchange)
|
||||
* [IB_API](#ib_api)
|
||||
* [HIVE](#hive)
|
||||
|
||||
|
||||
# Action Statements
|
||||
|
||||
## CREATE EXCHANGE Statement
|
||||
```
|
||||
CREATE EXCHANGE [Name] TYPE [ExchangeType]
|
||||
URI [API CALLBACK URI]
|
||||
[...Exchange type-specific PARAMS]
|
||||
```
|
||||
|
||||
### Examples
|
||||
```
|
||||
CREATE EXCHANGE 'IB' TYPE IB_API
|
||||
URI 'https://127.0.0.1:11590/'
|
||||
```
|
||||
|
||||
## CREATE PRODUCT Statement
|
||||
```
|
||||
CREATE PRODUCT [Name] AS [Exchange].[Product]
|
||||
```
|
||||
|
||||
### Examples
|
||||
```
|
||||
CREATE PRODUCT 'QQQ' AS "IB"."QQQ"
|
||||
```
|
||||
|
||||
## SELL Statement
|
||||
```
|
||||
[SELL] [Units] OF [Product]
|
||||
|
Loading…
Reference in New Issue
Block a user