Skip to content

KaiserY/sharers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharers

Sharers is an Arrow-native Rust financial data interface library.

Workspace

This repository uses a Rust 2024 virtual workspace with resolver 3.

  • crates/sharers: public facade crate published as sharers.
  • crates/sharers-core: minimal endpoint, schema, provider, market, error, and transport contracts with no Arrow, Polars, HTTP client, or i18n runtime.
  • crates/sharers-arrow: high-performance Arrow-backed DataSet, schema conversion, and zero-copy ownership transfer for RecordBatch values.
  • crates/sharers-providers: HTTP transport and provider parsers. The transport boundary returns raw bytes::Bytes; hot parsers borrow wire JSON where possible, parse numeric text through lexical-core, and materialize directly into Arrow builders.
  • crates/sharers-derive: procedural macros for schema/request/endpoint boilerplate.
  • crates/sharers-i18n: optional include-str backed localization catalogs.
  • crates/sharers-polars: optional DataFrame/output compatibility layer for Polars, compatibility-view column aliases, and future localized labels.

Current Slice

The current implementation focuses on an Eastmoney vertical slice that exercises K-line, spot quote, fund quote, index quote, and board-list schemas while keeping the provider hot path Arrow-first.

  • stock_zh_a_hist
  • fund_etf_hist_em
  • stock_zh_index_daily_em
  • stock_zh_a_hist_min_em
  • stock_zh_a_spot_em
  • stock_sh_a_spot_em
  • stock_sz_a_spot_em
  • stock_bj_a_spot_em
  • stock_zh_index_spot_em
  • fund_lof_spot_em
  • fund_etf_spot_em
  • stock_board_industry_name_em
  • stock_board_concept_name_em

Check

cargo fmt
cargo check --workspace --all-targets
cargo test --workspace --all-targets
cargo run -p xtask -- help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages