Skip to content

Commit

Permalink
Cleanup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Aug 18, 2024
1 parent 19f8e27 commit 70dd430
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/integrations/binance.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,13 @@ instrument_provider=InstrumentProviderConfig(
```

### Futures Hedge mode
Binance Futures Hedge mode is a position mode where a trader opens positions in both long and short directions to mitigate risk and potentially profit from market volatility. Before starting a

Binance Futures Hedge mode is a position mode where a trader opens positions in both long and short
directions to mitigate risk and potentially profit from market volatility.

To use Binance Future Hedge mode, you need to follow the three items below:
1. Before starting the strategy, please ensure that hedge mode is configured on Binance.
2. Set the `use_reduce_only` option to `False` in BinanceExecClientConfig (this is `True` by default.)
- 1. Before starting the strategy, ensure that hedge mode is configured on Binance.
- 2. Set the `use_reduce_only` option to `False` in BinanceExecClientConfig (this is `True` by default.)
```python
config = TradingNodeConfig(
..., # Omitted
Expand All @@ -259,8 +261,7 @@ To use Binance Future Hedge mode, you need to follow the three items below:
)
```


3. When submitting an order, use a suffix (`LONG` or `SHORT` ) in the position_id to indicate the position direction.
- 3. When submitting an order, use a suffix (`LONG` or `SHORT` ) in the `position_id` to indicate the position direction.
```python
class EMACrossHedgeMode(Strategy):
..., # Omitted
Expand Down

0 comments on commit 70dd430

Please sign in to comment.