Skip to content

Conversation

@GuillaumeDSM
Copy link
Member

No description provided.

@GuillaumeDSM GuillaumeDSM requested a review from Herklos November 18, 2024 22:05
@GuillaumeDSM GuillaumeDSM self-assigned this Nov 18, 2024
@GuillaumeDSM GuillaumeDSM force-pushed the futures branch 2 times, most recently from 4afc8ec to 3951803 Compare November 25, 2024 17:06
@GuillaumeDSM GuillaumeDSM changed the title WIP Futures Futures Nov 30, 2024
@GuillaumeDSM GuillaumeDSM marked this pull request as ready for review November 30, 2024 18:46
Comment on lines -279 to -290
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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuillaumeDSM GuillaumeDSM enabled auto-merge (rebase) December 4, 2024 14:54
@GuillaumeDSM GuillaumeDSM merged commit 79471fd into dev Dec 4, 2024
7 checks passed
@GuillaumeDSM GuillaumeDSM deleted the futures branch December 4, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants