-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Margin Trading | ||
|
||
Margin trading is a method of trading assets using funds provided by a third party. When compared to regular trading accounts, margin accounts allow traders to access greater sums of capital, allowing them to leverage their positions. Essentially, margin trading amplifies trading results so that traders are able to realize larger profits on successful trades. This ability to expand trading results makes margin trading especially popular in low-volatility markets, particularly the international Forex market. Nonetheless, it is important to note that margin trading involves a significant amount of risk. While you can use leverage to make a greater profit, you can also incur significant losses if a trade moves against you. | ||
|
||
Currently, bbgo supports cross margin trading and isolated margin trading. Enable margin trading by setting the `margin` field under the session settings in the bbgo.yaml configuration file, for example: | ||
|
||
```yaml | ||
sessions: | ||
binance: | ||
exchange: binance | ||
envVarPrefix: BINANCE | ||
margin: true | ||
``` | ||
## Margin Trading on OKX | ||
To enable margin trading on OKX, you need to set the trading mode to "Spot Mode", | ||
and turn on Auto-Borrow from the OKX UI. | ||