vectie/moonfish/data does not have a README file
pub(all) struct MarketDataIssue {
kind : MarketDataIssueKind
path : String
message : String
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketFetchResult {
plan : MarketSourcePlan
snapshot : KlineSnapshot?
status : MarketFetchStatus
issues : Array[MarketDataIssue]
summary : String
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketIngestInput {
request : MarketSourceRequest
snapshot : KlineSnapshot
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketRefreshInput {
request : MarketSourceRequest
now_ms : Int64
newest_bar_open_ms : Int64?
head_bar_closed : Bool
user_refresh_ms : Int
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketRefreshPlan {
request : MarketSourceRequest
timeframe_seconds : Int?
effective_refresh_ms : Int
snapshot_cache_ttl_seconds : Int
wait_seconds : Int
action : MarketRefreshAction
safe_to_request_snapshot : Bool
can_run_analysis_now : Bool
summary : String
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketSourcePlan {
request : MarketSourceRequest
source_id : String
adapter : String
raw_path : String
availability : MarketSourceAvailability
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct MarketSourceRequest {
data_source : DataSource
symbol : String
timeframe : String
limit : Int
captured_at_ms : Int64
} derive(Eq, ToJson, Debug, FromJson)fn market_data_issue(kind : MarketDataIssueKind, path : String, message : String) -> MarketDataIssuefn market_ingest_input(request : MarketSourceRequest, snapshot : KlineSnapshot) -> MarketIngestInputfn market_refresh_input(request : MarketSourceRequest, now_ms? : Int64, newest_bar_open_ms? : Int64, head_bar_closed? : Bool, user_refresh_ms? : Int) -> MarketRefreshInputfn market_source_request(data_source : DataSource, symbol : String, timeframe : String, limit? : Int, captured_at_ms? : Int64) -> MarketSourceRequestDependencies