-
Notifications
You must be signed in to change notification settings - Fork 6
feat/rfq implementations #84
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
base: main
Are you sure you want to change the base?
Conversation
8ball030
commented
Sep 11, 2025
- feat: added private endpoints in base_client.py feat: implemented logic for transfer_position & transfer_positions in endpoints.py chore: bumped derive-action-signing version to latest 0.0.13
- feat: cli method updated to support transfer_position & positions endpoints
- fix: made the suggested changes
- fix: removed the check for position_amount
- feat: examples & tests added for the new transfer_position/s endpoints
- fix: merged conflicts fixed
- fix: fixed flake8 errors
- feat: Update position_setup fixture to dynamically fetch instruments and fix position amount issues
- fix: proper tests added to first open a position, transfer it then trasnfer back to the original account then close it
- fix: fixed the tranfer_position & positions methods. Earlier they were using only the ETH-Perps & transfer_positions was using TRADE_MODULE instead of RFQ
- feat: new fixtures added & new tests added
- feat: all tests are green now. Updated the base_client to handle the transfers
- feat: RFQ_MODULE address added in the ContractAddresses class
- feat: minor fixes & examples updated for transfer_position & transfer_positions
- feat: import fixed in cli.py
- fix: linter issues
- feat: Order model
- feat: Trade model
- feat: Quote model
- feat: PositionTransfer and PositionsTransfer
- fix: remove derive_client_2 and update tests
- chore: remove _extract_transaction_id
- fix: test_single_position_transfer
- chore: cleanup conftest
- fix: test_funding_transfers.py
- fix: remove subaccount_id attribute assignment in cliet fixtures
- fix: transfer_position
- feat: assign subaccount_ids as attribute on client instantiation
- feat: PositionSpec
- chore: outcomment problematic ARBITRUM endpoints
- fix: transfer_positions WIP
- feat: get_order endpoint
- chore: add outcommented session key wallet address to conftest
- tests: test_transfer_positions WIP
- fix:ensures-position-orders-fill
- fix:disable-simultaneous-test
- chore:remove-non-working-json-loader
- feat:enabled-other-test
tests/test_rfq.py
Outdated
|
|
||
| @dataclass | ||
| class Leg: | ||
| class Leg(BaseModel): |
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 be in types
| subaccount_id: str | ||
| leg_1: Leg | ||
| leg_2: Leg | ||
| class Rfq(BaseModel): |
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 be types or models not in tests
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.
will address models in subsequent PR
Merge pull request #86 from 8ball030/feat/ruff