Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions content/operation/config-files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,23 @@ Import the lines of code to create a custom command shortcut.

```
# Command Shortcuts
# Define abbreviations for often used commands
# Define multiple abbreviations for often used commands
# or batch grouped commands together

command_shortcuts:
# Assign shortcut command
command: spreads_refresh

- command: spreads_refresh
# Reference
help: Set bid spread, ask spread, and order refresh time

# Argument Label
arguments: [Bid Spread, Ask Spread, Order Refresh Time]

# Original config output with value
output: [config bid_spread $1, config ask_spread $2, config order_refresh_time $3]
# Assign shortcut command
- command: spreads
help: Set bid and ask spread
arguments: ['Bid Spread', 'Ask Spread']
output: ['config bid_spread $1', 'config ask_spread $2']
```

<Callout
Expand Down