Skip to main content

Module trade_currency

Module trade_currency 

Source
Expand description

Stable API — trade-side currency labels and shared user-facing diagnostics. Trade-side currency labels and shared user-facing funds diagnostics.

This module is deliberately lower than futu-trd and trade-domain crates so SDK, gateway, and domain policies can share one warning contract without introducing reverse domain dependencies.

Modules§

currency_id
Trd_Common.proto::Currency enum values used by public trade surfaces.

Functions§

currency_label
Public Trd_Common.Currency label used in diagnostics.
funds_currency_mismatch_warning
User-visible warning when a single-currency backend ignores explicit funds currency and returns the account native currency instead.
parse_currency_label
Parse a user-facing currency code into Trd_Common.Currency.
trade_read_currency_for_sim_nn_market
Project a present internal NN_TrdMarket into the currency used by simulated trade-read position and order responses.