Skip to content
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

[ProfileData] add exchange_type #447

Merged
merged 6 commits into from
Dec 4, 2024
Merged

[ProfileData] add exchange_type #447

merged 6 commits into from
Dec 4, 2024

Conversation

GuillaumeDSM
Copy link
Member

No description provided.

@GuillaumeDSM GuillaumeDSM requested a review from Herklos November 16, 2024 22:05
@GuillaumeDSM GuillaumeDSM self-assigned this Nov 16, 2024
@GuillaumeDSM GuillaumeDSM force-pushed the exchange_data branch 2 times, most recently from ebec703 to 55f6731 Compare November 25, 2024 08:51
@GuillaumeDSM GuillaumeDSM changed the title WIP [ProfileData] add exchange_type [ProfileData] add exchange_type Nov 30, 2024
@GuillaumeDSM GuillaumeDSM marked this pull request as ready for review November 30, 2024 18:43
Copy link
Member

@Herklos Herklos left a comment

Choose a reason for hiding this comment

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

👍

@@ -35,15 +35,18 @@ class ProfileDetailsData(octobot_commons.dataclasses.FlexibleDataclass):
class CryptoCurrencyData(octobot_commons.dataclasses.FlexibleDataclass):
trading_pairs: list[str]
name: typing.Union[str, None] = None
leverage: typing.Union[float, None] = None
Copy link
Member Author

Choose a reason for hiding this comment

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

this is to set leverage for a specific pair

Copy link
Member

Choose a reason for hiding this comment

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

(same as the other comment)

exchange_id: typing.Union[str, None] = None
proxy_id: typing.Union[str, None] = None
default_leverage: typing.Union[float, None] = None
Copy link
Member Author

Choose a reason for hiding this comment

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

this is to set a default leverage for a bot

Copy link
Member

Choose a reason for hiding this comment

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

Should we create a FutureExchangeData and put default leverage in it? As, if I remember well, margin trading also has a "leverage" value

Copy link
Member Author

Choose a reason for hiding this comment

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

Up !

@GuillaumeDSM GuillaumeDSM merged commit c4cd0ab into master Dec 4, 2024
6 checks passed
@GuillaumeDSM GuillaumeDSM deleted the exchange_data branch December 4, 2024 09:33
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.

None yet

2 participants