Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

♻️ Adding back reverse mode for FTX futures#36

Draft
thibaultyou wants to merge 1 commit into
masterfrom
fix/ftx-reverse-mode
Draft

♻️ Adding back reverse mode for FTX futures#36
thibaultyou wants to merge 1 commit into
masterfrom
fix/ftx-reverse-mode

Conversation

@thibaultyou
Copy link
Copy Markdown
Owner

Related to this issue.

@thibaultyou thibaultyou added the enhancement New feature or request label Oct 13, 2021
export const getRelativeOrderSize = (balance: number, size: string): number => {
const percent = Number(size.replace(/%/g, ''));
if (percent <= 0 || percent > 100) {
if (percent <= 0) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why would > 100% be allowed?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

if you're using leverage to trade like a degenerate 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants