Skip to content

Add LongBridge fractional order API probe#28

Merged
Pigbibi merged 1 commit into
mainfrom
codex/longbridge-fractional-api-probe
May 7, 2026
Merged

Add LongBridge fractional order API probe#28
Pigbibi merged 1 commit into
mainfrom
codex/longbridge-fractional-api-probe

Conversation

@Pigbibi
Copy link
Copy Markdown
Contributor

@Pigbibi Pigbibi commented May 7, 2026

Summary

  • add a skipped manual LongBridge API probe that exercises HK simulated-account fractional order submission
  • verify sub-one quantities still hit LongBridge SubmittedQuantity validation while 1.5-share limit orders can be probed and cancelled
  • expose the SDK fractional buying-power flag through the LongBridge estimate adapter

Validation

  • PYTHONPATH=src /home/ubuntu/Projects/LongBridgePlatform/.venv/bin/python -m pytest tests/test_longbridge_execution.py tests/test_longbridge_fractional_order_api_probe.py -q
  • PYTHONPATH=src /home/ubuntu/Projects/LongBridgePlatform/.venv/bin/python -m ruff check src/quant_platform_kit/longbridge/execution.py tests/test_longbridge_execution.py tests/test_longbridge_fractional_order_api_probe.py
  • git diff --check

Notes

The new API probe is skipped unless LONGBRIDGE_API_PROBE=1 and LongPort credentials are present. It is intended for the HK simulated account workflow, not regular CI.

@Pigbibi Pigbibi marked this pull request as ready for review May 7, 2026 21:13
@Pigbibi Pigbibi merged commit 30c8c49 into main May 7, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/longbridge-fractional-api-probe branch May 7, 2026 21:14
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