/build/rpc / pricing / diagnostics
pricing.diagnostics.scan
pricing.diagnostics.scan ( "contract_type" "min_severity" limit "report_asset" ) Scan all repo and forward contracts for pricing warnings Returns contracts sorted by severity (CRITICAL first) Arguments: 1. contract_type (string, optional, default="all") Filter: 'all', 'repo', or 'forward' 2. min_severity (string, optional, default="INFO") Minimum severity: 'INFO', 'WARNING', 'CRITICAL' 3. limit (numeric, optional, default=50) Maximum number of contracts to return 4. report_asset (string, optional, default="") Reporting currency (empty for TSC) Result: [ (json array) Array of contracts with warnings { (json object) "contract_type" : "str", (string) 'repo' or 'forward' "contract_id" : "hex", (string) Registry contract ID "mtm_value" : n, (numeric) Mark-to-market value in reporting currency "warnings" : [ (json array) Array of warnings { (json object) "severity" : "str", (string) WARNING, CRITICAL, INFO "category" : "str", (string) coverage, deadline, market_data, model "message" : "str", (string) Human-readable message "threshold" : n (numeric, optional) Threshold value if applicable }, ... ] }, ... ] Examples: > bitcoin-cli pricing.diagnostics.scan "all" "CRITICAL" 20 > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "pricing.diagnostics.scan", "params": ["repo", "WARNING", 10]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
pricing.diagnostics.scan(contract_type?: string, min_severity?: string, limit?: number, report_asset?: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"pricing.diagnostics.scan","params":["all","INFO",50,""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| contract_type | string | — | Filter: 'all', 'repo', or 'forward' |
| min_severity | string | — | Minimum severity: 'INFO', 'WARNING', 'CRITICAL' |
| limit | number | — | Maximum number of contracts to return |
| report_asset | string | — | Reporting currency (empty for TSC) |
Result
Type: any
[ (json array) Array of contracts with warnings { (json object) "contract_type" : "str", (string) 'repo' or 'forward' "contract_id" : "hex", (string) Registry contract ID "mtm_value" : n, (numeric) Mark-to-market value in reporting currency "warnings" : [ (json array) Array of warnings { (json object) "severity" : "str", (string) WARNING, CRITICAL, INFO "category" : "str", (string) coverage, deadline, market_data, model "message" : "str", (string) Human-readable message "threshold" : n (numeric, optional) Threshold value if applicable }, ... ] }, ... ]
Source: services/core-node/bcore/src/wallet/pricing/rpc/pricing_diagnostics.cpp:43
C++ symbol: pricing_diagnostics_scan