Skip to content

Commit

Permalink
Updated README and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
golden-lucky-monkey committed Jun 3, 2022
1 parent 7168233 commit a90a2c7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Rename this file to .env after adding in your API keys
API_KEY=<Insert your FTX API key, see https://ftx.com/profile>
API_SECRET=<Insert your FTX API secret, see https://ftx.com/profile>
# Uncomment this only if you are using subaccount-specific API keys
# Uncomment this only if you are using subaccount specific API keys
# SUBACCOUNT=<Insert the nickname for your subaccount>
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Rename `settings-example.json` to `settings.json`. The default settings are give

#### Place live orders (optional)
- Rename `.env.example` to `.env`, and enter in your FTX API keys
- Set`"live" : true` in `settings.json`
- Set `"live" : true` in `settings.json`


### Install all dependencies and build
Expand All @@ -69,18 +69,18 @@ You can use an orderbook visualizer when running the script, like this very beau
## Settings
`settings.json` contains all the configurable options:

| Name | Explanation |
|-------------------|-----------------------------------------------------------------------------|
| `market_name` | Name of futures market on FTX (default: BTC-PERP) |
| `time_delta` | Delay in seconds between queries (default: 5) |
| `bb_period` | Bollinger band period (default: 20) |
| `bb_std_dev` | Bollinger band standard deviation (default: 2) |
| `orderbook_depth` | Depth of orderbook to query (default: 1) |
| `live` | Place live orders on FTX, requires API keys in `.env` (default: false) |
| `order_size` | Size of order to place (default: 1.618 BTC) |
| `tp_percent` | Percent move to take profit at (default: 0.1%) |
| `sl_percent` | Percent move to stop loss at (default: 0.05%) |
| `write_to_file` | Store positions in a csv file for further analysis (default: positions.csv) |
| Name | Explanation |
|-------------------|------------------------------------------------------------------------|
| `market_name` | Name of futures market on FTX (default: BTC-PERP) |
| `time_delta` | Delay in seconds between queries (default: 5) |
| `bb_period` | Bollinger band period (default: 20) |
| `bb_std_dev` | Bollinger band standard deviation (default: 2) |
| `orderbook_depth` | Depth of orderbook to query (default: 1) |
| `live` | Place live orders on FTX, requires API keys in `.env` (default: false) |
| `order_size` | Size of order to place (default: 0.1618 BTC) |
| `tp_percent` | Percent move to take profit at (default: 0.1%) |
| `sl_percent` | Percent move to stop loss at (default: 0.05%) |
| `write_to_file` | Store positions in a csv file for further analysis (default: true) |

## TODO
- [ ] Use Kelly criterion for order sizing (probabilities can be estimated from prior analysis)
Expand Down
2 changes: 1 addition & 1 deletion settings-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bb_std_dev": 2.0,
"orderbook_depth": 1,
"live": false,
"order_size": 1.618,
"order_size": 0.1618,
"tp_percent": 0.1,
"sl_percent": 0.05,
"write_to_file": true
Expand Down

0 comments on commit a90a2c7

Please sign in to comment.