Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- **Rust:** `market::TradeStatus` models `/v1/quote/market-status` trade status codes, including engine-compatible normalization and display helpers.
## [4.3.2] - 2026-06-13

### Added
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ strum = "0.27.2"
strum_macros = "0.27.2"
serde = "1.0.219"
serde_json = "1.0.142"
serde_repr = "0.1"
dotenv = "0.15.0"
http = "1.3.1"
comfy-table = "7.1.4"
Expand Down
4 changes: 2 additions & 2 deletions c/src/market_context/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ impl From<MarketTimeItem> for CMarketTimeItemOwned {
fn from(v: MarketTimeItem) -> Self {
Self {
market: v.market.into(),
trade_status: v.trade_status,
trade_status: v.trade_status.code(),
timestamp: v.timestamp.into(),
delay_trade_status: v.delay_trade_status,
delay_trade_status: v.delay_trade_status.code(),
delay_timestamp: v.delay_timestamp.into(),
sub_status: v.sub_status,
delay_sub_status: v.delay_sub_status,
Expand Down
13 changes: 13 additions & 0 deletions java/src/types/primary_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ impl IntoJValue for i32 {
}
}

impl JSignature for longbridge::market::TradeStatus {
fn signature() -> Cow<'static, str> {
i32::signature()
}
}

impl IntoJValue for longbridge::market::TradeStatus {
#[inline]
fn into_jvalue<'a>(self, env: &mut JNIEnv<'a>) -> Result<JValueOwned<'a>> {
self.code().into_jvalue(env)
}
}

impl JSignature for i64 {
fn signature() -> Cow<'static, str> {
"J".into()
Expand Down
4 changes: 2 additions & 2 deletions nodejs/src/market/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ impl From<lb::MarketTimeItem> for MarketTimeItem {
fn from(v: lb::MarketTimeItem) -> Self {
Self {
market: v.market.into(),
trade_status: v.trade_status,
trade_status: v.trade_status.code(),
timestamp: v.timestamp,
delay_trade_status: v.delay_trade_status,
delay_trade_status: v.delay_trade_status.code(),
delay_timestamp: v.delay_timestamp,
sub_status: v.sub_status,
delay_sub_status: v.delay_sub_status,
Expand Down
4 changes: 2 additions & 2 deletions python/src/market/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ impl From<lb::MarketTimeItem> for MarketTimeItem {
fn from(v: lb::MarketTimeItem) -> Self {
Self {
market: v.market.into(),
trade_status: v.trade_status,
trade_status: v.trade_status.code(),
timestamp: v.timestamp,
delay_trade_status: v.delay_trade_status,
delay_trade_status: v.delay_trade_status.code(),
delay_timestamp: v.delay_timestamp,
sub_status: v.sub_status,
delay_sub_status: v.delay_sub_status,
Expand Down
1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ strum.workspace = true
strum_macros.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
serde_repr.workspace = true
dotenv.workspace = true
http.workspace = true
comfy-table.workspace = true
Expand Down
Loading
Loading