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

FEATURE: close short positions with ClosePosition #1597

Merged
merged 1 commit into from Mar 21, 2024

Conversation

Newtoniano
Copy link
Contributor

This PR adds the ability to close short positions with the ClosePosition method. It adjusts the order quantity based on the available quote balance and the current ask price for the symbol.

@bbgokarma-bot
Copy link

Hi @Newtoniano,

This is KarmaBot, and we reward your contributions with tokens sent directly to your wallet to support development.

This pull request may get 209 BBG.

To receive BBG tokens, please provide your Polygon (can be Ethereum) address as an issue comment in this pull request, following this format:

polygon:0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B

Once this pull request is merged, your BBG tokens will be transferred to your wallet.

--
If you're interested in our project, feel free to join our Telegram group https://t.me/bbgo_intl

Best,
KarmaBot

@CLAassistant
Copy link

CLAassistant commented Mar 20, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Owner

@c9s c9s left a comment

Choose a reason for hiding this comment

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

awesome! you've learned the api so fast!

@c9s c9s enabled auto-merge March 21, 2024 01:30
@c9s c9s merged commit abd9f86 into c9s:main Mar 21, 2024
3 checks passed
@Newtoniano Newtoniano deleted the close-short-positions branch March 21, 2024 12:39
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

4 participants