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

feat: add delete_sub_uid() & removed utcnow() #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LordGhostX
Copy link

@LordGhostX LordGhostX commented Aug 22, 2024

from pybit.unified_trading import HTTP
session = HTTP(
    testnet=True,
    api_key="XXXXX",
    api_secret="XXXXX",
)
print(session.delete_sub_uid(
    subMemberId="XXXXX"
))

Here's a use case for Delete Sub UID. I manage a codebase that automates the following processes:

  • Create subaccounts
  • Configure subaccounts (hedge mode, leverage, partial SL mode, isolated mode)
  • Generate their API keys
  • Delete expired keys and generate new ones
  • Transfer assets between subaccounts
  • Place orders and track PnL on subaccounts

My tests must ensure that subaccounts can be created and configured successfully. Once this is confirmed, it deletes the subaccount.

cc: @dextertd @woodliang10

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.

1 participant