rust 1,863,570 · typescript 235,774 · javascript 133,179 · python 20,426 · 6,416 files · digest 72c4f5c61f73 · built in 1.7 s · crystals off
crates/cre8-app-provider/src/poller/instrument_catalog.rs
Items
const MAX_STEP_DECIMALS const KRAKEN_ASSET_ALIASES const BITFINEX_ASSET_ALIASES const FAKE_VENUE_CATALOG const VENUE_CATALOG_SPECS const DERIVATIVE_CATALOG_SPECS enum CatalogFormat struct VenueCatalogSpec impl VenueCatalogSpec enum InstrumentStatus impl InstrumentStatus enum InstrumentKind impl InstrumentKind impl From for InstrumentKind struct ExchangeInstrument struct ParsedCatalog struct InstrumentCatalog impl InstrumentCatalog struct RowFields struct RowTerms impl RowFields type CatalogRow const COINBASE_FIXTURE const BINANCE_FIXTURE const BINANCE_US_FIXTURE const KRAKEN_FIXTURE const BITSTAMP_FIXTURE const KUCOIN_FIXTURE const OKX_FIXTURE const GATEIO_FIXTURE const BITFINEX_FIXTURE const FIXTURE_MANIFEST
Functions
By call-graph weight (PageRank; 1.0 is the average function). 92 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| canonical_assetsrc/poller/instrument_catalog.rs:476 | fn | 4 | 1 | 20 | 1 | 9.8 | |
| lookup_aliassrc/poller/instrument_catalog.rs:664 | fn | 3 | 1 | 2 | 0 | 9.3 | |
| envelope_errorsrc/poller/instrument_catalog.rs:1283 | fn | 6 | 2 | 13 | 1 | 4.3 | |
| parse_catalogsrc/poller/instrument_catalog.rs:506 | fn | 17 | 3 | 2 | 2 | 3.7 | |
| parse_catalog_textsrc/poller/instrument_catalog.rs:495 | fn | 6 | 1 | 7 | 1 | 3.7 | |
| canonical_decimalsrc/poller/instrument_catalog.rs:1317 | fn | 16 | 7 | 3 | 0 | 3 | |
| instrument_id_forsrc/poller/instrument_catalog.rs:456 | fn | 3 | 1 | 4 | 0 | 2.7 | |
| decimal_valuesrc/poller/instrument_catalog.rs:1294 | fn | 7 | 3 | 2 | 1 | 2.6 | |
| venue_catalog_specsrc/poller/instrument_catalog.rs:461 | fn | 4 | 1 | 9 | 0 | 2.4 | |
| decimal_fieldsrc/poller/instrument_catalog.rs:1290 | fn | 3 | 1 | 10 | 1 | 2.1 | |
| RowFields::into_instrumentsrc/poller/instrument_catalog.rs:708 | method | 38 | 6 | 1 | 3 | 2.1 | |
| catalog_rowssrc/poller/instrument_catalog.rs:750 | fn | 19 | 12 | 1 | 12 | 2.1 | |
| status_wordsrc/poller/instrument_catalog.rs:1268 | fn | 3 | 1 | 7 | 0 | 2 | |
| derivative_catalog_specssrc/poller/instrument_catalog.rs:467 | fn | 4 | 1 | 5 | 0 | 2 | |
| InstrumentCatalog::index_symbolssrc/poller/instrument_catalog.rs:622 | method | 15 | 3 | 2 | 3 | 2 | |
| parse_fixturesrc/poller/instrument_catalog.rs:1350 | fn | 4 | 1 | 11 | 2 | 1.9 | |
| listingsrc/poller/instrument_catalog.rs:1362 | fn | 7 | 1 | 10 | 0 | 1.8 | |
| assert_listingsrc/poller/instrument_catalog.rs:1370 | fn | 13 | 1 | 10 | 0 | 1.8 | |
| split_pairsrc/poller/instrument_catalog.rs:483 | fn | 10 | 4 | 7 | 0 | 1.7 | |
| exact_symbol_keysrc/poller/instrument_catalog.rs:647 | fn | 3 | 1 | 2 | 0 | 1.7 | |
| InstrumentCatalog::getsrc/poller/instrument_catalog.rs:588 | method | 9 | 1 | 1 | 2 | 1.5 | |
| VenueCatalogSpec::parse_offlinesrc/poller/instrument_catalog.rs:280 | method | 3 | 1 | 5 | 1 | 1.4 | |
| InstrumentCatalog::insertsrc/poller/instrument_catalog.rs:557 | method | 12 | 2 | 1 | 2 | 1.3 | |
| InstrumentCatalog::base_quotesrc/poller/instrument_catalog.rs:599 | method | 3 | 1 | 3 | 1 | 1.1 | |
| venue_assetsrc/poller/instrument_catalog.rs:670 | fn | 8 | 2 | 1 | 2 | 1.1 | |
| InstrumentCatalog::rebuild_symbol_indexsrc/poller/instrument_catalog.rs:638 | method | 7 | 2 | 1 | 1 | 1.1 | |
| claim_symbolsrc/poller/instrument_catalog.rs:653 | fn | 10 | 2 | 1 | 0 | 1.1 | |
| ensure_venue_codesrc/poller/instrument_catalog.rs:1273 | fn | 7 | 2 | 3 | 1 | 1 | |
| InstrumentCatalog::insert_allsrc/poller/instrument_catalog.rs:549 | method | 5 | 2 | 2 | 1 | 1 | |
| InstrumentCatalog::from_instrumentssrc/poller/instrument_catalog.rs:543 | method | 5 | 1 | 5 | 2 | 1 | |
| InstrumentCatalog::instrumentssrc/poller/instrument_catalog.rs:578 | method | 3 | 1 | 3 | 0 | 0.9 | |
| InstrumentCatalog::newsrc/poller/instrument_catalog.rs:539 | method | 3 | 1 | 1 | 0 | 0.9 | |
| decimals_stepsrc/poller/instrument_catalog.rs:1304 | fn | 8 | 3 | 3 | 0 | 0.9 | |
| InstrumentKind::derivativesrc/poller/instrument_catalog.rs:368 | method | 8 | 4 | 2 | 0 | 0.9 | |
| millis_fieldsrc/poller/instrument_catalog.rs:1164 | fn | 9 | 3 | 3 | 0 | 0.9 | |
| InstrumentKind::fromsrc/poller/instrument_catalog.rs:379 | trait impl | 7 | 3 | 1 | 0 | 0.8 | |
| binance_filtersrc/poller/instrument_catalog.rs:836 | fn | 7 | 1 | 2 | 0 | 0.8 | |
| okx_statussrc/poller/instrument_catalog.rs:983 | fn | 8 | 4 | 2 | 1 | 0.8 | |
| coinbase_rowsrc/poller/instrument_catalog.rs:775 | fn | 27 | 12 | 1 | 4 | 0.8 | |
| binance_rowsrc/poller/instrument_catalog.rs:809 | fn | 26 | 4 | 1 | 4 | 0.8 | |
| kraken_rowsrc/poller/instrument_catalog.rs:852 | fn | 30 | 4 | 1 | 6 | 0.8 | |
| bitstamp_rowsrc/poller/instrument_catalog.rs:888 | fn | 23 | 3 | 1 | 5 | 0.8 | |
| binance_futures_rowsrc/poller/instrument_catalog.rs:1119 | fn | 43 | 9 | 1 | 5 | 0.8 | |
| gateio_rowsrc/poller/instrument_catalog.rs:1179 | fn | 21 | 4 | 1 | 4 | 0.8 | |
| bitfinex_rowsrc/poller/instrument_catalog.rs:1210 | fn | 34 | 6 | 1 | 2 | 0.8 | |
| canonical_rowsrc/poller/instrument_catalog.rs:1251 | fn | 16 | 1 | 1 | 4 | 0.8 | |
| InstrumentKind::parsesrc/poller/instrument_catalog.rs:356 | method | 6 | 2 | 2 | 2 | 0.7 | |
| kucoin_rowsrc/poller/instrument_catalog.rs:931 | fn | 22 | 3 | 1 | 2 | 0.7 | |
| okx_rowsrc/poller/instrument_catalog.rs:960 | fn | 22 | 2 | 1 | 3 | 0.7 | |
| okx_derivative_rowsrc/poller/instrument_catalog.rs:1000 | fn | 46 | 8 | 1 | 7 | 0.7 | |
| deribit_rowsrc/poller/instrument_catalog.rs:1059 | fn | 51 | 11 | 1 | 4 | 0.7 | |
| InstrumentStatus::from_labelsrc/poller/instrument_catalog.rs:318 | method | 10 | 6 | 1 | 0 | 0.7 | |
| fake_catalogsrc/poller/instrument_catalog.rs:1355 | fn | 6 | 1 | 2 | 2 | 0.6 | |
| pairsrc/poller/instrument_catalog.rs:1384 | fn | 3 | 1 | 2 | 0 | 0.6 | |
| coinbase_rowssrc/poller/instrument_catalog.rs:770 | fn | 4 | 1 | 1 | 2 | 0.6 | |
| binance_rowssrc/poller/instrument_catalog.rs:803 | fn | 5 | 1 | 1 | 2 | 0.6 | |
| kraken_rowssrc/poller/instrument_catalog.rs:844 | fn | 7 | 2 | 1 | 2 | 0.6 | |
| bitstamp_rowssrc/poller/instrument_catalog.rs:883 | fn | 4 | 1 | 1 | 2 | 0.6 | |
| kucoin_rowssrc/poller/instrument_catalog.rs:925 | fn | 5 | 1 | 1 | 3 | 0.6 | |
| okx_rowssrc/poller/instrument_catalog.rs:954 | fn | 5 | 1 | 1 | 3 | 0.6 | |
| okx_derivative_rowssrc/poller/instrument_catalog.rs:992 | fn | 5 | 1 | 1 | 3 | 0.6 | |
| deribit_rowssrc/poller/instrument_catalog.rs:1047 | fn | 8 | 2 | 1 | 3 | 0.6 | |
| binance_futures_rowssrc/poller/instrument_catalog.rs:1111 | fn | 5 | 1 | 1 | 2 | 0.6 | |
| gateio_rowssrc/poller/instrument_catalog.rs:1174 | fn | 4 | 1 | 1 | 2 | 0.6 | |
| bitfinex_rowssrc/poller/instrument_catalog.rs:1201 | fn | 8 | 1 | 1 | 2 | 0.6 | |
| canonical_rowssrc/poller/instrument_catalog.rs:1245 | fn | 5 | 1 | 1 | 2 | 0.6 | |
| bitstamp_minimum_ordersrc/poller/instrument_catalog.rs:915 | fn | 9 | 3 | 1 | 3 | 0.6 | |
| InstrumentCatalog::base_quote_or_elsesrc/poller/instrument_catalog.rs:607 | method | 8 | 1 | 1 | 1 | 0.6 | |
| InstrumentCatalog::get_by_idsrc/poller/instrument_catalog.rs:582 | method | 3 | 1 | 1 | 0 | 0.6 | |
| InstrumentCatalog::instruments_for_pairsrc/poller/instrument_catalog.rs:617 | method | 4 | 2 | 1 | 1 | 0.6 | |
| InstrumentStatus::as_strsrc/poller/instrument_catalog.rs:305 | method | 10 | 6 | 0 | 0 | 0.5 | |
| InstrumentStatus::is_tradingsrc/poller/instrument_catalog.rs:329 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InstrumentKind::as_strsrc/poller/instrument_catalog.rs:346 | method | 8 | 4 | 0 | 0 | 0.5 | |
| InstrumentKind::is_derivativesrc/poller/instrument_catalog.rs:363 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InstrumentCatalog::lensrc/poller/instrument_catalog.rs:570 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InstrumentCatalog::is_emptysrc/poller/instrument_catalog.rs:574 | method | 3 | 1 | 0 | 0 | 0.5 | |
| parses_coinbase_fixturesrc/poller/instrument_catalog.rs:1389 | fn | 21 | 1 | 0 | 3 | 0.5 | |
| parses_binance_fixturesrc/poller/instrument_catalog.rs:1412 | fn | 20 | 1 | 0 | 3 | 0.5 | |
| parses_binance_us_fixturesrc/poller/instrument_catalog.rs:1434 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| parses_kraken_fixturesrc/poller/instrument_catalog.rs:1452 | fn | 18 | 1 | 0 | 3 | 0.5 | |
| parses_bitstamp_fixturesrc/poller/instrument_catalog.rs:1472 | fn | 19 | 1 | 0 | 3 | 0.5 | |
| parses_kucoin_fixturesrc/poller/instrument_catalog.rs:1493 | fn | 17 | 1 | 0 | 3 | 0.5 | |
| parses_okx_fixturesrc/poller/instrument_catalog.rs:1512 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| parses_gateio_fixturesrc/poller/instrument_catalog.rs:1530 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| parses_bitfinex_fixturesrc/poller/instrument_catalog.rs:1548 | fn | 23 | 1 | 0 | 4 | 0.5 | |
| canonical_asset_maps_kraken_aliasessrc/poller/instrument_catalog.rs:1573 | fn | 27 | 3 | 0 | 1 | 0.5 | |
| instrument_id_is_venue_scopedsrc/poller/instrument_catalog.rs:1602 | fn | 30 | 1 | 0 | 6 | 0.5 | |
| split_uses_catalog_not_suffixsrc/poller/instrument_catalog.rs:1634 | fn | 19 | 1 | 0 | 5 | 0.5 | |
| fake_venue_spec_parsessrc/poller/instrument_catalog.rs:1655 | fn | 22 | 2 | 0 | 5 | 0.5 | |
| fixture_manifest_dates_every_venuesrc/poller/instrument_catalog.rs:1679 | fn | 26 | 4 | 0 | 0 | 0.5 | |
| venue_error_envelopes_are_refusedsrc/poller/instrument_catalog.rs:1707 | fn | 17 | 1 | 0 | 2 | 0.5 | |
| colliding_spellings_are_not_guessedsrc/poller/instrument_catalog.rs:1726 | fn | 23 | 1 | 0 | 6 | 0.5 |
Source not readable from this process.