跳转至

宏观经济(Editing)

AssetInvestMapping

AssetInvest

AssetInvest(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\asset_invest.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = AssetInvestMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 城镇固定资产投资",
    )

BoomIndexMapping

BoomIndex

BoomIndex(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\boom_index.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = BoomIndexMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(response_type="json", description="中国 企业景气及企业家信心指数")

CPIMapping

CPI

CPI(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\cpi.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = CPIMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 居民消费价格指数(CPI,上年同月=100)",
    )

CurrencySupplyMapping

字段映射 货币供应量

CurrencySupply

CurrencySupply(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 中国货币供应量

Notes
from wisecon.macro import *
data = CurrencySupply(size=20).load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
size Optional[int]

最大数据量

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志

None
**kwargs Any

其他参数

{}
Source code in wisecon\macro\currency_supply.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.macro import *
        data = CurrencySupply(size=20).load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        size: 最大数据量
        verbose: 是否打印日志
        logger: 自定义日志
        **kwargs: 其他参数
    """
    self.size = size
    self.mapping = CurrencySupplyMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国货币供应量",
    )

CustomsMapping

Customs

Customs(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\customs.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = CustomsMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 海关进出口增减情况一览表",
    )

DepositRateMapping

DepositRate

DepositRate(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\deposit_rate.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = DepositRateMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 利率调整",
    )

DepositReserveMapping

DepositReserve

DepositReserve(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\deposit_reserve.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = DepositReserveMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 存款准备金率")

FaithIndexMapping

FaithIndex

FaithIndex(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\faith_index.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = FaithIndexMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 消费者信心指数")

FDIMapping

FDI

FDI(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

中国 外商直接投资数据(FDI)

Source code in wisecon\macro\fdi.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = FDIMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 外商直接投资数据(FDI)")

ForexDepositMapping

ForexDeposit

ForexDeposit(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\forex_deposit.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = ForexDepositMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 本外币存款")

ForexLoanMapping

ForexLoan

ForexLoan(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\forex_loan.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = ForexLoanMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 外汇贷款数据")

GDPMapping

字段映射 GDP

GDP

GDP(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 GDP(中国)

Parameters:

Name Type Description Default
size Optional[int]

最大数据量

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志

None
**kwargs Any

其他参数

{}

Examples:

>>> from wisecon.macro import GDP
>>> data = GDP(size=20).load()
>>> data.to_frame(chinese_column=True)
Source code in wisecon\macro\gdp.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Args:
        size: 最大数据量
        verbose: 是否打印日志
        logger: 自定义日志
        **kwargs: 其他参数

    Examples:
        >>> from wisecon.macro import GDP
        >>> data = GDP(size=20).load()
        >>> data.to_frame(chinese_column=True)
    """
    self.size = size
    self.mapping = GDPMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 国内生产总值(GDP)")

GoldCurrencyMapping

GoldCurrency

GoldCurrency(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\gold_currency.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = GoldCurrencyMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 外汇和黄金储备")

GoodsIndexMapping

GoodsIndex

GoodsIndex(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\goodes_index.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = GoodsIndexMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 企业商品价格指数")

GovIncomeMapping

GovIncome

GovIncome(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\gov_income.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = GovIncomeMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 财政收入(每年2月公布当年1-2月累计值)")

HoseIndexOldMapping

HoseIndexOld

HoseIndexOld(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\hose_index.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = HoseIndexOldMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 房价指数(08—10年)")

HoseIndexNewMapping

HoseIndexNew

HoseIndexNew(
    cities: Optional[List[str]] = ["北京", "上海"],
    report_date: Optional[str] = None,
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

:param query_config: :param cities: 城市 :param size: 数据量 :param report_date: 日期 :param verbose: :param logger: :param kwargs:

Source code in wisecon\macro\hose_index.py
def __init__(
        self,
        cities: Optional[List[str]] = ["北京", "上海"],
        report_date: Optional[str] = None,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """

    :param query_config:
    :param cities: 城市
    :param size: 数据量
    :param report_date: 日期
    :param verbose:
    :param logger:
    :param kwargs:
    """
    self.cities = cities
    self.report_date = report_date
    self.size = size
    self.mapping = HoseIndexNewMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 新房价指数")

ImpInterestMapping

ImpInterest

ImpInterest(
    size: Optional[int] = 20,
    market: Literal[
        "上海", "中国", "伦敦", "欧洲", "香港", "新加坡"
    ] = "上海",
    currency_code: Literal[
        "CNY", "HKD", "USD", "GBP", "JPY", "EUR", "SGD"
    ] = "CNY",
    indicator: Literal[
        "1d", "1w", "2w", "1m", "3m", "6m", "9m", "1y"
    ] = "1d",
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

:param size: :param currency_code: 币种 ["CNY", "HKD", "USD", "GBP", "JPY", "EUR", "SGD"] :param market: 市场 {"上海": "001", "中国": "002", "伦敦": "003", "欧洲": "004", "香港": "005", "新加坡": "006"} :param indicator: 指标周期 { "1d": "001", "1w": "101", "2w": "102", "1m": "201", "2m": "202", "3m": "203", "4m": "204", "5m": "205", "6m": "206", "7m": "207", "8m": "208", "9m": "209", "10m": "210", "11m": "211", "1y": "301", } :param query_config: :param verbose: :param logger: :param kwargs:

Source code in wisecon\macro\imp_intrestraten.py
def __init__(
        self,
        size: Optional[int] = 20,
        market: Literal["上海", "中国", "伦敦", "欧洲", "香港", "新加坡"] = "上海",
        currency_code: Literal["CNY", "HKD", "USD", "GBP", "JPY", "EUR", "SGD"] = "CNY",
        indicator: Literal["1d", "1w", "2w", "1m", "3m", "6m", "9m", "1y"] = "1d",
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    :param size:
    :param currency_code: 币种
        ["CNY", "HKD", "USD", "GBP", "JPY", "EUR", "SGD"]
    :param market: 市场
        {"上海": "001", "中国": "002", "伦敦": "003", "欧洲": "004", "香港": "005", "新加坡": "006"}
    :param indicator: 指标周期
        {
            "1d": "001",
            "1w": "101", "2w": "102",
            "1m": "201", "2m": "202", "3m": "203", "4m": "204", "5m": "205",
            "6m": "206", "7m": "207", "8m": "208", "9m": "209", "10m": "210", "11m": "211",
            "1y": "301",
        }
    :param query_config:
    :param verbose:
    :param logger:
    :param kwargs:
    """
    self.size = size
    self.currency_code = currency_code
    self.market = market
    self.indicator = indicator
    self.mapping = ImpInterestMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description=description)

IndusGrowMapping

IndusGrow

IndusGrow(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\indus_grow.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = IndusGrowMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 工业增加值增长 (每年2月公布当年1-2月累计值)")

LPRMapping

LPR

LPR(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\lpr.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = LPRMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 LPR品种详细数据",
    )

NewLoanQueryConfig

NewLoan

NewLoan(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\new_loan.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = NewLoanQueryConfig()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 新增信贷数据")

OilPriceMapping

OilPrice

OilPrice(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\oil_price.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = OilPriceMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 汽柴油历史调价信息")

PMIMapping

PMI

PMI(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

采购经理人指数(PMI)

Source code in wisecon\macro\pmi.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.verbose = verbose
    self.mapping = PMIMapping()
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 采购经理人指数(PMI)",
    )

PPIMapping

PPI

PPI(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

中国 工业品出厂价格指数(PPI)

Source code in wisecon\macro\ppi.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = PPIMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 工业品出厂价格指数(PPI)",
    )

StockOpenMapping

StockOpen

StockOpen(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\stock_open.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = StockOpenMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="中国 股票账户统计详细数据",
    )

StockStatisticsMapping

StockStatistics

StockStatistics(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\stock_statistics.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = StockStatisticsMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 全国股票交易统计表")

TaxMapping

Tax

Tax(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\tax.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = TaxMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 全国税收收入")

TotalRetailMapping

TotalRetail

TotalRetail(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\total_retail.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = TotalRetailMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 社会消费品零售总额 (每年2月公布当年1-2月累计值)")

TransferFundMapping

TransferFund

TransferFund(
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)
Source code in wisecon\macro\transfer_fund.py
def __init__(
        self,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    self.size = size
    self.mapping = TransferFundMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="中国 交易结算资金(银证转账) 据投保基金公司2017年7月31日公告,该数据已停止更新。")