Skip to content

Releases: tigerfintech/openapi-rust-sdk

Release list

v0.5.0

Choose a tag to compare

@hotea hotea released this 07 Jul 03:24

Breaking Changes

  • QuoteClient / TradeClient 构造方式变更:新增 from_config(config) 构造器,不再需要手动创建 HttpClient;lifetime <'a> 已移除,HttpClient 改为 owned 所有权。
  • call_* 系列方法改为 pubcall_intocall_into_versionedcall_into_itemscall_into_list_or_objectcall_optionalcall_optional_versioned 现在均为公开方法。
  • 行情接口多 symbol 支持
    • get_kline(symbol: &str, ...)get_kline(symbols: &[&str], ...)
    • get_option_expiration(symbol: &str)get_option_expiration(symbols: &[&str])
    • get_option_chain(symbol: &str, expiry: &str)get_option_chain(items: &[(&str, &str)])
    • get_option_kline(identifier: &str, period: &str)get_option_kline(identifiers: &[&str], period: &str)
    • BarsByPageRequest.symbol: Option<String>symbols: Option<Vec<String>>