Language

Choose a language

/build/rpc / pricing / market

pricing.market.status

pricing.market.status Get market data coverage and staleness summary Result: { (json object) "num_curves" : n, (numeric) Number of discount curves "num_fx_quotes" : n, (numeric) Number of FX quotes "num_vol_surfaces" : n, (numeric) Number of vol surfaces "num_correlation_matrices" : n, (numeric) Number of correlation matrices "oldest_curve_age_hours" : n, (numeric) Age of oldest curve in hours "oldest_fx_age_hours" : n, (numeric) Age of oldest FX quote in hours "oldest_vol_age_hours" : n, (numeric) Age of oldest vol surface in hours "oldest_corr_age_hours" : n, (numeric) Age of oldest correlation matrix in hours "warnings" : [ (json array) Aggregated warnings { (json object) Warning "severity" : "str", (string) info|warning|critical "category" : "str", (string) coverage|deadline|market_data|model|im|fx|interpolation "message" : "str", (string) Warning message "threshold" : n (numeric, optional) Threshold value if applicable }, ... ] } Examples: > bitcoin-cli pricing.market.status > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "pricing.market.status", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

pricing.market.status() → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"pricing.market.status","params":[]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

No parameters.

Result

Type:  any

{ (json object) "num_curves" : n, (numeric) Number of discount curves "num_fx_quotes" : n, (numeric) Number of FX quotes "num_vol_surfaces" : n, (numeric) Number of vol surfaces "num_correlation_matrices" : n, (numeric) Number of correlation matrices "oldest_curve_age_hours" : n, (numeric) Age of oldest curve in hours "oldest_fx_age_hours" : n, (numeric) Age of oldest FX quote in hours "oldest_vol_age_hours" : n, (numeric) Age of oldest vol surface in hours "oldest_corr_age_hours" : n, (numeric) Age of oldest correlation matrix in hours "warnings" : [ (json array) Aggregated warnings { (json object) Warning "severity" : "str", (string) info|warning|critical "category" : "str", (string) coverage|deadline|market_data|model|im|fx|interpolation "message" : "str", (string) Warning message "threshold" : n (numeric, optional) Threshold value if applicable }, ... ] }

Source: services/core-node/bcore/src/wallet/pricing/rpc/pricing_market.cpp:355

C++ symbol: pricing_market_status