1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Static (refresh-on-read) resources backed by `deribit-http`.
//!
//! Each function maps one [`ResourceUri`] variant to a single upstream
//! HTTP call and returns the JSON payload verbatim. The MIME type
//! advertised in `resources/list` is `application/json`.
//!
//! [`ResourceUri`]: super::ResourceUri
use Value;
use crateAdapterContext;
use crateAdapterError;
/// Read the `deribit://currencies` resource — the supported-currencies
/// catalogue served by `public/get_currencies`.
///
/// # Errors
///
/// Returns whatever [`AdapterError`] the upstream HTTP call surfaces
/// (network, rate-limit, API).
pub async
/// Read the `deribit://instruments/{currency}` resource — every
/// instrument for the given currency. Mirrors
/// `public/get_instruments(currency, None, None)`: kind unfiltered,
/// expired excluded.
///
/// # Errors
///
/// Returns whatever [`AdapterError`] the upstream HTTP call surfaces.
pub async