Some basic commands

This commit is contained in:
斟酌 鵬兄 2022-10-19 22:11:05 +08:00
parent 0a280e0acb
commit 0acbda9a7a

View File

@ -2,6 +2,8 @@
* [Action Statements](#action-statements) * [Action Statements](#action-statements)
* [CREATE EXCHANGE](#create-exchange-statement) * [CREATE EXCHANGE](#create-exchange-statement)
* [CREATE SPREAD](#create-spread-statement) * [CREATE SPREAD](#create-spread-statement)
* [UPDATE TRIGGER](#update-trigger-statement)
* [LIST TRIGGERS](#nop)
* [SELL](#sell-statement) * [SELL](#sell-statement)
* [BUY](#buy-statement) * [BUY](#buy-statement)
* [Functions](#functions) * [Functions](#functions)
@ -10,6 +12,7 @@
* [Types of Exchange](#types-of-exchange) * [Types of Exchange](#types-of-exchange)
* [IB_API](#ib_api) * [IB_API](#ib_api)
* [HIVE](#hive) * [HIVE](#hive)
* [MOCK](#mock-exchange)
# Action Statements # Action Statements
@ -40,6 +43,11 @@ CREATE SPREAD OF 10 BTC FOR QQQToken FROM "CryptoExchange"
HEDGE QQQToken FOR QQQ FROM "StockExchange" HEDGE QQQToken FOR QQQ FROM "StockExchange"
``` ```
## UPDATE TRIGGER
```
TODO
```
## SELL Statement ## SELL Statement
``` ```
@ -197,3 +205,9 @@ SELL 1 BTC OF BTC
FROM "CryptoExchange" FROM "CryptoExchange"
FOR EVERY 1 BTC OF BTC BOUGHT FROM "CryptoExchange" FOR EVERY 1 BTC OF BTC BOUGHT FROM "CryptoExchange"
``` ```
# Types of Exchange
## Mock Exchange
The mock exchange is an exchange for testing purpose