-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
ebec703
to
55f6731
Compare
55f6731
to
b8b5330
Compare
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.
👍
@@ -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 |
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.
this is to set leverage for a specific pair
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.
(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 |
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.
this is to set a default leverage for a bot
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.
Should we create a FutureExchangeData and put default leverage in it? As, if I remember well, margin trading also has a "leverage" value
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.
Up !
b8b5330
to
644a559
Compare
644a559
to
55c0997
Compare
55c0997
to
876e6ab
Compare
No description provided.