-
Notifications
You must be signed in to change notification settings - Fork 84
Futures #1384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Futures #1384
Conversation
4afc8ec to
3951803
Compare
3951803 to
61107d9
Compare
| parsed[trading_enums.ExchangeConstantsPositionColumns.MARGIN_TYPE.value] = \ | ||
| trading_enums.MarginType( | ||
| fixed.get(ccxt_enums.ExchangePositionCCXTColumns.MARGIN_MODE.value) | ||
| ) | ||
| # use one way by default. | ||
| if parsed[trading_enums.ExchangeConstantsPositionColumns.POSITION_MODE.value] is None: | ||
| parsed[trading_enums.ExchangeConstantsPositionColumns.POSITION_MODE.value] = ( | ||
| trading_enums.PositionMode.HEDGE if fixed.get(ccxt_enums.ExchangePositionCCXTColumns.HEDGED.value, | ||
| True) | ||
| else trading_enums.PositionMode.ONE_WAY | ||
| ) | ||
| return parsed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessary anymore right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # "marginMode": "ISOLATED" // Added field for margin mode: ISOLATED, CROSS, default: ISOLATED | ||
| # from https://www.kucoin.com/docs/rest/futures-trading/orders/place-order | ||
| if ( | ||
| KucoinCCXTAdapter.KUCOIN_MARGIN_MODE not in params and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.