Expand description
Stable API — trade-side security code shape and sec-market derivation.
Used by futu-trd and trade-write domain without introducing reverse
runtime/domain dependencies.
Trade-side security code shape and market derivation helpers.
These pure rules sit below both SDK/runtime crates and trade-domain crates:
futu-trd needs them for public SDK projection, while trade-write domain
keeps compatibility re-exports for write-path policy.
Structs§
- TrdSec
Market Input - Input facts used to derive FTAPI
TrdSecMarket.
Functions§
- derive_
trd_ sec_ market_ like_ cpp - C++-aligned
TrdSecMarketderivation for trade requests. - extract_
futures_ ticker_ prefix_ like_ cpp - Extract the ticker prefix from a futures code.
- futures_
ticker_ to_ sec_ market_ like_ cpp - Derive
TrdSecMarketfrom known futures ticker prefixes. - is_
futures_ code - Return whether the code looks like a futures symbol.
- is_
hk_ index_ option_ code - HK index option ticker fallback used when static
mkt_idis unavailable. - is_
option_ code - C++-aligned option symbol shape fallback.
- sec_
market_ from_ code_ prefix_ like_ cpp - Derive FTAPI
TrdSecMarketfrom an explicit code prefix. - strip_
market_ prefix - Strip a known FTAPI market prefix from a user/security code.