# jinyanniu-databases-quantdb-client
Financial data API service using core business logic

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 
- Package version: 1.0.4
- Generator version: 7.21.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python 3.9+

## Installation & Usage
### pip install

If the python package is hosted on a repository, you can install directly using:

```sh
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)

Then import the package:
```python
import jinyanniu_databases_quantdb_client
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

Then import the package:
```python
import jinyanniu_databases_quantdb_client
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

import jinyanniu_databases_quantdb_client
from jinyanniu_databases_quantdb_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = jinyanniu_databases_quantdb_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with jinyanniu_databases_quantdb_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = jinyanniu_databases_quantdb_client.AkshareApi(api_client)
    symbol = '000859' # str | 指数代码，如 000001 (optional) (default to '000859')
    period = 'daily' # str | daily, weekly, monthly (optional) (default to 'daily')
    start_date = '19700101' # str | 开始日期 YYYYMMDD (optional) (default to '19700101')
    end_date = '22220101' # str | 结束日期 YYYYMMDD (optional) (default to '22220101')

    try:
        # Index Zh A Hist
        api_response = await api_instance.index_zh_a_hist(symbol=symbol, period=period, start_date=start_date, end_date=end_date)
        print("The response of AkshareApi->index_zh_a_hist:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AkshareApi->index_zh_a_hist: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AkshareApi* | [**index_zh_a_hist**](docs/AkshareApi.md#index_zh_a_hist) | **GET** /api/v1/index/zh/a/hist | Index Zh A Hist
*AkshareApi* | [**stock_financial_analysis_indicator_em**](docs/AkshareApi.md#stock_financial_analysis_indicator_em) | **GET** /api/v1/stock/financial/analysis/indicator/em | Stock Financial Analysis Indicator Em
*AkshareApi* | [**stock_hk_daily**](docs/AkshareApi.md#stock_hk_daily) | **GET** /api/v1/stock/hk/daily | Stock Hk Daily
*AkshareApi* | [**stock_hk_index_daily_sina**](docs/AkshareApi.md#stock_hk_index_daily_sina) | **GET** /api/v1/stock/hk/index/daily/sina | Stock Hk Index Daily Sina
*AkshareApi* | [**stock_hk_index_spot_sina**](docs/AkshareApi.md#stock_hk_index_spot_sina) | **GET** /api/v1/stock/hk/index/spot/sina | Stock Hk Index Spot Sina
*AkshareApi* | [**stock_zh_a_daily**](docs/AkshareApi.md#stock_zh_a_daily) | **GET** /api/v1/stock/zh/a/daily | Stock Zh A Daily
*AkshareApi* | [**stock_zh_a_hist**](docs/AkshareApi.md#stock_zh_a_hist) | **GET** /api/v1/stock/zh/a/hist | Stock Zh A Hist
*AkshareApi* | [**stock_zh_a_hist_tx**](docs/AkshareApi.md#stock_zh_a_hist_tx) | **GET** /api/v1/stock/zh/a/hist/tx | Stock Zh A Hist Tx
*AkshareApi* | [**stock_zh_a_minute**](docs/AkshareApi.md#stock_zh_a_minute) | **GET** /api/v1/stock/zh/a/minute | Stock Zh A Minute
*AkshareApi* | [**stock_zh_a_spot**](docs/AkshareApi.md#stock_zh_a_spot) | **GET** /api/v1/stock/zh/a/spot | Stock Zh A Spot
*AkshareApi* | [**stock_zh_a_spot_em**](docs/AkshareApi.md#stock_zh_a_spot_em) | **GET** /api/v1/stock/zh/a/spot/em | Stock Zh A Spot Em
*AkshareApi* | [**stock_zh_index_daily**](docs/AkshareApi.md#stock_zh_index_daily) | **GET** /api/v1/stock/zh/index/daily | Stock Zh Index Daily
*AkshareApi* | [**stock_zh_index_daily_tx**](docs/AkshareApi.md#stock_zh_index_daily_tx) | **GET** /api/v1/stock/zh/index/daily/tx | Stock Zh Index Daily Tx
*AkshareApi* | [**stock_zh_index_spot_em**](docs/AkshareApi.md#stock_zh_index_spot_em) | **GET** /api/v1/stock/zh/index/spot/em | Stock Zh Index Spot Em
*AkshareApi* | [**stock_zh_index_spot_sina**](docs/AkshareApi.md#stock_zh_index_spot_sina) | **GET** /api/v1/stock/zh/index/spot/sina | Stock Zh Index Spot Sina
*AssetManagementApi* | [**delete_management_assets_hk_stocks**](docs/AssetManagementApi.md#delete_management_assets_hk_stocks) | **DELETE** /api/v1/management/assets/hk-stocks | Clear Hk Stocks
*AssetManagementApi* | [**delete_management_assets_hk_stocks_0**](docs/AssetManagementApi.md#delete_management_assets_hk_stocks_0) | **DELETE** /api/v1/management/assets/hk-stocks | Clear Hk Stocks
*AssetManagementApi* | [**get_management_assets_hk_stocks_stats**](docs/AssetManagementApi.md#get_management_assets_hk_stocks_stats) | **GET** /api/v1/management/assets/hk-stocks/stats | Get Hk Stocks Stats
*AssetManagementApi* | [**get_management_assets_hk_stocks_stats_0**](docs/AssetManagementApi.md#get_management_assets_hk_stocks_stats_0) | **GET** /api/v1/management/assets/hk-stocks/stats | Get Hk Stocks Stats
*AssetManagementApi* | [**post_management_assets_hk_stocks_bulk_import**](docs/AssetManagementApi.md#post_management_assets_hk_stocks_bulk_import) | **POST** /api/v1/management/assets/hk-stocks/bulk-import | Bulk Import Hk Stocks
*AssetManagementApi* | [**post_management_assets_hk_stocks_bulk_import_0**](docs/AssetManagementApi.md#post_management_assets_hk_stocks_bulk_import_0) | **POST** /api/v1/management/assets/hk-stocks/bulk-import | Bulk Import Hk Stocks
*AssetManagementApi* | [**post_management_assets_hk_stocks_refresh**](docs/AssetManagementApi.md#post_management_assets_hk_stocks_refresh) | **POST** /api/v1/management/assets/hk-stocks/{symbol}/refresh | Refresh Hk Stock
*AssetManagementApi* | [**post_management_assets_hk_stocks_refresh_0**](docs/AssetManagementApi.md#post_management_assets_hk_stocks_refresh_0) | **POST** /api/v1/management/assets/hk-stocks/{symbol}/refresh | Refresh Hk Stock
*AssetsApi* | [**get_assets**](docs/AssetsApi.md#get_assets) | **GET** /api/v1/assets/ | Get Assets
*AssetsApi* | [**get_assets_0**](docs/AssetsApi.md#get_assets_0) | **GET** /api/v1/assets/ | Get Assets
*AssetsApi* | [**get_assets_by_id**](docs/AssetsApi.md#get_assets_by_id) | **GET** /api/v1/assets/{symbol} | Get Asset By Symbol Simple
*AssetsApi* | [**get_assets_by_id_0**](docs/AssetsApi.md#get_assets_by_id_0) | **GET** /api/v1/assets/{symbol} | Get Asset By Symbol Simple
*AssetsApi* | [**get_assets_symbol_by_id**](docs/AssetsApi.md#get_assets_symbol_by_id) | **GET** /api/v1/assets/symbol/{symbol} | Get Asset By Symbol
*AssetsApi* | [**get_assets_symbol_by_id_0**](docs/AssetsApi.md#get_assets_symbol_by_id_0) | **GET** /api/v1/assets/symbol/{symbol} | Get Asset By Symbol
*AssetsApi* | [**put_assets_symbol_refresh**](docs/AssetsApi.md#put_assets_symbol_refresh) | **PUT** /api/v1/assets/symbol/{symbol}/refresh | Refresh Asset Info
*AssetsApi* | [**put_assets_symbol_refresh_0**](docs/AssetsApi.md#put_assets_symbol_refresh_0) | **PUT** /api/v1/assets/symbol/{symbol}/refresh | Refresh Asset Info
*BatchApi* | [**post_batch_batch_assets**](docs/BatchApi.md#post_batch_batch_assets) | **POST** /api/v1/batch/batch/assets | Get Batch Assets
*BatchApi* | [**post_batch_batch_assets_0**](docs/BatchApi.md#post_batch_batch_assets_0) | **POST** /api/v1/batch/batch/assets | Get Batch Assets
*BatchApi* | [**post_batch_batch_assets_minimal**](docs/BatchApi.md#post_batch_batch_assets_minimal) | **POST** /api/v1/batch/batch/assets/minimal | Get Batch Assets Minimal
*BatchApi* | [**post_batch_batch_assets_minimal_0**](docs/BatchApi.md#post_batch_batch_assets_minimal_0) | **POST** /api/v1/batch/batch/assets/minimal | Get Batch Assets Minimal
*CacheApi* | [**delete_cache_clear**](docs/CacheApi.md#delete_cache_clear) | **DELETE** /api/v1/cache/clear | Clear Cache
*CacheApi* | [**delete_cache_clear_0**](docs/CacheApi.md#delete_cache_clear_0) | **DELETE** /api/v1/cache/clear | Clear Cache
*CacheApi* | [**delete_cache_clear_by_id**](docs/CacheApi.md#delete_cache_clear_by_id) | **DELETE** /api/v1/cache/clear/{symbol} | Clear Symbol Cache
*CacheApi* | [**delete_cache_clear_by_id_0**](docs/CacheApi.md#delete_cache_clear_by_id_0) | **DELETE** /api/v1/cache/clear/{symbol} | Clear Symbol Cache
*CacheApi* | [**get_cache_health**](docs/CacheApi.md#get_cache_health) | **GET** /api/v1/cache/health | Cache Health Check
*CacheApi* | [**get_cache_health_0**](docs/CacheApi.md#get_cache_health_0) | **GET** /api/v1/cache/health | Cache Health Check
*CacheApi* | [**get_cache_stats**](docs/CacheApi.md#get_cache_stats) | **GET** /api/v1/cache/stats | Get Cache Stats
*CacheApi* | [**get_cache_stats_0**](docs/CacheApi.md#get_cache_stats_0) | **GET** /api/v1/cache/stats | Get Cache Stats
*CacheApi* | [**get_cache_symbols**](docs/CacheApi.md#get_cache_symbols) | **GET** /api/v1/cache/symbols | Get Cached Symbols
*CacheApi* | [**get_cache_symbols_0**](docs/CacheApi.md#get_cache_symbols_0) | **GET** /api/v1/cache/symbols | Get Cached Symbols
*FinancialApi* | [**get_financial_by_id**](docs/FinancialApi.md#get_financial_by_id) | **GET** /api/v1/financial/{symbol} | Get Financial Data
*FinancialApi* | [**get_financial_by_id_0**](docs/FinancialApi.md#get_financial_by_id_0) | **GET** /api/v1/financial/{symbol} | Get Financial Data
*FinancialApi* | [**get_financial_indicators**](docs/FinancialApi.md#get_financial_indicators) | **GET** /api/v1/financial/{symbol}/indicators | Get Financial Indicators
*FinancialApi* | [**get_financial_indicators_0**](docs/FinancialApi.md#get_financial_indicators_0) | **GET** /api/v1/financial/{symbol}/indicators | Get Financial Indicators
*FinancialApi* | [**get_financial_summary**](docs/FinancialApi.md#get_financial_summary) | **GET** /api/v1/financial/{symbol}/summary | Get Financial Summary
*FinancialApi* | [**get_financial_summary_0**](docs/FinancialApi.md#get_financial_summary_0) | **GET** /api/v1/financial/{symbol}/summary | Get Financial Summary
*FinancialApi* | [**post_financial_batch**](docs/FinancialApi.md#post_financial_batch) | **POST** /api/v1/financial/batch | Get Batch Financial Data
*FinancialApi* | [**post_financial_batch_0**](docs/FinancialApi.md#post_financial_batch_0) | **POST** /api/v1/financial/batch | Get Batch Financial Data
*HistoricalApi* | [**delete_historical_list_cache**](docs/HistoricalApi.md#delete_historical_list_cache) | **DELETE** /api/v1/historical/list/cache | Clear Stock List Cache
*HistoricalApi* | [**delete_historical_list_cache_0**](docs/HistoricalApi.md#delete_historical_list_cache_0) | **DELETE** /api/v1/historical/list/cache | Clear Stock List Cache
*HistoricalApi* | [**delete_stocks_list_cache**](docs/HistoricalApi.md#delete_stocks_list_cache) | **DELETE** /api/v1/stocks/list/cache | Clear Stock List Cache
*HistoricalApi* | [**get_historical_daily**](docs/HistoricalApi.md#get_historical_daily) | **GET** /api/v1/historical/{symbol}/daily | Get Daily Stock Data
*HistoricalApi* | [**get_historical_daily_0**](docs/HistoricalApi.md#get_historical_daily_0) | **GET** /api/v1/historical/{symbol}/daily | Get Daily Stock Data
*HistoricalApi* | [**get_historical_database_cache_status**](docs/HistoricalApi.md#get_historical_database_cache_status) | **GET** /api/v1/historical/database/cache/status | Get Database Cache Status
*HistoricalApi* | [**get_historical_database_cache_status_0**](docs/HistoricalApi.md#get_historical_database_cache_status_0) | **GET** /api/v1/historical/database/cache/status | Get Database Cache Status
*HistoricalApi* | [**get_historical_list**](docs/HistoricalApi.md#get_historical_list) | **GET** /api/v1/historical/list | Get Stock List
*HistoricalApi* | [**get_historical_list_0**](docs/HistoricalApi.md#get_historical_list_0) | **GET** /api/v1/historical/list | Get Stock List
*HistoricalApi* | [**get_historical_list_summary**](docs/HistoricalApi.md#get_historical_list_summary) | **GET** /api/v1/historical/list/summary | Get Market Summary
*HistoricalApi* | [**get_historical_list_summary_0**](docs/HistoricalApi.md#get_historical_list_summary_0) | **GET** /api/v1/historical/list/summary | Get Market Summary
*HistoricalApi* | [**get_historical_minute**](docs/HistoricalApi.md#get_historical_minute) | **GET** /api/v1/historical/{symbol}/minute | Get Minute Stock Data
*HistoricalApi* | [**get_historical_minute_0**](docs/HistoricalApi.md#get_historical_minute_0) | **GET** /api/v1/historical/{symbol}/minute | Get Minute Stock Data
*HistoricalApi* | [**get_historical_stock_by_id**](docs/HistoricalApi.md#get_historical_stock_by_id) | **GET** /api/v1/historical/stock/{symbol} | Get Historical Stock Data
*HistoricalApi* | [**get_historical_stock_by_id_0**](docs/HistoricalApi.md#get_historical_stock_by_id_0) | **GET** /api/v1/historical/stock/{symbol} | Get Historical Stock Data
*HistoricalApi* | [**get_stocks_daily**](docs/HistoricalApi.md#get_stocks_daily) | **GET** /api/v1/stocks/{symbol}/daily | Get Daily Stock Data
*HistoricalApi* | [**get_stocks_database_cache_status**](docs/HistoricalApi.md#get_stocks_database_cache_status) | **GET** /api/v1/stocks/database/cache/status | Get Database Cache Status
*HistoricalApi* | [**get_stocks_list**](docs/HistoricalApi.md#get_stocks_list) | **GET** /api/v1/stocks/list | Get Stock List
*HistoricalApi* | [**get_stocks_list_summary**](docs/HistoricalApi.md#get_stocks_list_summary) | **GET** /api/v1/stocks/list/summary | Get Market Summary
*HistoricalApi* | [**get_stocks_minute**](docs/HistoricalApi.md#get_stocks_minute) | **GET** /api/v1/stocks/{symbol}/minute | Get Minute Stock Data
*HistoricalApi* | [**get_stocks_stock_by_id**](docs/HistoricalApi.md#get_stocks_stock_by_id) | **GET** /api/v1/stocks/stock/{symbol} | Get Historical Stock Data
*IndexApi* | [**get_index_categories**](docs/IndexApi.md#get_index_categories) | **GET** /api/v1/index/categories | Get Index Categories
*IndexApi* | [**get_index_categories_0**](docs/IndexApi.md#get_index_categories_0) | **GET** /api/v1/index/categories | Get Index Categories
*IndexApi* | [**get_index_historical_by_id**](docs/IndexApi.md#get_index_historical_by_id) | **GET** /api/v1/index/historical/{symbol} | Get Historical Index Data
*IndexApi* | [**get_index_historical_by_id_0**](docs/IndexApi.md#get_index_historical_by_id_0) | **GET** /api/v1/index/historical/{symbol} | Get Historical Index Data
*IndexApi* | [**get_index_list**](docs/IndexApi.md#get_index_list) | **GET** /api/v1/index/list | Get Index List
*IndexApi* | [**get_index_list_0**](docs/IndexApi.md#get_index_list_0) | **GET** /api/v1/index/list | Get Index List
*IndexApi* | [**get_index_realtime_by_id**](docs/IndexApi.md#get_index_realtime_by_id) | **GET** /api/v1/index/realtime/{symbol} | Get Realtime Index Data
*IndexApi* | [**get_index_realtime_by_id_0**](docs/IndexApi.md#get_index_realtime_by_id_0) | **GET** /api/v1/index/realtime/{symbol} | Get Realtime Index Data
*RealtimeApi* | [**delete_realtime_cache_cleanup**](docs/RealtimeApi.md#delete_realtime_cache_cleanup) | **DELETE** /api/v1/realtime/cache/cleanup | Cleanup Realtime Cache
*RealtimeApi* | [**delete_realtime_cache_cleanup_0**](docs/RealtimeApi.md#delete_realtime_cache_cleanup_0) | **DELETE** /api/v1/realtime/cache/cleanup | Cleanup Realtime Cache
*RealtimeApi* | [**get_realtime_cache_stats**](docs/RealtimeApi.md#get_realtime_cache_stats) | **GET** /api/v1/realtime/cache/stats | Get Realtime Cache Stats
*RealtimeApi* | [**get_realtime_cache_stats_0**](docs/RealtimeApi.md#get_realtime_cache_stats_0) | **GET** /api/v1/realtime/cache/stats | Get Realtime Cache Stats
*RealtimeApi* | [**get_realtime_stock_by_id**](docs/RealtimeApi.md#get_realtime_stock_by_id) | **GET** /api/v1/realtime/stock/{symbol} | Get Realtime Stock Data
*RealtimeApi* | [**get_realtime_stock_by_id_0**](docs/RealtimeApi.md#get_realtime_stock_by_id_0) | **GET** /api/v1/realtime/stock/{symbol} | Get Realtime Stock Data
*RealtimeApi* | [**post_realtime_batch**](docs/RealtimeApi.md#post_realtime_batch) | **POST** /api/v1/realtime/batch | Get Batch Realtime Data
*RealtimeApi* | [**post_realtime_batch_0**](docs/RealtimeApi.md#post_realtime_batch_0) | **POST** /api/v1/realtime/batch | Get Batch Realtime Data
*StocksApi* | [**delete_stocks_list_cache**](docs/StocksApi.md#delete_stocks_list_cache) | **DELETE** /api/v1/stocks/list/cache | Clear Stock List Cache
*StocksApi* | [**get_stocks_daily**](docs/StocksApi.md#get_stocks_daily) | **GET** /api/v1/stocks/{symbol}/daily | Get Daily Stock Data
*StocksApi* | [**get_stocks_database_cache_status**](docs/StocksApi.md#get_stocks_database_cache_status) | **GET** /api/v1/stocks/database/cache/status | Get Database Cache Status
*StocksApi* | [**get_stocks_list**](docs/StocksApi.md#get_stocks_list) | **GET** /api/v1/stocks/list | Get Stock List
*StocksApi* | [**get_stocks_list_summary**](docs/StocksApi.md#get_stocks_list_summary) | **GET** /api/v1/stocks/list/summary | Get Market Summary
*StocksApi* | [**get_stocks_minute**](docs/StocksApi.md#get_stocks_minute) | **GET** /api/v1/stocks/{symbol}/minute | Get Minute Stock Data
*StocksApi* | [**get_stocks_stock_by_id**](docs/StocksApi.md#get_stocks_stock_by_id) | **GET** /api/v1/stocks/stock/{symbol} | Get Historical Stock Data
*VersionApi* | [**get_version**](docs/VersionApi.md#get_version) | **GET** /api/v1/version/ | Get Versions
*VersionApi* | [**get_version_0**](docs/VersionApi.md#get_version_0) | **GET** /api/v1/version/ | Get Versions
*VersionApi* | [**get_version_by_id**](docs/VersionApi.md#get_version_by_id) | **GET** /api/v1/version/{version} | Get Version
*VersionApi* | [**get_version_by_id_0**](docs/VersionApi.md#get_version_by_id_0) | **GET** /api/v1/version/{version} | Get Version
*VersionApi* | [**get_version_latest**](docs/VersionApi.md#get_version_latest) | **GET** /api/v1/version/latest | Get Latest Version
*VersionApi* | [**get_version_latest_0**](docs/VersionApi.md#get_version_latest_0) | **GET** /api/v1/version/latest | Get Latest Version


## Documentation For Models

 - [Asset](docs/Asset.md)
 - [BatchAssetRequest](docs/BatchAssetRequest.md)
 - [BatchAssetResponse](docs/BatchAssetResponse.md)
 - [BatchFinancialRequest](docs/BatchFinancialRequest.md)
 - [BatchFinancialResponse](docs/BatchFinancialResponse.md)
 - [BatchRealtimeRequest](docs/BatchRealtimeRequest.md)
 - [BatchRealtimeResponse](docs/BatchRealtimeResponse.md)
 - [CacheClearResponse](docs/CacheClearResponse.md)
 - [FinancialIndicatorData](docs/FinancialIndicatorData.md)
 - [FinancialIndicatorsResponse](docs/FinancialIndicatorsResponse.md)
 - [FinancialQuarterData](docs/FinancialQuarterData.md)
 - [FinancialSummaryResponse](docs/FinancialSummaryResponse.md)
 - [HTTPValidationError](docs/HTTPValidationError.md)
 - [HistoricalDataPoint](docs/HistoricalDataPoint.md)
 - [HistoricalDataResponse](docs/HistoricalDataResponse.md)
 - [IndexDataResponse](docs/IndexDataResponse.md)
 - [IndexListResponse](docs/IndexListResponse.md)
 - [LocationInner](docs/LocationInner.md)
 - [MinuteDataPoint](docs/MinuteDataPoint.md)
 - [MinuteDataResponse](docs/MinuteDataResponse.md)
 - [ModelDate](docs/ModelDate.md)
 - [RealtimeDataResponse](docs/RealtimeDataResponse.md)
 - [RealtimeIndexDataResponse](docs/RealtimeIndexDataResponse.md)
 - [ValidationError](docs/ValidationError.md)
 - [VersionResponse](docs/VersionResponse.md)
 - [VersionsResponse](docs/VersionsResponse.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.


## Author




