Some basic create commands

This commit is contained in:
斟酌 鵬兄 2022-10-19 21:45:11 +08:00
parent bbed09b5b7
commit 3ea6236165

View File

@ -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]