diff --git a/examples/api_doc_examples/blockchain-metadata/tagged-entities.py b/examples/api_doc_examples/blockchain-metadata/tagged-entities.py new file mode 100644 index 0000000..ac5e93b --- /dev/null +++ b/examples/api_doc_examples/blockchain-metadata/tagged-entities.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.blockchain_metadata_tagged_entities().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-metadata/tags.py b/examples/api_doc_examples/blockchain-metadata/tags.py new file mode 100644 index 0000000..f5b44ef --- /dev/null +++ b/examples/api_doc_examples/blockchain-metadata/tags.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.blockchain_metadata_tags().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/accounts.py b/examples/api_doc_examples/blockchain-v2/{asset}/accounts.py new file mode 100644 index 0000000..09036e5 --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/accounts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_accounts_v2(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/accounts/{account}/balance-updates.py b/examples/api_doc_examples/blockchain-v2/{asset}/accounts/{account}/balance-updates.py new file mode 100644 index 0000000..847b98a --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/accounts/{account}/balance-updates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_balance_updates_for_account_v2(asset='', account='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/balance-updates.py b/examples/api_doc_examples/blockchain-v2/{asset}/balance-updates.py new file mode 100644 index 0000000..6580b85 --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/balance-updates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_balance_updates_v2(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/blocks.py b/examples/api_doc_examples/blockchain-v2/{asset}/blocks.py new file mode 100644 index 0000000..dd827c6 --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/blocks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_blocks_v2(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}.py b/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}.py new file mode 100644 index 0000000..b6227de --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_block_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}/transactions/{txid}.py b/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}/transactions/{txid}.py new file mode 100644 index 0000000..cca0a2a --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/blocks/{block_hash}/transactions/{txid}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_transaction_for_block_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/sub-accounts.py b/examples/api_doc_examples/blockchain-v2/{asset}/sub-accounts.py new file mode 100644 index 0000000..c572cc6 --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/sub-accounts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_sub_accounts_v2(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/transactions.py b/examples/api_doc_examples/blockchain-v2/{asset}/transactions.py new file mode 100644 index 0000000..fed7237 --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/transactions.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_transactions_v2(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain-v2/{asset}/transactions/{txid}.py b/examples/api_doc_examples/blockchain-v2/{asset}/transactions/{txid}.py new file mode 100644 index 0000000..756100a --- /dev/null +++ b/examples/api_doc_examples/blockchain-v2/{asset}/transactions/{txid}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_transaction_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/accounts.py b/examples/api_doc_examples/blockchain/{asset}/accounts.py new file mode 100644 index 0000000..b9c322a --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/accounts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_accounts(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/balance-updates.py b/examples/api_doc_examples/blockchain/{asset}/balance-updates.py new file mode 100644 index 0000000..0369056 --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/balance-updates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_balance_updates(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/blocks.py b/examples/api_doc_examples/blockchain/{asset}/blocks.py new file mode 100644 index 0000000..40f2c66 --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/blocks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_blocks(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}.py b/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}.py new file mode 100644 index 0000000..c7da307 --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_block().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}/transactions/{txid}.py b/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}/transactions/{txid}.py new file mode 100644 index 0000000..f59d26b --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/blocks/{block_hash}/transactions/{txid}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_transaction_for_block().first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/transaction-tracker.py b/examples/api_doc_examples/blockchain/{asset}/transaction-tracker.py new file mode 100644 index 0000000..f8395e1 --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/transaction-tracker.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_transaction_tracker(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/transactions.py b/examples/api_doc_examples/blockchain/{asset}/transactions.py new file mode 100644 index 0000000..833127d --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/transactions.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_list_of_transactions(asset='').first_page() +print(data) diff --git a/examples/api_doc_examples/blockchain/{asset}/transactions/{txid}.py b/examples/api_doc_examples/blockchain/{asset}/transactions/{txid}.py new file mode 100644 index 0000000..e0d18ec --- /dev/null +++ b/examples/api_doc_examples/blockchain/{asset}/transactions/{txid}.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_full_transaction().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/asset-chains.py b/examples/api_doc_examples/catalog-all-v2/asset-chains.py new file mode 100644 index 0000000..e763a2c --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/asset-chains.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_chains_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/asset-metrics.py b/examples/api_doc_examples/catalog-all-v2/asset-metrics.py new file mode 100644 index 0000000..901c0d8 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/exchange-asset-metrics.py b/examples/api_doc_examples/catalog-all-v2/exchange-asset-metrics.py new file mode 100644 index 0000000..2a8964d --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchange_asset_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/exchange-metrics.py b/examples/api_doc_examples/catalog-all-v2/exchange-metrics.py new file mode 100644 index 0000000..8e7da86 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchange_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/index-candles.py b/examples/api_doc_examples/catalog-all-v2/index-candles.py new file mode 100644 index 0000000..8046a7c --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/index-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_index_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/index-levels.py b/examples/api_doc_examples/catalog-all-v2/index-levels.py new file mode 100644 index 0000000..54e7f15 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/index-levels.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_index_levels_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/institution-metrics.py b/examples/api_doc_examples/catalog-all-v2/institution-metrics.py new file mode 100644 index 0000000..c378e00 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_institution_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-candles.py b/examples/api_doc_examples/catalog-all-v2/market-candles.py new file mode 100644 index 0000000..379c26d --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-contract-prices.py b/examples/api_doc_examples/catalog-all-v2/market-contract-prices.py new file mode 100644 index 0000000..58fbff2 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-contract-prices.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_contract_prices_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-funding-rates-predicted.py b/examples/api_doc_examples/catalog-all-v2/market-funding-rates-predicted.py new file mode 100644 index 0000000..0952dd4 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-funding-rates-predicted.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_funding_rates_predicted_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-funding-rates.py b/examples/api_doc_examples/catalog-all-v2/market-funding-rates.py new file mode 100644 index 0000000..46906e7 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-funding-rates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_funding_rates_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-greeks.py b/examples/api_doc_examples/catalog-all-v2/market-greeks.py new file mode 100644 index 0000000..16c14be --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-greeks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_greeks_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-implied-volatility.py b/examples/api_doc_examples/catalog-all-v2/market-implied-volatility.py new file mode 100644 index 0000000..ae9556d --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-implied-volatility.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_implied_volatility_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-liquidations.py b/examples/api_doc_examples/catalog-all-v2/market-liquidations.py new file mode 100644 index 0000000..71b87c8 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_liquidations_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-metrics.py b/examples/api_doc_examples/catalog-all-v2/market-metrics.py new file mode 100644 index 0000000..11dfed3 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-openinterest.py b/examples/api_doc_examples/catalog-all-v2/market-openinterest.py new file mode 100644 index 0000000..af47fe7 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_open_interest_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-orderbooks.py b/examples/api_doc_examples/catalog-all-v2/market-orderbooks.py new file mode 100644 index 0000000..276e6b0 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_orderbooks_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-quotes.py b/examples/api_doc_examples/catalog-all-v2/market-quotes.py new file mode 100644 index 0000000..a4ff6c4 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_quotes_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/market-trades.py b/examples/api_doc_examples/catalog-all-v2/market-trades.py new file mode 100644 index 0000000..5b83631 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_trades_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/mempool-feerates.py b/examples/api_doc_examples/catalog-all-v2/mempool-feerates.py new file mode 100644 index 0000000..53b0d9a --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/mempool-feerates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_mempool_feerates_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/mining-pool-tips-summary.py b/examples/api_doc_examples/catalog-all-v2/mining-pool-tips-summary.py new file mode 100644 index 0000000..f67cc96 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/mining-pool-tips-summary.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_mining_pool_tips_summaries_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/pair-candles.py b/examples/api_doc_examples/catalog-all-v2/pair-candles.py new file mode 100644 index 0000000..ae7f7d5 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/pair-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_pair_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/pair-metrics.py b/examples/api_doc_examples/catalog-all-v2/pair-metrics.py new file mode 100644 index 0000000..240f604 --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_pair_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all-v2/transaction-tracker.py b/examples/api_doc_examples/catalog-all-v2/transaction-tracker.py new file mode 100644 index 0000000..f38c09d --- /dev/null +++ b/examples/api_doc_examples/catalog-all-v2/transaction-tracker.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_transaction_tracker_assets_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/asset-alerts.py b/examples/api_doc_examples/catalog-all/asset-alerts.py new file mode 100644 index 0000000..baa376d --- /dev/null +++ b/examples/api_doc_examples/catalog-all/asset-alerts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_alerts().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/asset-chains.py b/examples/api_doc_examples/catalog-all/asset-chains.py new file mode 100644 index 0000000..8067acc --- /dev/null +++ b/examples/api_doc_examples/catalog-all/asset-chains.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_chains().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/asset-metrics.py b/examples/api_doc_examples/catalog-all/asset-metrics.py new file mode 100644 index 0000000..8af87c8 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/assets.py b/examples/api_doc_examples/catalog-all/assets.py new file mode 100644 index 0000000..5198d35 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/exchange-asset-metrics.py b/examples/api_doc_examples/catalog-all/exchange-asset-metrics.py new file mode 100644 index 0000000..e868af0 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchange_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/exchange-assets.py b/examples/api_doc_examples/catalog-all/exchange-assets.py new file mode 100644 index 0000000..40f9099 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/exchange-assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchange_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/exchange-metrics.py b/examples/api_doc_examples/catalog-all/exchange-metrics.py new file mode 100644 index 0000000..0a73c26 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchange_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/exchanges.py b/examples/api_doc_examples/catalog-all/exchanges.py new file mode 100644 index 0000000..5d9c856 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/exchanges.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_exchanges().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/index-candles.py b/examples/api_doc_examples/catalog-all/index-candles.py new file mode 100644 index 0000000..b9dfdf5 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/index-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_index_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/indexes.py b/examples/api_doc_examples/catalog-all/indexes.py new file mode 100644 index 0000000..b87b520 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/indexes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_indexes().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/institution-metrics.py b/examples/api_doc_examples/catalog-all/institution-metrics.py new file mode 100644 index 0000000..a517ccc --- /dev/null +++ b/examples/api_doc_examples/catalog-all/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_institution_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/institutions.py b/examples/api_doc_examples/catalog-all/institutions.py new file mode 100644 index 0000000..5447457 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/institutions.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_institutions().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-candles.py b/examples/api_doc_examples/catalog-all/market-candles.py new file mode 100644 index 0000000..751eafd --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-contract-prices.py b/examples/api_doc_examples/catalog-all/market-contract-prices.py new file mode 100644 index 0000000..c72a6dc --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-contract-prices.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_contract_prices().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-funding-rates.py b/examples/api_doc_examples/catalog-all/market-funding-rates.py new file mode 100644 index 0000000..fb0396f --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-funding-rates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_funding_rates().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-greeks.py b/examples/api_doc_examples/catalog-all/market-greeks.py new file mode 100644 index 0000000..c872305 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-greeks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_greeks().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-implied-volatility.py b/examples/api_doc_examples/catalog-all/market-implied-volatility.py new file mode 100644 index 0000000..fe34b54 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-implied-volatility.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_implied_volatility().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-liquidations.py b/examples/api_doc_examples/catalog-all/market-liquidations.py new file mode 100644 index 0000000..8d57128 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_liquidations().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-metrics.py b/examples/api_doc_examples/catalog-all/market-metrics.py new file mode 100644 index 0000000..cc4ae19 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-openinterest.py b/examples/api_doc_examples/catalog-all/market-openinterest.py new file mode 100644 index 0000000..cce0dfa --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_open_interest().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-orderbooks.py b/examples/api_doc_examples/catalog-all/market-orderbooks.py new file mode 100644 index 0000000..083dba0 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_orderbooks().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-quotes.py b/examples/api_doc_examples/catalog-all/market-quotes.py new file mode 100644 index 0000000..15000a2 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_quotes().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/market-trades.py b/examples/api_doc_examples/catalog-all/market-trades.py new file mode 100644 index 0000000..3137124 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_market_trades().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/markets.py b/examples/api_doc_examples/catalog-all/markets.py new file mode 100644 index 0000000..b2edc68 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/markets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_markets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/mempool-feerates.py b/examples/api_doc_examples/catalog-all/mempool-feerates.py new file mode 100644 index 0000000..f18d119 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/mempool-feerates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_mempool_feerates().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/metrics.py b/examples/api_doc_examples/catalog-all/metrics.py new file mode 100644 index 0000000..17bd787 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/mining-pool-tips-summary.py b/examples/api_doc_examples/catalog-all/mining-pool-tips-summary.py new file mode 100644 index 0000000..80dfe1b --- /dev/null +++ b/examples/api_doc_examples/catalog-all/mining-pool-tips-summary.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_mining_pool_tips_summaries().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/pair-candles.py b/examples/api_doc_examples/catalog-all/pair-candles.py new file mode 100644 index 0000000..247ab03 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/pair-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_pair_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/pair-metrics.py b/examples/api_doc_examples/catalog-all/pair-metrics.py new file mode 100644 index 0000000..c6b5ac8 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_pair_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/pairs.py b/examples/api_doc_examples/catalog-all/pairs.py new file mode 100644 index 0000000..f19e1b9 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/pairs.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_asset_pairs().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-all/transaction-tracker.py b/examples/api_doc_examples/catalog-all/transaction-tracker.py new file mode 100644 index 0000000..576d9f6 --- /dev/null +++ b/examples/api_doc_examples/catalog-all/transaction-tracker.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_full_transaction_tracker_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/asset-chains.py b/examples/api_doc_examples/catalog-v2/asset-chains.py new file mode 100644 index 0000000..608a1f1 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/asset-chains.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_chains_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/asset-metrics.py b/examples/api_doc_examples/catalog-v2/asset-metrics.py new file mode 100644 index 0000000..320da3e --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/exchange-asset-metrics.py b/examples/api_doc_examples/catalog-v2/exchange-asset-metrics.py new file mode 100644 index 0000000..ab839d3 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchange_asset_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/exchange-metrics.py b/examples/api_doc_examples/catalog-v2/exchange-metrics.py new file mode 100644 index 0000000..fd251e7 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchange_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/index-candles.py b/examples/api_doc_examples/catalog-v2/index-candles.py new file mode 100644 index 0000000..1c14c7f --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/index-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_index_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/index-levels.py b/examples/api_doc_examples/catalog-v2/index-levels.py new file mode 100644 index 0000000..3785b93 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/index-levels.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_index_levels_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/institution-metrics.py b/examples/api_doc_examples/catalog-v2/institution-metrics.py new file mode 100644 index 0000000..fc81816 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_institution_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-candles.py b/examples/api_doc_examples/catalog-v2/market-candles.py new file mode 100644 index 0000000..fc9fc69 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-contract-prices.py b/examples/api_doc_examples/catalog-v2/market-contract-prices.py new file mode 100644 index 0000000..7f5b8d6 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-contract-prices.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_contract_prices_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-funding-rates-predicted.py b/examples/api_doc_examples/catalog-v2/market-funding-rates-predicted.py new file mode 100644 index 0000000..23a5de1 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-funding-rates-predicted.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_funding_rates_predicted_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-funding-rates.py b/examples/api_doc_examples/catalog-v2/market-funding-rates.py new file mode 100644 index 0000000..1319218 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-funding-rates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_funding_rates_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-greeks.py b/examples/api_doc_examples/catalog-v2/market-greeks.py new file mode 100644 index 0000000..ac906e2 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-greeks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_greeks_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-implied-volatility.py b/examples/api_doc_examples/catalog-v2/market-implied-volatility.py new file mode 100644 index 0000000..06694a9 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-implied-volatility.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_implied_volatility_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-liquidations.py b/examples/api_doc_examples/catalog-v2/market-liquidations.py new file mode 100644 index 0000000..4e7f717 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_liquidations_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-metrics.py b/examples/api_doc_examples/catalog-v2/market-metrics.py new file mode 100644 index 0000000..a87e31e --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-openinterest.py b/examples/api_doc_examples/catalog-v2/market-openinterest.py new file mode 100644 index 0000000..8b2ee6d --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_open_interest_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-orderbooks.py b/examples/api_doc_examples/catalog-v2/market-orderbooks.py new file mode 100644 index 0000000..bf937e7 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_orderbooks_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-quotes.py b/examples/api_doc_examples/catalog-v2/market-quotes.py new file mode 100644 index 0000000..e642d06 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_quotes_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/market-trades.py b/examples/api_doc_examples/catalog-v2/market-trades.py new file mode 100644 index 0000000..3c5e261 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_trades_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/mempool-feerates.py b/examples/api_doc_examples/catalog-v2/mempool-feerates.py new file mode 100644 index 0000000..6e4c674 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/mempool-feerates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_mempool_feerates_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/mining-pool-tips-summary.py b/examples/api_doc_examples/catalog-v2/mining-pool-tips-summary.py new file mode 100644 index 0000000..49cd6dc --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/mining-pool-tips-summary.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_mining_pool_tips_summaries_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/pair-candles.py b/examples/api_doc_examples/catalog-v2/pair-candles.py new file mode 100644 index 0000000..b7cf56e --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/pair-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_pair_candles_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/pair-metrics.py b/examples/api_doc_examples/catalog-v2/pair-metrics.py new file mode 100644 index 0000000..b738812 --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_pair_metrics_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog-v2/transaction-tracker.py b/examples/api_doc_examples/catalog-v2/transaction-tracker.py new file mode 100644 index 0000000..cdc406f --- /dev/null +++ b/examples/api_doc_examples/catalog-v2/transaction-tracker.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_transaction_tracker_assets_v2().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/asset-alerts.py b/examples/api_doc_examples/catalog/asset-alerts.py new file mode 100644 index 0000000..02eb9ce --- /dev/null +++ b/examples/api_doc_examples/catalog/asset-alerts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_alerts().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/asset-chains.py b/examples/api_doc_examples/catalog/asset-chains.py new file mode 100644 index 0000000..58c112d --- /dev/null +++ b/examples/api_doc_examples/catalog/asset-chains.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_chains().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/asset-metrics.py b/examples/api_doc_examples/catalog/asset-metrics.py new file mode 100644 index 0000000..6ba277d --- /dev/null +++ b/examples/api_doc_examples/catalog/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/assets.py b/examples/api_doc_examples/catalog/assets.py new file mode 100644 index 0000000..e6ce4a8 --- /dev/null +++ b/examples/api_doc_examples/catalog/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/exchange-asset-metrics.py b/examples/api_doc_examples/catalog/exchange-asset-metrics.py new file mode 100644 index 0000000..b561d28 --- /dev/null +++ b/examples/api_doc_examples/catalog/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchange_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/exchange-assets.py b/examples/api_doc_examples/catalog/exchange-assets.py new file mode 100644 index 0000000..4232da0 --- /dev/null +++ b/examples/api_doc_examples/catalog/exchange-assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchange_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/exchange-metrics.py b/examples/api_doc_examples/catalog/exchange-metrics.py new file mode 100644 index 0000000..0e89c47 --- /dev/null +++ b/examples/api_doc_examples/catalog/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchange_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/exchanges.py b/examples/api_doc_examples/catalog/exchanges.py new file mode 100644 index 0000000..359fcf2 --- /dev/null +++ b/examples/api_doc_examples/catalog/exchanges.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_exchanges().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/index-candles.py b/examples/api_doc_examples/catalog/index-candles.py new file mode 100644 index 0000000..808695b --- /dev/null +++ b/examples/api_doc_examples/catalog/index-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_index_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/indexes.py b/examples/api_doc_examples/catalog/indexes.py new file mode 100644 index 0000000..48ce587 --- /dev/null +++ b/examples/api_doc_examples/catalog/indexes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_indexes().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/institution-metrics.py b/examples/api_doc_examples/catalog/institution-metrics.py new file mode 100644 index 0000000..37ba226 --- /dev/null +++ b/examples/api_doc_examples/catalog/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_institution_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/institutions.py b/examples/api_doc_examples/catalog/institutions.py new file mode 100644 index 0000000..8b088f9 --- /dev/null +++ b/examples/api_doc_examples/catalog/institutions.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_institutions().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-candles.py b/examples/api_doc_examples/catalog/market-candles.py new file mode 100644 index 0000000..e5f5256 --- /dev/null +++ b/examples/api_doc_examples/catalog/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-contract-prices.py b/examples/api_doc_examples/catalog/market-contract-prices.py new file mode 100644 index 0000000..5300e90 --- /dev/null +++ b/examples/api_doc_examples/catalog/market-contract-prices.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_contract_prices().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-funding-rates.py b/examples/api_doc_examples/catalog/market-funding-rates.py new file mode 100644 index 0000000..0f59887 --- /dev/null +++ b/examples/api_doc_examples/catalog/market-funding-rates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_funding_rates().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-greeks.py b/examples/api_doc_examples/catalog/market-greeks.py new file mode 100644 index 0000000..960ad5e --- /dev/null +++ b/examples/api_doc_examples/catalog/market-greeks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_greeks().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-implied-volatility.py b/examples/api_doc_examples/catalog/market-implied-volatility.py new file mode 100644 index 0000000..500f51d --- /dev/null +++ b/examples/api_doc_examples/catalog/market-implied-volatility.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_implied_volatility().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-liquidations.py b/examples/api_doc_examples/catalog/market-liquidations.py new file mode 100644 index 0000000..f6954ae --- /dev/null +++ b/examples/api_doc_examples/catalog/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_liquidations().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-metrics.py b/examples/api_doc_examples/catalog/market-metrics.py new file mode 100644 index 0000000..21a710b --- /dev/null +++ b/examples/api_doc_examples/catalog/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-openinterest.py b/examples/api_doc_examples/catalog/market-openinterest.py new file mode 100644 index 0000000..04c2c5b --- /dev/null +++ b/examples/api_doc_examples/catalog/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_open_interest().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-orderbooks.py b/examples/api_doc_examples/catalog/market-orderbooks.py new file mode 100644 index 0000000..871c6ea --- /dev/null +++ b/examples/api_doc_examples/catalog/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_orderbooks().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-quotes.py b/examples/api_doc_examples/catalog/market-quotes.py new file mode 100644 index 0000000..815e940 --- /dev/null +++ b/examples/api_doc_examples/catalog/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_quotes().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/market-trades.py b/examples/api_doc_examples/catalog/market-trades.py new file mode 100644 index 0000000..7773dbd --- /dev/null +++ b/examples/api_doc_examples/catalog/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_market_trades().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/markets.py b/examples/api_doc_examples/catalog/markets.py new file mode 100644 index 0000000..5820d4e --- /dev/null +++ b/examples/api_doc_examples/catalog/markets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_markets().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/mempool-feerates.py b/examples/api_doc_examples/catalog/mempool-feerates.py new file mode 100644 index 0000000..9343cec --- /dev/null +++ b/examples/api_doc_examples/catalog/mempool-feerates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_mempool_feerates().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/metrics.py b/examples/api_doc_examples/catalog/metrics.py new file mode 100644 index 0000000..ba4d178 --- /dev/null +++ b/examples/api_doc_examples/catalog/metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/mining-pool-tips-summary.py b/examples/api_doc_examples/catalog/mining-pool-tips-summary.py new file mode 100644 index 0000000..4755f17 --- /dev/null +++ b/examples/api_doc_examples/catalog/mining-pool-tips-summary.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_mining_pool_tips_summaries().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/pair-candles.py b/examples/api_doc_examples/catalog/pair-candles.py new file mode 100644 index 0000000..ae446ff --- /dev/null +++ b/examples/api_doc_examples/catalog/pair-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_pair_candles().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/pair-metrics.py b/examples/api_doc_examples/catalog/pair-metrics.py new file mode 100644 index 0000000..5f0b7f1 --- /dev/null +++ b/examples/api_doc_examples/catalog/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_pair_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/pairs.py b/examples/api_doc_examples/catalog/pairs.py new file mode 100644 index 0000000..bc5700c --- /dev/null +++ b/examples/api_doc_examples/catalog/pairs.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_asset_pairs().first_page() +print(data) diff --git a/examples/api_doc_examples/catalog/transaction-tracker.py b/examples/api_doc_examples/catalog/transaction-tracker.py new file mode 100644 index 0000000..09a146b --- /dev/null +++ b/examples/api_doc_examples/catalog/transaction-tracker.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.catalog_transaction_tracker_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/constituent-snapshots/asset-metrics.py b/examples/api_doc_examples/constituent-snapshots/asset-metrics.py new file mode 100644 index 0000000..7c7bf02 --- /dev/null +++ b/examples/api_doc_examples/constituent-snapshots/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_snapshots_of_asset_metric_constituents(metric='').first_page() +print(data) diff --git a/examples/api_doc_examples/constituent-timeframes/asset-metrics.py b/examples/api_doc_examples/constituent-timeframes/asset-metrics.py new file mode 100644 index 0000000..ee9ad10 --- /dev/null +++ b/examples/api_doc_examples/constituent-timeframes/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_timeframes_of_asset_metric_constituents(metric='').first_page() +print(data) diff --git a/examples/api_doc_examples/profile/assets.py b/examples/api_doc_examples/profile/assets.py new file mode 100644 index 0000000..ade15f6 --- /dev/null +++ b/examples/api_doc_examples/profile/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_asset_profiles().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/asset-metrics.py b/examples/api_doc_examples/reference-data/asset-metrics.py new file mode 100644 index 0000000..51203b9 --- /dev/null +++ b/examples/api_doc_examples/reference-data/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/assets.py b/examples/api_doc_examples/reference-data/assets.py new file mode 100644 index 0000000..914f6b7 --- /dev/null +++ b/examples/api_doc_examples/reference-data/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/exchange-asset-metrics.py b/examples/api_doc_examples/reference-data/exchange-asset-metrics.py new file mode 100644 index 0000000..221e9af --- /dev/null +++ b/examples/api_doc_examples/reference-data/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_exchange_asset_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/exchange-metrics.py b/examples/api_doc_examples/reference-data/exchange-metrics.py new file mode 100644 index 0000000..d8eae5a --- /dev/null +++ b/examples/api_doc_examples/reference-data/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_exchange_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/exchanges.py b/examples/api_doc_examples/reference-data/exchanges.py new file mode 100644 index 0000000..1e44431 --- /dev/null +++ b/examples/api_doc_examples/reference-data/exchanges.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_exchanges().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/indexes.py b/examples/api_doc_examples/reference-data/indexes.py new file mode 100644 index 0000000..f8b5222 --- /dev/null +++ b/examples/api_doc_examples/reference-data/indexes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_indexes().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/institution-metrics.py b/examples/api_doc_examples/reference-data/institution-metrics.py new file mode 100644 index 0000000..d2882f9 --- /dev/null +++ b/examples/api_doc_examples/reference-data/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_institution_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/market-metrics.py b/examples/api_doc_examples/reference-data/market-metrics.py new file mode 100644 index 0000000..bd7038e --- /dev/null +++ b/examples/api_doc_examples/reference-data/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_market_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/markets.py b/examples/api_doc_examples/reference-data/markets.py new file mode 100644 index 0000000..52da299 --- /dev/null +++ b/examples/api_doc_examples/reference-data/markets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_markets().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/pair-metrics.py b/examples/api_doc_examples/reference-data/pair-metrics.py new file mode 100644 index 0000000..c611251 --- /dev/null +++ b/examples/api_doc_examples/reference-data/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_pair_metrics().first_page() +print(data) diff --git a/examples/api_doc_examples/reference-data/pairs.py b/examples/api_doc_examples/reference-data/pairs.py new file mode 100644 index 0000000..5bab02d --- /dev/null +++ b/examples/api_doc_examples/reference-data/pairs.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.reference_data_pairs().first_page() +print(data) diff --git a/examples/api_doc_examples/security-master/assets.py b/examples/api_doc_examples/security-master/assets.py new file mode 100644 index 0000000..1e51869 --- /dev/null +++ b/examples/api_doc_examples/security-master/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.security_master_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/security-master/markets.py b/examples/api_doc_examples/security-master/markets.py new file mode 100644 index 0000000..fdf3f63 --- /dev/null +++ b/examples/api_doc_examples/security-master/markets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.security_master_markets().first_page() +print(data) diff --git a/examples/api_doc_examples/taxonomy-metadata/assets.py b/examples/api_doc_examples/taxonomy-metadata/assets.py new file mode 100644 index 0000000..627bfdb --- /dev/null +++ b/examples/api_doc_examples/taxonomy-metadata/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_taxonomy_assets_metadata().first_page() +print(data) diff --git a/examples/api_doc_examples/taxonomy/assets.py b/examples/api_doc_examples/taxonomy/assets.py new file mode 100644 index 0000000..5157719 --- /dev/null +++ b/examples/api_doc_examples/taxonomy/assets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_taxonomy_assets().first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/asset-metrics.py b/examples/api_doc_examples/timeseries-stream/asset-metrics.py new file mode 100644 index 0000000..f2ef6c7 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_asset_metrics(assets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/asset-quotes.py b/examples/api_doc_examples/timeseries-stream/asset-quotes.py new file mode 100644 index 0000000..0afd419 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/asset-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_asset_quotes(assets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/index-levels.py b/examples/api_doc_examples/timeseries-stream/index-levels.py new file mode 100644 index 0000000..f8e1b77 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/index-levels.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_index_levels(indexes='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-candles.py b/examples/api_doc_examples/timeseries-stream/market-candles.py new file mode 100644 index 0000000..7a9d90d --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_candles(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-liquidations.py b/examples/api_doc_examples/timeseries-stream/market-liquidations.py new file mode 100644 index 0000000..bab7445 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_liquidations().first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-openinterest.py b/examples/api_doc_examples/timeseries-stream/market-openinterest.py new file mode 100644 index 0000000..45476ac --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_open_interest().first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-orderbooks.py b/examples/api_doc_examples/timeseries-stream/market-orderbooks.py new file mode 100644 index 0000000..7a11a4e --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_orderbooks(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-quotes.py b/examples/api_doc_examples/timeseries-stream/market-quotes.py new file mode 100644 index 0000000..9ab82d5 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_quotes(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/market-trades.py b/examples/api_doc_examples/timeseries-stream/market-trades.py new file mode 100644 index 0000000..3e94471 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_market_trades().first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries-stream/pair-quotes.py b/examples/api_doc_examples/timeseries-stream/pair-quotes.py new file mode 100644 index 0000000..7187819 --- /dev/null +++ b/examples/api_doc_examples/timeseries-stream/pair-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_stream_pair_quotes(pairs='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/asset-alerts.py b/examples/api_doc_examples/timeseries/asset-alerts.py new file mode 100644 index 0000000..df2d957 --- /dev/null +++ b/examples/api_doc_examples/timeseries/asset-alerts.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_asset_alerts(assets='', alerts='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/asset-chains.py b/examples/api_doc_examples/timeseries/asset-chains.py new file mode 100644 index 0000000..4451bca --- /dev/null +++ b/examples/api_doc_examples/timeseries/asset-chains.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_asset_chains(assets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/asset-metrics.py b/examples/api_doc_examples/timeseries/asset-metrics.py new file mode 100644 index 0000000..ff1d3d8 --- /dev/null +++ b/examples/api_doc_examples/timeseries/asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_asset_metrics(assets='', metrics='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/defi-balance-sheets.py b/examples/api_doc_examples/timeseries/defi-balance-sheets.py new file mode 100644 index 0000000..b50f48e --- /dev/null +++ b/examples/api_doc_examples/timeseries/defi-balance-sheets.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_defi_balance_sheets(defi_protocols='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/exchange-asset-metrics.py b/examples/api_doc_examples/timeseries/exchange-asset-metrics.py new file mode 100644 index 0000000..7b0823c --- /dev/null +++ b/examples/api_doc_examples/timeseries/exchange-asset-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_exchange_asset_metrics(exchange_assets='', metrics='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/exchange-metrics.py b/examples/api_doc_examples/timeseries/exchange-metrics.py new file mode 100644 index 0000000..fff6f0e --- /dev/null +++ b/examples/api_doc_examples/timeseries/exchange-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_exchange_metrics(exchanges='', metrics='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/index-candles.py b/examples/api_doc_examples/timeseries/index-candles.py new file mode 100644 index 0000000..87ccd71 --- /dev/null +++ b/examples/api_doc_examples/timeseries/index-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_index_candles(indexes='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/index-constituents.py b/examples/api_doc_examples/timeseries/index-constituents.py new file mode 100644 index 0000000..8b00aa2 --- /dev/null +++ b/examples/api_doc_examples/timeseries/index-constituents.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_index_constituents(indexes='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/index-levels.py b/examples/api_doc_examples/timeseries/index-levels.py new file mode 100644 index 0000000..2b94a93 --- /dev/null +++ b/examples/api_doc_examples/timeseries/index-levels.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_index_levels(indexes='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/institution-metrics.py b/examples/api_doc_examples/timeseries/institution-metrics.py new file mode 100644 index 0000000..12da300 --- /dev/null +++ b/examples/api_doc_examples/timeseries/institution-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_institution_metrics(institutions='', metrics='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-candles.py b/examples/api_doc_examples/timeseries/market-candles.py new file mode 100644 index 0000000..c424ccc --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_candles(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-contract-prices.py b/examples/api_doc_examples/timeseries/market-contract-prices.py new file mode 100644 index 0000000..bd7ce7d --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-contract-prices.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_contract_prices(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-funding-rates-predicted.py b/examples/api_doc_examples/timeseries/market-funding-rates-predicted.py new file mode 100644 index 0000000..1971df0 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-funding-rates-predicted.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_predicted_market_funding_rates(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-funding-rates.py b/examples/api_doc_examples/timeseries/market-funding-rates.py new file mode 100644 index 0000000..2b940c2 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-funding-rates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_funding_rates(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-greeks.py b/examples/api_doc_examples/timeseries/market-greeks.py new file mode 100644 index 0000000..ddaf0c0 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-greeks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_greeks(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-implied-volatility.py b/examples/api_doc_examples/timeseries/market-implied-volatility.py new file mode 100644 index 0000000..f9d85dd --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-implied-volatility.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_implied_volatility(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-liquidations.py b/examples/api_doc_examples/timeseries/market-liquidations.py new file mode 100644 index 0000000..13e35ff --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-liquidations.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_liquidations(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-metrics.py b/examples/api_doc_examples/timeseries/market-metrics.py new file mode 100644 index 0000000..611d178 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_metrics(markets='', metrics='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-openinterest.py b/examples/api_doc_examples/timeseries/market-openinterest.py new file mode 100644 index 0000000..957de55 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-openinterest.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_open_interest(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-orderbooks.py b/examples/api_doc_examples/timeseries/market-orderbooks.py new file mode 100644 index 0000000..148867c --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-orderbooks.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_orderbooks(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-quotes.py b/examples/api_doc_examples/timeseries/market-quotes.py new file mode 100644 index 0000000..824c1c4 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-quotes.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_quotes(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/market-trades.py b/examples/api_doc_examples/timeseries/market-trades.py new file mode 100644 index 0000000..8d60da5 --- /dev/null +++ b/examples/api_doc_examples/timeseries/market-trades.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_market_trades(markets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/mempool-feerates.py b/examples/api_doc_examples/timeseries/mempool-feerates.py new file mode 100644 index 0000000..27a8b9e --- /dev/null +++ b/examples/api_doc_examples/timeseries/mempool-feerates.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_mempool_feerates(assets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/mining-pool-tips-summary.py b/examples/api_doc_examples/timeseries/mining-pool-tips-summary.py new file mode 100644 index 0000000..4fa6dad --- /dev/null +++ b/examples/api_doc_examples/timeseries/mining-pool-tips-summary.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_mining_pool_tips_summary(assets='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/pair-candles.py b/examples/api_doc_examples/timeseries/pair-candles.py new file mode 100644 index 0000000..1d04cc3 --- /dev/null +++ b/examples/api_doc_examples/timeseries/pair-candles.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_pair_candles(pairs='').first_page() +print(data) diff --git a/examples/api_doc_examples/timeseries/pair-metrics.py b/examples/api_doc_examples/timeseries/pair-metrics.py new file mode 100644 index 0000000..8dda06f --- /dev/null +++ b/examples/api_doc_examples/timeseries/pair-metrics.py @@ -0,0 +1,8 @@ + +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.get_pair_metrics(pairs='', metrics='').first_page() +print(data) diff --git a/examples/generate_examples.py b/examples/generate_examples.py new file mode 100644 index 0000000..d55d4d8 --- /dev/null +++ b/examples/generate_examples.py @@ -0,0 +1,126 @@ +import ast +import inspect +from typing import Dict, List, Union +from coinmetrics.api_client import CoinMetricsClient +import os +import logging +logging.basicConfig(level=logging.INFO) + +EXAMPLE_TEMPLATE = """ +from coinmetrics.api_client import CoinMetricsClient + +api_key = "" +client = CoinMetricsClient(api_key) + +data = client.{method}({required_params}).first_page() +print(data) +""" + +def return_query(base_string, **kwargs): + """ + Creates a formatted string based on the key word arguments being passed + """ + return base_string.format(**kwargs) + +def extract_api_calls(source_code) -> Dict[str, List[str]]: + tree = ast.parse(source_code) + + class APIClientVisitor(ast.NodeVisitor): + def __init__(self): + self.functions = {} + + def visit_FunctionDef(self, node: ast.FunctionDef): + method_name = node.name + if not any(string in method_name for string in ["get", "catalog", "reference", "security", "blockchain"]) or method_name.startswith("_"): + return + endpoint = self.get_endpoint_from_node(node) + required_params = self.get_required_params_from_node(node) + self.functions[endpoint] = { + "method": method_name, + "params": required_params + } + + @staticmethod + def get_required_params_from_node(node: ast.FunctionDef) -> List: + arguments = node.args + required_args = [] + + for arg, default in zip(arguments.args, arguments.defaults): + arg_name = arg.arg + if arg_name == 'self': + continue + arg_type = ast.get_source_segment(source_code, arg.annotation) + arg_is_required = arg_type == arg_type.split('Optional')[0] + if arg_is_required: + required_args.append(arg_name) + return required_args + + @staticmethod + def get_endpoint_from_node(node: ast.FunctionDef) -> str: + method_name = node.name + for stmt in node.body: + if isinstance(stmt, ast.Return): + if "stream" in method_name: + if type(stmt.value.args[0]) == str: + endpoint = stmt.value.args[0] + else: + endpoint = stmt.value.args[0].value + elif "catalog" in method_name and not "_v2" in method_name: + endpoint = stmt.value.args[0].value.args[0].value + elif any([method_name.startswith(prefix) for prefix in ["get_", "reference", "security", "blockchain_"]]) or (method_name.startswith("catalog") and method_name.endswith("v2")): + if isinstance(stmt.value.args[1], ast.Call): + endpoint = APIClientVisitor.get_endpoint_from_list_args(stmt.value.args[1].args[0].values) + if isinstance(stmt.value.args[1], ast.JoinedStr): + joined_str = stmt.value.args[1] + endpoint = APIClientVisitor.get_endpoint_from_joined_ast_v2(joined_str.values) + elif isinstance(stmt.value.args[1], ast.Constant): + endpoint = stmt.value.args[1].value + else: + raise ValueError(f"Function type for function: {node.name} not accounted for") + if not endpoint.startswith("/"): + endpoint = "/" + endpoint + return endpoint + + @staticmethod + def get_endpoint_from_joined_ast_v2(list_of_const_fvs: List[Union[ast.Constant, ast.FormattedValue]]) -> str: + result_string = "" + for item in list_of_const_fvs: + if isinstance(item, ast.Constant): + result_string += item.value + elif isinstance(item, ast.FormattedValue): + result_string += "{" + item.value.id + "}" + return result_string + + @staticmethod + def get_endpoint_from_list_args(list_args: List[Union[ast.Constant, ast.FormattedValue]]): + result_str = "" + for arg in list_args: + if isinstance(arg, ast.Constant): + result_str += arg.value + else: + result_str += "{" + arg.value.id + "}" + return result_str + + visitor = APIClientVisitor() + visitor.visit(tree) + return visitor.functions + +def write_examples(function_dict): + for endpoint, metadata in function_dict.items(): + method = metadata['method'] + params = metadata['params'] + param_str = ", ".join([f"{param}=''" for param in params]) + example = return_query(EXAMPLE_TEMPLATE, method=method, required_params=param_str) + endpoint_dir ="/".join(endpoint.strip("/").split("/")[:-1]) + dir_path = f"examples/api_doc_examples/{endpoint_dir}" + if not os.path.exists(dir_path): + os.makedirs(dir_path) + + py_file = f"examples/api_doc_examples/{endpoint.strip('/')}.py" + with open(py_file, "w+") as f: + logging.info(f"Writing {py_file}") + f.write(example) + +if __name__ == "__main__": + function_dict = extract_api_calls(inspect.getsource(CoinMetricsClient)) + write_examples(function_dict) \ No newline at end of file