Documentation ¶
Index ¶
- Constants
- Variables
- type CashflowData
- type CashflowDataList
- type CompanyProfile
- type EastMoney
- func (e EastMoney) GetFC(secuCode string) string
- func (e EastMoney) QueryAllFundList(ctx context.Context, fundType FundType) (FundList, error)
- func (e EastMoney) QueryCompanyProfile(ctx context.Context, secuCode string) (CompanyProfile, error)
- func (e EastMoney) QueryFinaCashflowData(ctx context.Context, secuCode string) (CashflowDataList, error)
- func (e EastMoney) QueryFinaGincomeData(ctx context.Context, secuCode string) (GincomeDataList, error)
- func (e EastMoney) QueryFinaPublishDateList(ctx context.Context, securityCode string) (FinaPublishDateList, error)
- func (e EastMoney) QueryFreeHolders(ctx context.Context, secuCode string) (FreeHolderList, error)
- func (e EastMoney) QueryFundByStock(ctx context.Context, stockName, stockCode string) ([]HoldStockFund, error)
- func (e EastMoney) QueryFundInfo(ctx context.Context, fundCode string) (*RespFundInfo, error)
- func (e EastMoney) QueryFundListByPage(ctx context.Context, fundType FundType, pageIndex int) (RespFundList, error)
- func (e EastMoney) QueryHistoricalFinaMainData(ctx context.Context, secuCode string) (HistoricalFinaMainData, error)
- func (e EastMoney) QueryHistoricalPEList(ctx context.Context, secuCode string) (HistoricalPEList, error)
- func (e EastMoney) QueryIndustryList(ctx context.Context) ([]string, error)
- func (e EastMoney) QueryJiaZhiPingGu(ctx context.Context, secuCode string) (JZPG, error)
- func (e EastMoney) QueryOrgRating(ctx context.Context, secuCode string) (OrgRatingList, error)
- func (e EastMoney) QueryProfitPredict(ctx context.Context, secuCode string) (ProfitPredictList, error)
- func (e EastMoney) QuerySelectedStocks(ctx context.Context) (StockInfoList, error)
- func (e EastMoney) QuerySelectedStocksWithFilter(ctx context.Context, filter Filter) (StockInfoList, error)
- func (e EastMoney) QueryValuationStatus(ctx context.Context, secuCode string) (map[string]string, error)
- func (e EastMoney) QueryZongHePingJia(ctx context.Context, secuCode string) (ZHPJ, error)
- func (e EastMoney) SearchFund(ctx context.Context, kw string) (results []SearchFundInfo, err error)
- type FHSP
- type Filter
- type FinaMainData
- type FinaPublishDate
- type FinaPublishDateList
- type FinaReportType
- type FinaValueList
- type FreeHolder
- type FreeHolderList
- type FundList
- type FundListItem
- type FundType
- type GincomeData
- type GincomeDataList
- type HistoricalFinaMainData
- func (h HistoricalFinaMainData) FilterByReportType(ctx context.Context, reportType FinaReportType) HistoricalFinaMainData
- func (h HistoricalFinaMainData) FilterByReportYear(ctx context.Context, reportYear int) HistoricalFinaMainData
- func (h HistoricalFinaMainData) GetRecentReportYear(ctx context.Context) HistoricalFinaMainData
- func (h HistoricalFinaMainData) IsIncreasingByYears(ctx context.Context, valueType ValueListType, yearsCount int, ...) bool
- func (h HistoricalFinaMainData) IsStability(ctx context.Context, valueType ValueListType, yearsCount int, ...) bool
- func (h HistoricalFinaMainData) MidValue(ctx context.Context, valueType ValueListType, yearsCount int, ...) (float64, error)
- func (h HistoricalFinaMainData) Q1RevenueIncreasingRatio(ctx context.Context) (float64, error)
- func (h HistoricalFinaMainData) ValueList(ctx context.Context, valueType ValueListType, count int, ...) FinaValueList
- type HistoricalPE
- type HistoricalPEList
- type HoldStockFund
- type JDZF
- type JJCC
- type JJGM
- type JJJLNEW
- type JJXQ
- type JZPG
- func (j JZPG) GetCashFlowScore() string
- func (j JZPG) GetGrowUpScore() string
- func (j JZPG) GetOperationScore() string
- func (j JZPG) GetProfitabilityScore() string
- func (j JZPG) GetValuationScore() string
- func (j JZPG) GetValueRanking() string
- func (j JZPG) GetValueTotalScore() string
- func (j JZPG) String() string
- type MainForm
- type OrgRating
- type OrgRatingList
- type ProfitPredict
- type ProfitPredictList
- type RespCPBD
- type RespFinaCashflowData
- type RespFinaGincomeData
- type RespFinaMainData
- type RespFinaPublishDate
- type RespFreeHolders
- type RespFundInfo
- type RespFundList
- type RespHistoricalPE
- type RespIndustryList
- type RespJBZL
- type RespJiaZhiPingGu
- type RespOrgRating
- type RespProfitPredict
- type RespQueryFundByStock
- type RespSelectStocks
- type RespValuation
- type RespZongHePingJia
- type SearchFundInfo
- type StockInfo
- type StockInfoList
- type TSSJ
- type ValueListType
- type ZHPJ
Constants ¶
const ( // FinaReportTypeQ1 一季报 FinaReportTypeQ1 = "一季报" // FinaReportTypeMid 中报 FinaReportTypeMid = "中报" // FinaReportTypeQ3 三季报 FinaReportTypeQ3 = "三季报" // FinaReportTypeYear 年报 FinaReportTypeYear = "年报" )
Variables ¶
var ( // DefaultFilter 默认指标值 DefaultFilter = Filter{ MinROE: 10.0, MinTotalMarketCap: 50.0, MinPBNewMRQ: 0.1, ExcludeCYB: true, ExcludeKCB: true, } )
Functions ¶
This section is empty.
Types ¶
type CashflowData ¶
type CashflowData struct { Secucode string `json:"SECUCODE"` SecurityCode string `json:"SECURITY_CODE"` SecurityNameAbbr string `json:"SECURITY_NAME_ABBR"` OrgCode string `json:"ORG_CODE"` OrgType string `json:"ORG_TYPE"` ReportDate string `json:"REPORT_DATE"` ReportType string `json:"REPORT_TYPE"` ReportDateName string `json:"REPORT_DATE_NAME"` SecurityTypeCode string `json:"SECURITY_TYPE_CODE"` NoticeDate string `json:"NOTICE_DATE"` UpdateDate string `json:"UPDATE_DATE"` Currency string `json:"CURRENCY"` SalesServices float64 `json:"SALES_SERVICES"` DepositInterbankAdd float64 `json:"DEPOSIT_INTERBANK_ADD"` LoanPbcAdd float64 `json:"LOAN_PBC_ADD"` OfiBfAdd float64 `json:"OFI_BF_ADD"` ReceiveOrigicPremium float64 `json:"RECEIVE_ORIGIC_PREMIUM"` ReceiveReinsureNet float64 `json:"RECEIVE_REINSURE_NET"` InsuredInvestAdd float64 `json:"INSURED_INVEST_ADD"` DisposalTfaAdd float64 `json:"DISPOSAL_TFA_ADD"` ReceiveInterestCommission float64 `json:"RECEIVE_INTEREST_COMMISSION"` BorrowFundAdd float64 `json:"BORROW_FUND_ADD"` LoanAdvanceReduce float64 `json:"LOAN_ADVANCE_REDUCE"` RepoBusinessAdd float64 `json:"REPO_BUSINESS_ADD"` ReceiveTaxRefund float64 `json:"RECEIVE_TAX_REFUND"` ReceiveOtherOperate float64 `json:"RECEIVE_OTHER_OPERATE"` OperateInflowOther float64 `json:"OPERATE_INFLOW_OTHER"` OperateInflowBalance float64 `json:"OPERATE_INFLOW_BALANCE"` TotalOperateInflow float64 `json:"TOTAL_OPERATE_INFLOW"` BuyServices float64 `json:"BUY_SERVICES"` LoanAdvanceAdd float64 `json:"LOAN_ADVANCE_ADD"` PbcInterbankAdd float64 `json:"PBC_INTERBANK_ADD"` PayOrigicCompensate float64 `json:"PAY_ORIGIC_COMPENSATE"` PayInterestCommission float64 `json:"PAY_INTEREST_COMMISSION"` PayPolicyBonus float64 `json:"PAY_POLICY_BONUS"` PayStaffCash float64 `json:"PAY_STAFF_CASH"` PayAllTax float64 `json:"PAY_ALL_TAX"` PayOtherOperate float64 `json:"PAY_OTHER_OPERATE"` OperateOutflowOther float64 `json:"OPERATE_OUTFLOW_OTHER"` OperateOutflowBalance float64 `json:"OPERATE_OUTFLOW_BALANCE"` TotalOperateOutflow float64 `json:"TOTAL_OPERATE_OUTFLOW"` OperateNetcashOther float64 `json:"OPERATE_NETCASH_OTHER"` OperateNetcashBalance float64 `json:"OPERATE_NETCASH_BALANCE"` // 经营活动产生的现金流量净额 NetcashOperate float64 `json:"NETCASH_OPERATE"` WithdrawInvest float64 `json:"WITHDRAW_INVEST"` ReceiveInvestIncome float64 `json:"RECEIVE_INVEST_INCOME"` DisposalLongAsset float64 `json:"DISPOSAL_LONG_ASSET"` DisposalSubsidiaryOther float64 `json:"DISPOSAL_SUBSIDIARY_OTHER"` ReducePledgeTimedeposits float64 `json:"REDUCE_PLEDGE_TIMEDEPOSITS"` ReceiveOtherInvest float64 `json:"RECEIVE_OTHER_INVEST"` InvestInflowOther float64 `json:"INVEST_INFLOW_OTHER"` InvestInflowBalance float64 `json:"INVEST_INFLOW_BALANCE"` TotalInvestInflow float64 `json:"TOTAL_INVEST_INFLOW"` ConstructLongAsset float64 `json:"CONSTRUCT_LONG_ASSET"` InvestPayCash float64 `json:"INVEST_PAY_CASH"` PledgeLoanAdd float64 `json:"PLEDGE_LOAN_ADD"` ObtainSubsidiaryOther float64 `json:"OBTAIN_SUBSIDIARY_OTHER"` AddPledgeTimedeposits float64 `json:"ADD_PLEDGE_TIMEDEPOSITS"` PayOtherInvest float64 `json:"PAY_OTHER_INVEST"` InvestOutflowOther float64 `json:"INVEST_OUTFLOW_OTHER"` InvestOutflowBalance float64 `json:"INVEST_OUTFLOW_BALANCE"` TotalInvestOutflow float64 `json:"TOTAL_INVEST_OUTFLOW"` InvestNetcashOther float64 `json:"INVEST_NETCASH_OTHER"` InvestNetcashBalance float64 `json:"INVEST_NETCASH_BALANCE"` // 投资活动产生的现金流量净额 NetcashInvest float64 `json:"NETCASH_INVEST"` AcceptInvestCash float64 `json:"ACCEPT_INVEST_CASH"` SubsidiaryAcceptInvest float64 `json:"SUBSIDIARY_ACCEPT_INVEST"` ReceiveLoanCash float64 `json:"RECEIVE_LOAN_CASH"` IssueBond float64 `json:"ISSUE_BOND"` ReceiveOtherFinance float64 `json:"RECEIVE_OTHER_FINANCE"` FinanceInflowOther float64 `json:"FINANCE_INFLOW_OTHER"` FinanceInflowBalance float64 `json:"FINANCE_INFLOW_BALANCE"` TotalFinanceInflow float64 `json:"TOTAL_FINANCE_INFLOW"` PayDebtCash float64 `json:"PAY_DEBT_CASH"` AssignDividendPorfit float64 `json:"ASSIGN_DIVIDEND_PORFIT"` SubsidiaryPayDividend float64 `json:"SUBSIDIARY_PAY_DIVIDEND"` BuySubsidiaryEquity float64 `json:"BUY_SUBSIDIARY_EQUITY"` PayOtherFinance float64 `json:"PAY_OTHER_FINANCE"` SubsidiaryReduceCash float64 `json:"SUBSIDIARY_REDUCE_CASH"` FinanceOutflowOther float64 `json:"FINANCE_OUTFLOW_OTHER"` FinanceOutflowBalance float64 `json:"FINANCE_OUTFLOW_BALANCE"` TotalFinanceOutflow float64 `json:"TOTAL_FINANCE_OUTFLOW"` FinanceNetcashOther float64 `json:"FINANCE_NETCASH_OTHER"` FinanceNetcashBalance float64 `json:"FINANCE_NETCASH_BALANCE"` // 筹资活动产生的现金流量净额 NetcashFinance float64 `json:"NETCASH_FINANCE"` RateChangeEffect float64 `json:"RATE_CHANGE_EFFECT"` CceAddOther float64 `json:"CCE_ADD_OTHER"` CceAddBalance float64 `json:"CCE_ADD_BALANCE"` CceAdd float64 `json:"CCE_ADD"` BeginCce float64 `json:"BEGIN_CCE"` EndCceOther float64 `json:"END_CCE_OTHER"` EndCceBalance float64 `json:"END_CCE_BALANCE"` EndCce float64 `json:"END_CCE"` Netprofit float64 `json:"NETPROFIT"` AssetImpairment float64 `json:"ASSET_IMPAIRMENT"` FaIrDepr float64 `json:"FA_IR_DEPR"` OilgasBiologyDepr float64 `json:"OILGAS_BIOLOGY_DEPR"` IrDepr float64 `json:"IR_DEPR"` IaAmortize float64 `json:"IA_AMORTIZE"` LpeAmortize float64 `json:"LPE_AMORTIZE"` DeferIncomeAmortize float64 `json:"DEFER_INCOME_AMORTIZE"` PrepaidExpenseReduce float64 `json:"PREPAID_EXPENSE_REDUCE"` AccruedExpenseAdd float64 `json:"ACCRUED_EXPENSE_ADD"` DisposalLongassetLoss float64 `json:"DISPOSAL_LONGASSET_LOSS"` FaScrapLoss float64 `json:"FA_SCRAP_LOSS"` FairvalueChangeLoss float64 `json:"FAIRVALUE_CHANGE_LOSS"` FinanceExpense float64 `json:"FINANCE_EXPENSE"` InvestLoss float64 `json:"INVEST_LOSS"` DeferTax float64 `json:"DEFER_TAX"` DtAssetReduce float64 `json:"DT_ASSET_REDUCE"` DtLiabAdd float64 `json:"DT_LIAB_ADD"` PredictLiabAdd float64 `json:"PREDICT_LIAB_ADD"` InventoryReduce float64 `json:"INVENTORY_REDUCE"` OperateReceReduce float64 `json:"OPERATE_RECE_REDUCE"` OperatePayableAdd float64 `json:"OPERATE_PAYABLE_ADD"` Other float64 `json:"OTHER"` OperateNetcashOthernote float64 `json:"OPERATE_NETCASH_OTHERNOTE"` OperateNetcashBalancenote float64 `json:"OPERATE_NETCASH_BALANCENOTE"` NetcashOperatenote float64 `json:"NETCASH_OPERATENOTE"` DebtTransferCapital float64 `json:"DEBT_TRANSFER_CAPITAL"` ConvertBond1Year float64 `json:"CONVERT_BOND_1YEAR"` FinleaseObtainFa float64 `json:"FINLEASE_OBTAIN_FA"` UninvolveInvestfinOther float64 `json:"UNINVOLVE_INVESTFIN_OTHER"` EndCash float64 `json:"END_CASH"` BeginCash float64 `json:"BEGIN_CASH"` EndCashEquivalents float64 `json:"END_CASH_EQUIVALENTS"` BeginCashEquivalents float64 `json:"BEGIN_CASH_EQUIVALENTS"` CceAddOthernote float64 `json:"CCE_ADD_OTHERNOTE"` CceAddBalancenote float64 `json:"CCE_ADD_BALANCENOTE"` CceAddnote float64 `json:"CCE_ADDNOTE"` SalesServicesYoy float64 `json:"SALES_SERVICES_YOY"` DepositInterbankAddYoy float64 `json:"DEPOSIT_INTERBANK_ADD_YOY"` LoanPbcAddYoy float64 `json:"LOAN_PBC_ADD_YOY"` OfiBfAddYoy float64 `json:"OFI_BF_ADD_YOY"` ReceiveOrigicPremiumYoy float64 `json:"RECEIVE_ORIGIC_PREMIUM_YOY"` ReceiveReinsureNetYoy float64 `json:"RECEIVE_REINSURE_NET_YOY"` InsuredInvestAddYoy float64 `json:"INSURED_INVEST_ADD_YOY"` DisposalTfaAddYoy float64 `json:"DISPOSAL_TFA_ADD_YOY"` ReceiveInterestCommissionYoy float64 `json:"RECEIVE_INTEREST_COMMISSION_YOY"` BorrowFundAddYoy float64 `json:"BORROW_FUND_ADD_YOY"` LoanAdvanceReduceYoy float64 `json:"LOAN_ADVANCE_REDUCE_YOY"` RepoBusinessAddYoy float64 `json:"REPO_BUSINESS_ADD_YOY"` ReceiveTaxRefundYoy float64 `json:"RECEIVE_TAX_REFUND_YOY"` ReceiveOtherOperateYoy float64 `json:"RECEIVE_OTHER_OPERATE_YOY"` OperateInflowOtherYoy float64 `json:"OPERATE_INFLOW_OTHER_YOY"` OperateInflowBalanceYoy float64 `json:"OPERATE_INFLOW_BALANCE_YOY"` TotalOperateInflowYoy float64 `json:"TOTAL_OPERATE_INFLOW_YOY"` BuyServicesYoy float64 `json:"BUY_SERVICES_YOY"` LoanAdvanceAddYoy float64 `json:"LOAN_ADVANCE_ADD_YOY"` PbcInterbankAddYoy float64 `json:"PBC_INTERBANK_ADD_YOY"` PayOrigicCompensateYoy float64 `json:"PAY_ORIGIC_COMPENSATE_YOY"` PayInterestCommissionYoy float64 `json:"PAY_INTEREST_COMMISSION_YOY"` PayPolicyBonusYoy float64 `json:"PAY_POLICY_BONUS_YOY"` PayStaffCashYoy float64 `json:"PAY_STAFF_CASH_YOY"` PayAllTaxYoy float64 `json:"PAY_ALL_TAX_YOY"` PayOtherOperateYoy float64 `json:"PAY_OTHER_OPERATE_YOY"` OperateOutflowOtherYoy float64 `json:"OPERATE_OUTFLOW_OTHER_YOY"` OperateOutflowBalanceYoy float64 `json:"OPERATE_OUTFLOW_BALANCE_YOY"` TotalOperateOutflowYoy float64 `json:"TOTAL_OPERATE_OUTFLOW_YOY"` OperateNetcashOtherYoy float64 `json:"OPERATE_NETCASH_OTHER_YOY"` OperateNetcashBalanceYoy float64 `json:"OPERATE_NETCASH_BALANCE_YOY"` NetcashOperateYoy float64 `json:"NETCASH_OPERATE_YOY"` WithdrawInvestYoy float64 `json:"WITHDRAW_INVEST_YOY"` ReceiveInvestIncomeYoy float64 `json:"RECEIVE_INVEST_INCOME_YOY"` DisposalLongAssetYoy float64 `json:"DISPOSAL_LONG_ASSET_YOY"` DisposalSubsidiaryOtherYoy float64 `json:"DISPOSAL_SUBSIDIARY_OTHER_YOY"` ReducePledgeTimedepositsYoy float64 `json:"REDUCE_PLEDGE_TIMEDEPOSITS_YOY"` ReceiveOtherInvestYoy float64 `json:"RECEIVE_OTHER_INVEST_YOY"` InvestInflowOtherYoy float64 `json:"INVEST_INFLOW_OTHER_YOY"` InvestInflowBalanceYoy float64 `json:"INVEST_INFLOW_BALANCE_YOY"` TotalInvestInflowYoy float64 `json:"TOTAL_INVEST_INFLOW_YOY"` ConstructLongAssetYoy float64 `json:"CONSTRUCT_LONG_ASSET_YOY"` InvestPayCashYoy float64 `json:"INVEST_PAY_CASH_YOY"` PledgeLoanAddYoy float64 `json:"PLEDGE_LOAN_ADD_YOY"` ObtainSubsidiaryOtherYoy float64 `json:"OBTAIN_SUBSIDIARY_OTHER_YOY"` AddPledgeTimedepositsYoy float64 `json:"ADD_PLEDGE_TIMEDEPOSITS_YOY"` PayOtherInvestYoy float64 `json:"PAY_OTHER_INVEST_YOY"` InvestOutflowOtherYoy float64 `json:"INVEST_OUTFLOW_OTHER_YOY"` InvestOutflowBalanceYoy float64 `json:"INVEST_OUTFLOW_BALANCE_YOY"` TotalInvestOutflowYoy float64 `json:"TOTAL_INVEST_OUTFLOW_YOY"` InvestNetcashOtherYoy float64 `json:"INVEST_NETCASH_OTHER_YOY"` InvestNetcashBalanceYoy float64 `json:"INVEST_NETCASH_BALANCE_YOY"` NetcashInvestYoy float64 `json:"NETCASH_INVEST_YOY"` AcceptInvestCashYoy float64 `json:"ACCEPT_INVEST_CASH_YOY"` SubsidiaryAcceptInvestYoy float64 `json:"SUBSIDIARY_ACCEPT_INVEST_YOY"` ReceiveLoanCashYoy float64 `json:"RECEIVE_LOAN_CASH_YOY"` IssueBondYoy float64 `json:"ISSUE_BOND_YOY"` ReceiveOtherFinanceYoy float64 `json:"RECEIVE_OTHER_FINANCE_YOY"` FinanceInflowOtherYoy float64 `json:"FINANCE_INFLOW_OTHER_YOY"` FinanceInflowBalanceYoy float64 `json:"FINANCE_INFLOW_BALANCE_YOY"` TotalFinanceInflowYoy float64 `json:"TOTAL_FINANCE_INFLOW_YOY"` PayDebtCashYoy float64 `json:"PAY_DEBT_CASH_YOY"` AssignDividendPorfitYoy float64 `json:"ASSIGN_DIVIDEND_PORFIT_YOY"` SubsidiaryPayDividendYoy float64 `json:"SUBSIDIARY_PAY_DIVIDEND_YOY"` BuySubsidiaryEquityYoy float64 `json:"BUY_SUBSIDIARY_EQUITY_YOY"` PayOtherFinanceYoy float64 `json:"PAY_OTHER_FINANCE_YOY"` SubsidiaryReduceCashYoy float64 `json:"SUBSIDIARY_REDUCE_CASH_YOY"` FinanceOutflowOtherYoy float64 `json:"FINANCE_OUTFLOW_OTHER_YOY"` FinanceOutflowBalanceYoy float64 `json:"FINANCE_OUTFLOW_BALANCE_YOY"` TotalFinanceOutflowYoy float64 `json:"TOTAL_FINANCE_OUTFLOW_YOY"` FinanceNetcashOtherYoy float64 `json:"FINANCE_NETCASH_OTHER_YOY"` FinanceNetcashBalanceYoy float64 `json:"FINANCE_NETCASH_BALANCE_YOY"` NetcashFinanceYoy float64 `json:"NETCASH_FINANCE_YOY"` RateChangeEffectYoy float64 `json:"RATE_CHANGE_EFFECT_YOY"` CceAddOtherYoy float64 `json:"CCE_ADD_OTHER_YOY"` CceAddBalanceYoy float64 `json:"CCE_ADD_BALANCE_YOY"` CceAddYoy float64 `json:"CCE_ADD_YOY"` BeginCceYoy float64 `json:"BEGIN_CCE_YOY"` EndCceOtherYoy float64 `json:"END_CCE_OTHER_YOY"` EndCceBalanceYoy float64 `json:"END_CCE_BALANCE_YOY"` EndCceYoy float64 `json:"END_CCE_YOY"` NetprofitYoy float64 `json:"NETPROFIT_YOY"` AssetImpairmentYoy float64 `json:"ASSET_IMPAIRMENT_YOY"` FaIrDeprYoy float64 `json:"FA_IR_DEPR_YOY"` OilgasBiologyDeprYoy float64 `json:"OILGAS_BIOLOGY_DEPR_YOY"` IrDeprYoy float64 `json:"IR_DEPR_YOY"` IaAmortizeYoy float64 `json:"IA_AMORTIZE_YOY"` LpeAmortizeYoy float64 `json:"LPE_AMORTIZE_YOY"` DeferIncomeAmortizeYoy float64 `json:"DEFER_INCOME_AMORTIZE_YOY"` PrepaidExpenseReduceYoy float64 `json:"PREPAID_EXPENSE_REDUCE_YOY"` AccruedExpenseAddYoy float64 `json:"ACCRUED_EXPENSE_ADD_YOY"` DisposalLongassetLossYoy float64 `json:"DISPOSAL_LONGASSET_LOSS_YOY"` FaScrapLossYoy float64 `json:"FA_SCRAP_LOSS_YOY"` FairvalueChangeLossYoy float64 `json:"FAIRVALUE_CHANGE_LOSS_YOY"` FinanceExpenseYoy float64 `json:"FINANCE_EXPENSE_YOY"` InvestLossYoy float64 `json:"INVEST_LOSS_YOY"` DeferTaxYoy float64 `json:"DEFER_TAX_YOY"` DtAssetReduceYoy float64 `json:"DT_ASSET_REDUCE_YOY"` DtLiabAddYoy float64 `json:"DT_LIAB_ADD_YOY"` PredictLiabAddYoy float64 `json:"PREDICT_LIAB_ADD_YOY"` InventoryReduceYoy float64 `json:"INVENTORY_REDUCE_YOY"` OperateReceReduceYoy float64 `json:"OPERATE_RECE_REDUCE_YOY"` OperatePayableAddYoy float64 `json:"OPERATE_PAYABLE_ADD_YOY"` OtherYoy float64 `json:"OTHER_YOY"` OperateNetcashOthernoteYoy float64 `json:"OPERATE_NETCASH_OTHERNOTE_YOY"` OperateNetcashBalancenoteYoy float64 `json:"OPERATE_NETCASH_BALANCENOTE_YOY"` NetcashOperatenoteYoy float64 `json:"NETCASH_OPERATENOTE_YOY"` DebtTransferCapitalYoy float64 `json:"DEBT_TRANSFER_CAPITAL_YOY"` ConvertBond1YearYoy float64 `json:"CONVERT_BOND_1YEAR_YOY"` FinleaseObtainFaYoy float64 `json:"FINLEASE_OBTAIN_FA_YOY"` UninvolveInvestfinOtherYoy float64 `json:"UNINVOLVE_INVESTFIN_OTHER_YOY"` EndCashYoy float64 `json:"END_CASH_YOY"` BeginCashYoy float64 `json:"BEGIN_CASH_YOY"` EndCashEquivalentsYoy float64 `json:"END_CASH_EQUIVALENTS_YOY"` BeginCashEquivalentsYoy float64 `json:"BEGIN_CASH_EQUIVALENTS_YOY"` CceAddOthernoteYoy float64 `json:"CCE_ADD_OTHERNOTE_YOY"` CceAddBalancenoteYoy float64 `json:"CCE_ADD_BALANCENOTE_YOY"` CceAddnoteYoy float64 `json:"CCE_ADDNOTE_YOY"` OpinionType string `json:"OPINION_TYPE"` OsopinionType string `json:"OSOPINION_TYPE"` MinorityInterest float64 `json:"MINORITY_INTEREST"` MinorityInterestYoy float64 `json:"MINORITY_INTEREST_YOY"` }
CashflowData 现金流量数据
type CompanyProfile ¶
type CompanyProfile struct { // 股票代码 Secucode string // 公司名称 Name string // 所属行业 Industry string `json:"industry"` // 所属概念 Concept string `json:"concept"` // 简介 Profile string `json:"profile"` // 主营业务 MainBusiness string `json:"main_business"` // 题材关键词 Keywords []string `json:"keywords"` // 主营构成 MainForms []MainForm `json:"main_forms"` }
CompanyProfile 公司简介资料
func (CompanyProfile) KeywordsString ¶
func (c CompanyProfile) KeywordsString() string
KeywordsString 关键词字符串
func (CompanyProfile) MainFormsString ¶
func (c CompanyProfile) MainFormsString() string
MainFormsString 主营构成字符串
func (CompanyProfile) ProfileString ¶
func (c CompanyProfile) ProfileString() string
ProfileString 公司信息
type EastMoney ¶
EastMoney 东方财富数据源
func (EastMoney) QueryAllFundList ¶
QueryAllFundList 获取天天基金净值列表全量数据,耗时很长
func (EastMoney) QueryCompanyProfile ¶
func (e EastMoney) QueryCompanyProfile(ctx context.Context, secuCode string) (CompanyProfile, error)
QueryCompanyProfile 获取公司信息
func (EastMoney) QueryFinaCashflowData ¶
func (e EastMoney) QueryFinaCashflowData(ctx context.Context, secuCode string) (CashflowDataList, error)
QueryFinaCashflowData 获取财务分析现金流量表数据,最新数据在最前面
func (EastMoney) QueryFinaGincomeData ¶
func (e EastMoney) QueryFinaGincomeData(ctx context.Context, secuCode string) (GincomeDataList, error)
QueryFinaGincomeData 获取财务分析利润表数据,最新数据在最前面
func (EastMoney) QueryFinaPublishDateList ¶
func (e EastMoney) QueryFinaPublishDateList(ctx context.Context, securityCode string) (FinaPublishDateList, error)
QueryFinaPublishDateList 查询最新财报披露日期
func (EastMoney) QueryFreeHolders ¶
QueryFreeHolders 获取前十大流通股东信息
func (EastMoney) QueryFundByStock ¶
func (e EastMoney) QueryFundByStock(ctx context.Context, stockName, stockCode string) ([]HoldStockFund, error)
QueryFundByStock 根据股票查询基金
func (EastMoney) QueryFundInfo ¶
QueryFundInfo 查询基金详情
func (EastMoney) QueryFundListByPage ¶
func (e EastMoney) QueryFundListByPage(ctx context.Context, fundType FundType, pageIndex int) (RespFundList, error)
QueryFundListByPage 按页获取天天基金净值列表,接口限制最大30个
func (EastMoney) QueryHistoricalFinaMainData ¶
func (e EastMoney) QueryHistoricalFinaMainData(ctx context.Context, secuCode string) (HistoricalFinaMainData, error)
QueryHistoricalFinaMainData 获取财报主要指标,最新的在最前面
func (EastMoney) QueryHistoricalPEList ¶
func (e EastMoney) QueryHistoricalPEList(ctx context.Context, secuCode string) (HistoricalPEList, error)
QueryHistoricalPEList 获取历史市盈率
func (EastMoney) QueryIndustryList ¶
QueryIndustryList 获取行业列表
func (EastMoney) QueryJiaZhiPingGu ¶
QueryJiaZhiPingGu 返回智能诊股中的价值评估
func (EastMoney) QueryOrgRating ¶
QueryOrgRating 获取评级统计
func (EastMoney) QueryProfitPredict ¶
func (e EastMoney) QueryProfitPredict(ctx context.Context, secuCode string) (ProfitPredictList, error)
QueryProfitPredict 获取盈利预测
func (EastMoney) QuerySelectedStocks ¶
func (e EastMoney) QuerySelectedStocks(ctx context.Context) (StockInfoList, error)
QuerySelectedStocks 按选股指标默认值筛选股票
func (EastMoney) QuerySelectedStocksWithFilter ¶
func (e EastMoney) QuerySelectedStocksWithFilter(ctx context.Context, filter Filter) (StockInfoList, error)
QuerySelectedStocksWithFilter 自定义选股指标值筛选股票
func (EastMoney) QueryValuationStatus ¶
func (e EastMoney) QueryValuationStatus(ctx context.Context, secuCode string) (map[string]string, error)
QueryValuationStatus 获取估值状态
func (EastMoney) QueryZongHePingJia ¶
QueryZongHePingJia 返回智能诊股中的综合评价
func (EastMoney) SearchFund ¶
SearchFund 关键词搜索, 股票、代码、拼音
type FHSP ¶
type FHSP struct { Datas struct { Fhinfo []struct { Fsrq string `json:"FSRQ"` // 权益登记日 Djr string `json:"DJR"` // 每份分红(元) Fhfcz interface{} `json:"FHFCZ"` Cfbl string `json:"CFBL"` Fhfcbz string `json:"FHFCBZ"` Cflx string `json:"CFLX"` // 分红发放日 Ffr string `json:"FFR"` Fh string `json:"FH"` Dtype string `json:"DTYPE"` } `json:"FHINFO"` Fcinfo []interface{} `json:"FCINFO"` } `json:"Datas"` }
FHSP 分红送配
type Filter ¶
type Filter struct { // ------ 最重要的指标!!!------ // 最低净资产收益率(%), ROE_WEIGHT MinROE float64 `json:"min_roe" form:"selector_min_roe"` // ------ 必要参数 ------ // 最低净利润增长率(%) , NETPROFIT_YOY_RATIO MinNetprofitYoyRatio float64 `json:"min_netprofit_yoy_ratio" form:"selector_min_netprofit_yoy_ratio"` // 最低营收增长率(%) , TOI_YOY_RATIO MinToiYoyRatio float64 `json:"min_toi_yoy_ratio" form:"selector_min_toi_yoy_ratio"` // 最低最新股息率(%), ZXGXL MinZXGXL float64 `json:"min_zxgxl" form:"selector_min_zxgxl"` // 最低净利润 3 年复合增长率(%), NETPROFIT_GROWTHRATE_3Y MinNetprofitGrowthrate3Y float64 `json:"min_netprofit_growthrate_3_y" form:"selector_min_netprofit_growthrate_3_y"` // 最低营收 3 年复合增长率(%), INCOME_GROWTHRATE_3Y MinIncomeGrowthrate3Y float64 `json:"min_income_growthrate_3_y" form:"selector_min_income_growthrate_3_y"` // 最低上市以来年化收益率(%) , LISTING_YIELD_YEAR MinListingYieldYear float64 `json:"min_listing_yield_year" form:"selector_min_listing_yield_year"` // 最低市净率, PBNEWMRQ MinPBNewMRQ float64 `json:"min_pb_new_mrq" form:"selector_min_pb_new_mrq"` // 最大资产负债率 (%) MaxDebtAssetRatio float64 `json:"max_debt_asset_ratio" form:"selector_max_debt_asset_ratio"` // ------ 可选参数 ------ // 最低预测净利润同比增长(%), PREDICT_NETPROFIT_RATIO MinPredictNetprofitRatio float64 `json:"min_predict_netprofit_ratio" form:"selector_min_predict_netprofit_ratio"` // 最低预测营收同比增长(%), PREDICT_INCOME_RATIO MinPredictIncomeRatio float64 `json:"min_predict_income_ratio" form:"selector_min_predict_income_ratio"` // 最低总市值(亿), TOTAL_MARKET_CAP MinTotalMarketCap float64 `json:"min_total_market_cap" form:"selector_min_total_market_cap"` // 行业名(可选参数,不设置搜全行业), INDUSTRY IndustryList []string `json:"industry_list" form:"selector_industry_list"` // 股价范围最小值(元), NEW_PRICE MinPrice float64 `json:"min_price" form:"selector_min_price"` // 股价范围最大值(元), NEW_PRICE MaxPrice float64 `json:"max_price" form:"selector_max_price"` // 上市时间是否超过 5 年,@LISTING_DATE="OVER5Y" ListingOver5Y bool `json:"listing_over_5_y" form:"selector_listing_over_5_y"` // 最低上市以来年化波动率, LISTING_VOLATILITY_YEAR MinListingVolatilityYear float64 `json:"min_listing_volatility_year" form:"selector_min_listing_volatility_year"` // 是否排除创业板 300XXX ExcludeCYB bool `json:"exclude_cyb" form:"selector_exclude_cyb"` // 是否排除科创板 688XXX ExcludeKCB bool `json:"exclude_kcb" form:"selector_exclude_kcb"` // 查询指定名称 SpecialSecurityNameAbbrList []string `json:"special_security_name_abbr_list" form:"selector_special_security_name_abbr_list"` // 查询指定代码 SpecialSecurityCodeList []string `json:"special_security_code_list" form:"selector_special_security_code_list"` // 最小总资产收益率 ROA MinROA float64 `json:"min_roa" form:"selector_min_roa"` }
Filter 我的选股指标 注意:指标数据取决于最新一期的财报数据,可能是年报也可能是其他季报,使用时需注意应该同期对比
type FinaMainData ¶
type FinaMainData struct { // 股票代码: 111111.SZ Secucode string `json:"SECUCODE"` // 股票代码: 111111 SecurityCode string `json:"SECURITY_CODE"` // 股票名称 SecurityNameAbbr string `json:"SECURITY_NAME_ABBR"` OrgCode string `json:"ORG_CODE"` OrgType string `json:"ORG_TYPE"` // 报告期 ReportDate string `json:"REPORT_DATE"` // 财报类型:年报、三季报、中报、一季报 ReportType string `json:"REPORT_TYPE"` // 财报名称: 2021 一季报 ReportDateName string `json:"REPORT_DATE_NAME"` // 财报年份: 2021 ReportYear string `json:"REPORT_YEAR"` SecurityTypeCode string `json:"SECURITY_TYPE_CODE"` NoticeDate string `json:"NOTICE_DATE"` // 财报更新时间 UpdateDate string `json:"UPDATE_DATE"` // 货币类型: CNY Currency string `json:"CURRENCY"` // ------ 每股指标 ------ // 基本每股收益(元) Epsjb float64 `json:"EPSJB"` // 基本每股收益同比增长(%) Epsjbtz float64 `json:"EPSJBTZ"` // 扣非每股收益(元) Epskcjb float64 `json:"EPSKCJB"` // 稀释每股收益(元) Epsxs float64 `json:"EPSXS"` // 每股净资产(元) Bps float64 `json:"BPS"` // 每股净资产同比增长(%) Bpstz float64 `json:"BPSTZ"` // 每股资本公积(元) Mgzbgj float64 `json:"MGZBGJ"` // 每股资本公积同比增长(%) Mgzbgjtz float64 `json:"MGZBGJTZ"` // 每股未分配利润(元) Mgwfplr float64 `json:"MGWFPLR"` // 每股未分配利润同比增长(%) Mgwfplrtz float64 `json:"MGWFPLRTZ"` // 每股经营现金流(元) Mgjyxjje float64 `json:"MGJYXJJE"` // 每股经营现金流同比增长(%) Mgjyxjjetz float64 `json:"MGJYXJJETZ"` // ------ 成长能力指标 ------ // 营业总收入(元) Totaloperatereve float64 `json:"TOTALOPERATEREVE"` // 营业总收入同比增长(%) Totaloperaterevetz float64 `json:"TOTALOPERATEREVETZ"` // 毛利润(元) Mlr float64 `json:"MLR"` // 归属净利润(元) Parentnetprofit float64 `json:"PARENTNETPROFIT"` // 归属净利润同比增长(%) Parentnetprofittz float64 `json:"PARENTNETPROFITTZ"` // 扣非净利润(元) Kcfjcxsyjlr float64 `json:"KCFJCXSYJLR"` // 扣非净利润同比增长(%) Kcfjcxsyjlrtz float64 `json:"KCFJCXSYJLRTZ"` // 营业总收入滚动环比增长(%) Yyzsrgdhbzc float64 `json:"YYZSRGDHBZC"` // 归属净利润滚动环比增长(%) Netprofitrphbzc float64 `json:"NETPROFITRPHBZC"` // 扣非净利润滚动环比增长(%) Kfjlrgdhbzc float64 `json:"KFJLRGDHBZC"` // ------ 盈利能力指标 ------ // 净资产收益率(加权)(%) Roejq float64 `json:"ROEJQ"` // 净资产收益率(扣非/加权)(%) Roekcjq float64 `json:"ROEKCJQ"` // 净资产收益率同比增长(%) Roejqtz float64 `json:"ROEJQTZ"` // 总资产收益率(加权) ROA (%) Zzcjll float64 `json:"ZZCJLL"` // 总资产收益率同比增长(%) Zzcjlltz float64 `json:"ZZCJLLTZ"` // 投入资本回报率(%) Roic float64 `json:"ROIC"` // 投入资本回报率同比增长(%) Roictz float64 `json:"ROICTZ"` // 毛利率(%) Xsmll float64 `json:"XSMLL"` // 净利率(%) Xsjll float64 `json:"XSJLL"` // ------ 收益质量指标 ------ // 预收账款/营业收入 Yszkyysr interface{} `json:"YSZKYYSR"` // 销售净现金流/营业收入 Xsjxlyysr float64 `json:"XSJXLYYSR"` // 经营净现金流/营业收入 Jyxjlyysr float64 `json:"JYXJLYYSR"` // 实际税率(%) Taxrate float64 `json:"TAXRATE"` // ------ 财务风险指标 ------ // 流动比率 Ld float64 `json:"LD"` // 速动比率 Sd float64 `json:"SD"` // 现金流量比率 Xjllb float64 `json:"XJLLB"` // 资产负债率(%) Zcfzl float64 `json:"ZCFZL"` // 资产负债率同比增长(%) Zcfzltz float64 `json:"ZCFZLTZ"` // 权益乘数 Qycs float64 `json:"QYCS"` // 产权比率 Cqbl float64 `json:"CQBL"` // ------ 营运能力指标 ------ // 总资产周转天数(天) Zzczzts float64 `json:"ZZCZZTS"` // 存货周转天数(天) Chzzts float64 `json:"CHZZTS"` // 应收账款周转天数(天) Yszkzzts float64 `json:"YSZKZZTS"` // 总资产周转率(次) Toazzl float64 `json:"TOAZZL"` // 存货周转率(次) Chzzl float64 `json:"CHZZL"` // 应收账款周转率(次) Yszkzzl float64 `json:"YSZKZZL"` // ------ 银行股专项指标 ------ // 存款总额 TotalDeposits float64 `json:"TOTALDEPOSITS"` // 贷款总额 GrossLoans float64 `json:"GROSSLOANS"` // 存贷款比例 Ltdrr float64 `json:"LTDRR"` // 资本充足率 Newcapitalader float64 `json:"NEWCAPITALADER"` // 核心资产充足率 Hxyjbczl float64 `json:"HXYJBCZL"` // 不良贷款率 NonPerLoan float64 `json:"NONPERLOAN"` // 不良贷款拨备覆盖率 Bldkbbl float64 `json:"BLDKBBL"` // 资本净额 Nzbje float64 `json:"NZBJE"` // ------ 保险股专项指标 ------ // 总投资收益率 TotalRoi float64 `json:"TOTAL_ROI"` // 净投资收益率 NetRoi float64 `json:"NET_ROI"` // 已赚保费 EarnedPremium float64 `json:"EARNED_PREMIUM"` // 赔付支出 CompensateExpense float64 `json:"COMPENSATE_EXPENSE"` // 退保率 SurrenderRateLife float64 `json:"SURRENDER_RATE_LIFE"` // 偿付能力充足率 SolvencyAr float64 `json:"SOLVENCY_AR"` // 新业务价值(寿险) NbvLife float64 `json:"NBV_LIFE"` // 新业务价值率(寿险) NbvRate float64 `json:"NBV_RATE"` // 内含价值(寿险) NhjzCurrentAmt float64 `json:"NHJZ_CURRENT_AMT"` }
FinaMainData 财报主要指标
type FinaPublishDate ¶
type FinaPublishDate struct { SecurityCode string `json:"SECURITY_CODE"` SecurityNameAbbr string `json:"SECURITY_NAME_ABBR"` AppointPublishDate string `json:"APPOINT_PUBLISH_DATE"` ReportDate string `json:"REPORT_DATE"` ActualPublishDate string `json:"ACTUAL_PUBLISH_DATE"` ReportTypeName string `json:"REPORT_TYPE_NAME"` IsPublish string `json:"IS_PUBLISH"` }
FinaPublishDate 财报发布时间
type FinaValueList ¶
type FinaValueList []float64
FinaValueList 历史数据值列表
func (FinaValueList) String ¶
func (fvl FinaValueList) String() string
type FreeHolder ¶
type FreeHolder struct { // 日期 EndDate string `json:"END_DATE"` // 股东名称 HolderName string `json:"HOLDER_NAME"` // 股东代码 HolderCode string `json:"HOLDER_CODE"` // 持股数 HoldNum int `json:"HOLD_NUM"` // 占流通股比 FreeHoldnumRatio float64 `json:"FREE_HOLDNUM_RATIO"` // 环比增减 FreeRatioQoq string `json:"FREE_RATIO_QOQ"` // 1:机构 0:个人 IsHoldorg string `json:"IS_HOLDORG"` // 持股数排名 HolderRank int `json:"HOLDER_RANK"` }
FreeHolder 流通股东
type FreeHolderList ¶
type FreeHolderList []FreeHolder
FreeHolderList ...
func (FreeHolderList) String ¶
func (f FreeHolderList) String() string
type FundListItem ¶
type FundListItem struct { // 基金代码 Fcode string `json:"FCODE"` // 基金名 Shortname string `json:"SHORTNAME"` // 001:股票型、指数型、ETF、ETF联接、LOF // 002:混合型、FOF // 003:债券型 // 005:货币型 // 007:QDII型 Fundtype string `json:"FUNDTYPE"` Bfundtype string `json:"BFUNDTYPE"` Feature string `json:"FEATURE"` Fsrq string `json:"FSRQ"` Gpsj string `json:"GPSJ"` // 净值 Zjl string `json:"ZJL"` Opendate string `json:"OPENDATE"` Targetyield string `json:"TARGETYIELD"` Dwjz string `json:"DWJZ"` Hldwjz string `json:"HLDWJZ"` Ljjz string `json:"LJJZ"` // 日涨幅 (%) Rzdf string `json:"RZDF"` Cycle1 string `json:"CYCLE1"` Isbuy string `json:"ISBUY"` Bagtype string `json:"BAGTYPE"` // 可申购状态 Sgzt string `json:"SGZT"` Buy bool `json:"BUY"` Listtexch string `json:"LISTTEXCH"` Islisttrade string `json:"ISLISTTRADE"` }
FundListItem RespFundNetList Datas 列表元素
type FundType ¶
type FundType int
FundType 基金类型
const ( // FundTypeALL 全部 FundTypeALL FundType = 0 // FundTypeStock 股票型 FundTypeStock FundType = 25 // FundTypeMix 混合型 FundTypeMix FundType = 27 // FundTypeIndex 指数型 FundTypeIndex FundType = 26 // FundTypeBond 债券型 FundTypeBond FundType = 31 // FundTypeCurrency 货币型 FundTypeCurrency FundType = 35 // FundTypeFOF FOF型 FundTypeFOF FundType = 15 // FundTypeQDII QDII型 FundTypeQDII FundType = 6 // FundTypeETF ETF FundTypeETF FundType = 3 // FundTypeETFLink ETF联接 FundTypeETFLink FundType = 33 // FundTypeLOF LOF FundTypeLOF FundType = 4 // FundTypeDealMoney 理财 FundTypeDealMoney FundType = 2949 )
type GincomeData ¶
type GincomeData struct { Secucode string `json:"SECUCODE"` SecurityCode string `json:"SECURITY_CODE"` SecurityNameAbbr string `json:"SECURITY_NAME_ABBR"` OrgCode string `json:"ORG_CODE"` OrgType string `json:"ORG_TYPE"` ReportDate string `json:"REPORT_DATE"` ReportType string `json:"REPORT_TYPE"` ReportDateName string `json:"REPORT_DATE_NAME"` SecurityTypeCode string `json:"SECURITY_TYPE_CODE"` NoticeDate string `json:"NOTICE_DATE"` UpdateDate string `json:"UPDATE_DATE"` Currency string `json:"CURRENCY"` TotalOperateIncome float64 `json:"TOTAL_OPERATE_INCOME"` TotalOperateIncomeYoy float64 `json:"TOTAL_OPERATE_INCOME_YOY"` OperateIncome float64 `json:"OPERATE_INCOME"` OperateIncomeYoy float64 `json:"OPERATE_INCOME_YOY"` InterestIncome interface{} `json:"INTEREST_INCOME"` InterestIncomeYoy interface{} `json:"INTEREST_INCOME_YOY"` EarnedPremium interface{} `json:"EARNED_PREMIUM"` EarnedPremiumYoy interface{} `json:"EARNED_PREMIUM_YOY"` FeeCommissionIncome interface{} `json:"FEE_COMMISSION_INCOME"` FeeCommissionIncomeYoy interface{} `json:"FEE_COMMISSION_INCOME_YOY"` OtherBusinessIncome interface{} `json:"OTHER_BUSINESS_INCOME"` OtherBusinessIncomeYoy interface{} `json:"OTHER_BUSINESS_INCOME_YOY"` ToiOther interface{} `json:"TOI_OTHER"` ToiOtherYoy interface{} `json:"TOI_OTHER_YOY"` TotalOperateCost float64 `json:"TOTAL_OPERATE_COST"` TotalOperateCostYoy float64 `json:"TOTAL_OPERATE_COST_YOY"` OperateCost float64 `json:"OPERATE_COST"` OperateCostYoy float64 `json:"OPERATE_COST_YOY"` InterestExpense interface{} `json:"INTEREST_EXPENSE"` InterestExpenseYoy interface{} `json:"INTEREST_EXPENSE_YOY"` FeeCommissionExpense interface{} `json:"FEE_COMMISSION_EXPENSE"` FeeCommissionExpenseYoy interface{} `json:"FEE_COMMISSION_EXPENSE_YOY"` ResearchExpense float64 `json:"RESEARCH_EXPENSE"` ResearchExpenseYoy float64 `json:"RESEARCH_EXPENSE_YOY"` SurrenderValue interface{} `json:"SURRENDER_VALUE"` SurrenderValueYoy interface{} `json:"SURRENDER_VALUE_YOY"` NetCompensateExpense interface{} `json:"NET_COMPENSATE_EXPENSE"` NetCompensateExpenseYoy interface{} `json:"NET_COMPENSATE_EXPENSE_YOY"` NetContractReserve interface{} `json:"NET_CONTRACT_RESERVE"` NetContractReserveYoy interface{} `json:"NET_CONTRACT_RESERVE_YOY"` PolicyBonusExpense interface{} `json:"POLICY_BONUS_EXPENSE"` PolicyBonusExpenseYoy interface{} `json:"POLICY_BONUS_EXPENSE_YOY"` ReinsureExpense interface{} `json:"REINSURE_EXPENSE"` ReinsureExpenseYoy interface{} `json:"REINSURE_EXPENSE_YOY"` OtherBusinessCost interface{} `json:"OTHER_BUSINESS_COST"` OtherBusinessCostYoy interface{} `json:"OTHER_BUSINESS_COST_YOY"` OperateTaxAdd float64 `json:"OPERATE_TAX_ADD"` OperateTaxAddYoy float64 `json:"OPERATE_TAX_ADD_YOY"` SaleExpense float64 `json:"SALE_EXPENSE"` SaleExpenseYoy float64 `json:"SALE_EXPENSE_YOY"` ManageExpense float64 `json:"MANAGE_EXPENSE"` ManageExpenseYoy float64 `json:"MANAGE_EXPENSE_YOY"` MeResearchExpense interface{} `json:"ME_RESEARCH_EXPENSE"` MeResearchExpenseYoy interface{} `json:"ME_RESEARCH_EXPENSE_YOY"` FinanceExpense float64 `json:"FINANCE_EXPENSE"` FinanceExpenseYoy float64 `json:"FINANCE_EXPENSE_YOY"` FeInterestExpense float64 `json:"FE_INTEREST_EXPENSE"` FeInterestExpenseYoy float64 `json:"FE_INTEREST_EXPENSE_YOY"` FeInterestIncome float64 `json:"FE_INTEREST_INCOME"` FeInterestIncomeYoy float64 `json:"FE_INTEREST_INCOME_YOY"` AssetImpairmentLoss interface{} `json:"ASSET_IMPAIRMENT_LOSS"` AssetImpairmentLossYoy interface{} `json:"ASSET_IMPAIRMENT_LOSS_YOY"` CreditImpairmentLoss interface{} `json:"CREDIT_IMPAIRMENT_LOSS"` CreditImpairmentLossYoy interface{} `json:"CREDIT_IMPAIRMENT_LOSS_YOY"` TocOther interface{} `json:"TOC_OTHER"` TocOtherYoy interface{} `json:"TOC_OTHER_YOY"` FairvalueChangeIncome interface{} `json:"FAIRVALUE_CHANGE_INCOME"` FairvalueChangeIncomeYoy interface{} `json:"FAIRVALUE_CHANGE_INCOME_YOY"` InvestIncome interface{} `json:"INVEST_INCOME"` InvestIncomeYoy interface{} `json:"INVEST_INCOME_YOY"` InvestJointIncome interface{} `json:"INVEST_JOINT_INCOME"` InvestJointIncomeYoy interface{} `json:"INVEST_JOINT_INCOME_YOY"` NetExposureIncome interface{} `json:"NET_EXPOSURE_INCOME"` NetExposureIncomeYoy interface{} `json:"NET_EXPOSURE_INCOME_YOY"` ExchangeIncome interface{} `json:"EXCHANGE_INCOME"` ExchangeIncomeYoy interface{} `json:"EXCHANGE_INCOME_YOY"` AssetDisposalIncome float64 `json:"ASSET_DISPOSAL_INCOME"` AssetDisposalIncomeYoy interface{} `json:"ASSET_DISPOSAL_INCOME_YOY"` AssetImpairmentIncome float64 `json:"ASSET_IMPAIRMENT_INCOME"` AssetImpairmentIncomeYoy float64 `json:"ASSET_IMPAIRMENT_INCOME_YOY"` CreditImpairmentIncome float64 `json:"CREDIT_IMPAIRMENT_INCOME"` CreditImpairmentIncomeYoy interface{} `json:"CREDIT_IMPAIRMENT_INCOME_YOY"` OtherIncome float64 `json:"OTHER_INCOME"` OtherIncomeYoy interface{} `json:"OTHER_INCOME_YOY"` OperateProfitOther interface{} `json:"OPERATE_PROFIT_OTHER"` OperateProfitOtherYoy interface{} `json:"OPERATE_PROFIT_OTHER_YOY"` OperateProfitBalance float64 `json:"OPERATE_PROFIT_BALANCE"` OperateProfitBalanceYoy interface{} `json:"OPERATE_PROFIT_BALANCE_YOY"` OperateProfit float64 `json:"OPERATE_PROFIT"` OperateProfitYoy float64 `json:"OPERATE_PROFIT_YOY"` NonbusinessIncome float64 `json:"NONBUSINESS_INCOME"` NonbusinessIncomeYoy float64 `json:"NONBUSINESS_INCOME_YOY"` NoncurrentDisposalIncome interface{} `json:"NONCURRENT_DISPOSAL_INCOME"` NoncurrentDisposalIncomeYoy interface{} `json:"NONCURRENT_DISPOSAL_INCOME_YOY"` NonbusinessExpense float64 `json:"NONBUSINESS_EXPENSE"` NonbusinessExpenseYoy float64 `json:"NONBUSINESS_EXPENSE_YOY"` NoncurrentDisposalLoss interface{} `json:"NONCURRENT_DISPOSAL_LOSS"` NoncurrentDisposalLossYoy interface{} `json:"NONCURRENT_DISPOSAL_LOSS_YOY"` EffectTpOther interface{} `json:"EFFECT_TP_OTHER"` EffectTpOtherYoy interface{} `json:"EFFECT_TP_OTHER_YOY"` TotalProfitBalance float64 `json:"TOTAL_PROFIT_BALANCE"` TotalProfitBalanceYoy interface{} `json:"TOTAL_PROFIT_BALANCE_YOY"` TotalProfit float64 `json:"TOTAL_PROFIT"` TotalProfitYoy float64 `json:"TOTAL_PROFIT_YOY"` IncomeTax float64 `json:"INCOME_TAX"` IncomeTaxYoy float64 `json:"INCOME_TAX_YOY"` EffectNetprofitOther interface{} `json:"EFFECT_NETPROFIT_OTHER"` EffectNetprofitOtherYoy interface{} `json:"EFFECT_NETPROFIT_OTHER_YOY"` EffectNetprofitBalance interface{} `json:"EFFECT_NETPROFIT_BALANCE"` EffectNetprofitBalanceYoy interface{} `json:"EFFECT_NETPROFIT_BALANCE_YOY"` UnconfirmInvestLoss interface{} `json:"UNCONFIRM_INVEST_LOSS"` UnconfirmInvestLossYoy interface{} `json:"UNCONFIRM_INVEST_LOSS_YOY"` Netprofit float64 `json:"NETPROFIT"` NetprofitYoy float64 `json:"NETPROFIT_YOY"` PrecombineProfit interface{} `json:"PRECOMBINE_PROFIT"` PrecombineProfitYoy interface{} `json:"PRECOMBINE_PROFIT_YOY"` ContinuedNetprofit float64 `json:"CONTINUED_NETPROFIT"` ContinuedNetprofitYoy float64 `json:"CONTINUED_NETPROFIT_YOY"` DiscontinuedNetprofit interface{} `json:"DISCONTINUED_NETPROFIT"` DiscontinuedNetprofitYoy interface{} `json:"DISCONTINUED_NETPROFIT_YOY"` ParentNetprofit float64 `json:"PARENT_NETPROFIT"` ParentNetprofitYoy float64 `json:"PARENT_NETPROFIT_YOY"` MinorityInterest float64 `json:"MINORITY_INTEREST"` MinorityInterestYoy float64 `json:"MINORITY_INTEREST_YOY"` DeductParentNetprofit float64 `json:"DEDUCT_PARENT_NETPROFIT"` DeductParentNetprofitYoy float64 `json:"DEDUCT_PARENT_NETPROFIT_YOY"` NetprofitOther interface{} `json:"NETPROFIT_OTHER"` NetprofitOtherYoy interface{} `json:"NETPROFIT_OTHER_YOY"` NetprofitBalance interface{} `json:"NETPROFIT_BALANCE"` NetprofitBalanceYoy interface{} `json:"NETPROFIT_BALANCE_YOY"` BasicEps float64 `json:"BASIC_EPS"` BasicEpsYoy float64 `json:"BASIC_EPS_YOY"` DilutedEps float64 `json:"DILUTED_EPS"` DilutedEpsYoy float64 `json:"DILUTED_EPS_YOY"` OtherCompreIncome interface{} `json:"OTHER_COMPRE_INCOME"` OtherCompreIncomeYoy interface{} `json:"OTHER_COMPRE_INCOME_YOY"` ParentOci interface{} `json:"PARENT_OCI"` ParentOciYoy interface{} `json:"PARENT_OCI_YOY"` MinorityOci interface{} `json:"MINORITY_OCI"` MinorityOciYoy interface{} `json:"MINORITY_OCI_YOY"` ParentOciOther interface{} `json:"PARENT_OCI_OTHER"` ParentOciOtherYoy interface{} `json:"PARENT_OCI_OTHER_YOY"` ParentOciBalance interface{} `json:"PARENT_OCI_BALANCE"` ParentOciBalanceYoy interface{} `json:"PARENT_OCI_BALANCE_YOY"` UnableOci interface{} `json:"UNABLE_OCI"` UnableOciYoy interface{} `json:"UNABLE_OCI_YOY"` CreditriskFairvalueChange interface{} `json:"CREDITRISK_FAIRVALUE_CHANGE"` CreditriskFairvalueChangeYoy interface{} `json:"CREDITRISK_FAIRVALUE_CHANGE_YOY"` OtherrightFairvalueChange interface{} `json:"OTHERRIGHT_FAIRVALUE_CHANGE"` OtherrightFairvalueChangeYoy interface{} `json:"OTHERRIGHT_FAIRVALUE_CHANGE_YOY"` SetupProfitChange interface{} `json:"SETUP_PROFIT_CHANGE"` SetupProfitChangeYoy interface{} `json:"SETUP_PROFIT_CHANGE_YOY"` RightlawUnableOci interface{} `json:"RIGHTLAW_UNABLE_OCI"` RightlawUnableOciYoy interface{} `json:"RIGHTLAW_UNABLE_OCI_YOY"` UnableOciOther interface{} `json:"UNABLE_OCI_OTHER"` UnableOciOtherYoy interface{} `json:"UNABLE_OCI_OTHER_YOY"` UnableOciBalance interface{} `json:"UNABLE_OCI_BALANCE"` UnableOciBalanceYoy interface{} `json:"UNABLE_OCI_BALANCE_YOY"` AbleOci interface{} `json:"ABLE_OCI"` AbleOciYoy interface{} `json:"ABLE_OCI_YOY"` RightlawAbleOci interface{} `json:"RIGHTLAW_ABLE_OCI"` RightlawAbleOciYoy interface{} `json:"RIGHTLAW_ABLE_OCI_YOY"` AfaFairvalueChange interface{} `json:"AFA_FAIRVALUE_CHANGE"` AfaFairvalueChangeYoy interface{} `json:"AFA_FAIRVALUE_CHANGE_YOY"` HmiAfa interface{} `json:"HMI_AFA"` HmiAfaYoy interface{} `json:"HMI_AFA_YOY"` CashflowHedgeValid interface{} `json:"CASHFLOW_HEDGE_VALID"` CashflowHedgeValidYoy interface{} `json:"CASHFLOW_HEDGE_VALID_YOY"` CreditorFairvalueChange interface{} `json:"CREDITOR_FAIRVALUE_CHANGE"` CreditorFairvalueChangeYoy interface{} `json:"CREDITOR_FAIRVALUE_CHANGE_YOY"` CreditorImpairmentReserve interface{} `json:"CREDITOR_IMPAIRMENT_RESERVE"` CreditorImpairmentReserveYoy interface{} `json:"CREDITOR_IMPAIRMENT_RESERVE_YOY"` FinanceOciAmt interface{} `json:"FINANCE_OCI_AMT"` FinanceOciAmtYoy interface{} `json:"FINANCE_OCI_AMT_YOY"` ConvertDiff interface{} `json:"CONVERT_DIFF"` ConvertDiffYoy interface{} `json:"CONVERT_DIFF_YOY"` AbleOciOther interface{} `json:"ABLE_OCI_OTHER"` AbleOciOtherYoy interface{} `json:"ABLE_OCI_OTHER_YOY"` AbleOciBalance interface{} `json:"ABLE_OCI_BALANCE"` AbleOciBalanceYoy interface{} `json:"ABLE_OCI_BALANCE_YOY"` OciOther interface{} `json:"OCI_OTHER"` OciOtherYoy interface{} `json:"OCI_OTHER_YOY"` OciBalance interface{} `json:"OCI_BALANCE"` OciBalanceYoy interface{} `json:"OCI_BALANCE_YOY"` TotalCompreIncome float64 `json:"TOTAL_COMPRE_INCOME"` TotalCompreIncomeYoy float64 `json:"TOTAL_COMPRE_INCOME_YOY"` ParentTci float64 `json:"PARENT_TCI"` ParentTciYoy float64 `json:"PARENT_TCI_YOY"` MinorityTci float64 `json:"MINORITY_TCI"` MinorityTciYoy float64 `json:"MINORITY_TCI_YOY"` PrecombineTci interface{} `json:"PRECOMBINE_TCI"` PrecombineTciYoy interface{} `json:"PRECOMBINE_TCI_YOY"` EffectTciBalance interface{} `json:"EFFECT_TCI_BALANCE"` EffectTciBalanceYoy interface{} `json:"EFFECT_TCI_BALANCE_YOY"` TciOther interface{} `json:"TCI_OTHER"` TciOtherYoy interface{} `json:"TCI_OTHER_YOY"` TciBalance interface{} `json:"TCI_BALANCE"` TciBalanceYoy interface{} `json:"TCI_BALANCE_YOY"` AcfEndIncome interface{} `json:"ACF_END_INCOME"` AcfEndIncomeYoy interface{} `json:"ACF_END_INCOME_YOY"` OpinionType string `json:"OPINION_TYPE"` }
GincomeData 财务分析利润表数据
type HistoricalFinaMainData ¶
type HistoricalFinaMainData []FinaMainData
HistoricalFinaMainData 主要指标历史数据列表
func (HistoricalFinaMainData) FilterByReportType ¶
func (h HistoricalFinaMainData) FilterByReportType(ctx context.Context, reportType FinaReportType) HistoricalFinaMainData
FilterByReportType 按财报类型过滤:一季报,中报,三季报,年报
func (HistoricalFinaMainData) FilterByReportYear ¶
func (h HistoricalFinaMainData) FilterByReportYear(ctx context.Context, reportYear int) HistoricalFinaMainData
FilterByReportYear 按财报年份过滤: 2021
func (HistoricalFinaMainData) GetRecentReportYear ¶
func (h HistoricalFinaMainData) GetRecentReportYear(ctx context.Context) HistoricalFinaMainData
GetRecentReportYear 按财报获取最新一期报表和最近的年报
func (HistoricalFinaMainData) IsIncreasingByYears ¶
func (h HistoricalFinaMainData) IsIncreasingByYears( ctx context.Context, valueType ValueListType, yearsCount int, reportType FinaReportType, ) bool
IsIncreasingByYears roe/eps/revenue/profit 是否逐年递增
func (HistoricalFinaMainData) IsStability ¶
func (h HistoricalFinaMainData) IsStability( ctx context.Context, valueType ValueListType, yearsCount int, reportType FinaReportType, ) bool
IsStability 数据是否稳定(标准差在 1 以内)
func (HistoricalFinaMainData) MidValue ¶
func (h HistoricalFinaMainData) MidValue( ctx context.Context, valueType ValueListType, yearsCount int, reportType FinaReportType, ) (float64, error)
MidValue 历史年报 roe/eps 中位数
func (HistoricalFinaMainData) Q1RevenueIncreasingRatio ¶
func (h HistoricalFinaMainData) Q1RevenueIncreasingRatio(ctx context.Context) (float64, error)
Q1RevenueIncreasingRatio 获取今年一季报的营收增长比 (%)
func (HistoricalFinaMainData) ValueList ¶
func (h HistoricalFinaMainData) ValueList( ctx context.Context, valueType ValueListType, count int, reportType FinaReportType, ) FinaValueList
ValueList 获取历史数据值,最新的在最前面
type HistoricalPEList ¶
type HistoricalPEList []HistoricalPE
HistoricalPEList 历史 pe 列表
func (HistoricalPEList) GetMidValue ¶
func (h HistoricalPEList) GetMidValue(ctx context.Context) (float64, error)
GetMidValue 获取历史 pe 中位数
type HoldStockFund ¶
type HoldStockFund struct { Fcode string `json:"FCODE"` Shortname string `json:"SHORTNAME"` Holdstock string `json:"HOLDSTOCK"` Stockname string `json:"STOCKNAME"` Zjzbl float64 `json:"ZJZBL"` Tsrq string `json:"TSRQ"` Chgtype string `json:"CHGTYPE"` Chgnum float64 `json:"CHGNUM"` SylY float64 `json:"SYL_Y"` Syl6Y float64 `json:"SYL_6Y"` Isbuy string `json:"ISBUY"` Stocktexch string `json:"STOCKTEXCH"` Newtexch string `json:"NEWTEXCH"` Zjzblchg float64 `json:"ZJZBLCHG"` Zjzblchgtype string `json:"ZJZBLCHGTYPE"` }
HoldStockFund 持有指定股票的基金
type JDZF ¶
type JDZF struct { Datas []struct { // Z:近1周 Y:近1月 3Y:近3月 6Y:近6月 // 1N:近1年 2N:近2年 3N:近3年 5N:近五年 // JN:今年来 LN:成立来 Title string `json:"title"` // 收益率 Syl interface{} `json:"syl"` // 涨跌幅 Avg interface{} `json:"avg"` // 同类平均 Hs300 interface{} `json:"hs300"` // 同类排名 Rank interface{} `json:"rank"` // 排名总数 Sc interface{} `json:"sc"` Diff string `json:"diff"` } `json:"Datas"` }
JDZF 阶段涨幅
type JJCC ¶
type JJCC struct { Datas struct { InverstPosition struct { // 重仓股票 FundStocks []struct { // 股票代码 Gpdm string `json:"GPDM"` // 股票名称 Gpjc string `json:"GPJC"` // 持仓占比(%) Jzbl interface{} `json:"JZBL"` Texch string `json:"TEXCH"` Isinvisbl string `json:"ISINVISBL"` // 增持|减持|新增 Pctnvchgtype string `json:"PCTNVCHGTYPE"` // 较上期增减比例(%) Pctnvchg interface{} `json:"PCTNVCHG"` Newtexch string `json:"NEWTEXCH"` Indexcode string `json:"INDEXCODE"` // 股票行业 Indexname string `json:"INDEXNAME"` } `json:"fundStocks"` // 重仓债券 Fundboods []struct { // 债券代码 Zqdm string `json:"ZQDM"` // 债券名称 Zqmc string `json:"ZQMC"` // 持仓占比(%) Zjzbl string `json:"ZJZBL"` Isbroken string `json:"ISBROKEN"` } `json:"fundboods"` Fundfofs []interface{} `json:"fundfofs"` Etfcode interface{} `json:"ETFCODE"` Etfshortname interface{} `json:"ETFSHORTNAME"` } `json:"InverstPosition"` // 持仓资产比例 // { // "2021-03-31": [ // { // "FSRQ": "日期", // "GP":"股票占比(%)", // "ZQ":"债券占比(%)", // "HB": "现金占比(%)", // "QT": "其他", // "JZC": "净资产(亿)" // } // ] // } AssetAllocation map[string][]map[string]string `json:"AssetAllocation"` // 行业占比 // { // "2021-03-31": [ // { // "HYMC": "行业名称", // "SZ": "", // "ZJZBL": "占比(%)", // "FSRQ": "日期" // } // ] // } SectorAllocation map[string][]map[string]string `json:"SectorAllocation"` } `json:"Datas"` }
JJCC 基金持仓
type JJGM ¶
type JJGM struct { Datas []struct { // 日期 Fsrq string `json:"FSRQ"` // 净资产(元) Netnav interface{} `json:"NETNAV"` // 净资产变动率(%) Change string `json:"CHANGE"` Issum string `json:"ISSUM"` } `json:"Datas"` }
JJGM 基金规模
type JJJLNEW ¶
type JJJLNEW struct { Datas []struct { Manger []struct { Mgrid string `json:"MGRID"` // 基金经理名字 Mgrname string `json:"MGRNAME"` Newphotourl string `json:"NEWPHOTOURL"` Isinoffice string `json:"ISINOFFICE"` // 年均回报(%) Yieldse interface{} `json:"YIELDSE"` // 从业天数 Totaldays interface{} `json:"TOTALDAYS"` // 任职该基金天数 Days interface{} `json:"DAYS"` // 任职该基金开始时间 Fempdate string `json:"FEMPDATE"` Lempdate string `json:"LEMPDATE"` // 任职回报(%) Penavgrowth interface{} `json:"PENAVGROWTH"` Investmentidear string `json:"INVESTMENTIDEAR"` // 金牛奖获奖次数 HjJn interface{} `json:"HJ_JN"` } `json:"MANGER"` } `json:"Datas"` }
JJJLNEW 基金经理。。
type JJXQ ¶
type JJXQ struct { Datas struct { // 基金代码 Fcode string `json:"FCODE"` // 基金名称 Shortname string `json:"SHORTNAME"` // 基金类型中文描述 Ftype string `json:"FTYPE"` // 成立时间 Estabdate string `json:"ESTABDATE"` // 业绩比较基准 Bench string `json:"BENCH"` // 资产规模(元) Endnav string `json:"ENDNAV"` // 规模截止日期 Fegmrq string `json:"FEGMRQ"` // 基金评级 RlevelSz string `json:"RLEVEL_SZ"` // 日涨幅 (%) Rzdf string `json:"RZDF"` // 单位净值 Dwjz string `json:"DWJZ"` // 累计净值 Ljjz string `json:"LJJZ"` // 当日确认份额时间点 Currentdaymark string `json:"CURRENTDAYMARK"` // 购买起点(元) Minsg string `json:"MINSG"` // 首次购买(元) Minsbrg string `json:"MINSBRG"` // 追加购买(元) Minsbsg string `json:"MINSBSG"` // 定投起点(元) Mindt string `json:"MINDT"` // 单日累计购买上限(元) Maxsg string `json:"MAXSG"` // 申购状态 Sgzt string `json:"SGZT"` // 卖出状态 Shzt string `json:"SHZT"` // 定投状态 1:可定投 Dtzt string `json:"DTZT"` // 原始购买费率 Sourcerate string `json:"SOURCERATE"` // 实际购买费率 Rate string `json:"RATE"` // 风险等级:4=中高风险 5=高风险 Risklevel string `json:"RISKLEVEL"` // 跟踪标的代码 Indexcode string `json:"INDEXCODE"` // 跟踪标的名称 Indexname string `json:"INDEXNAME"` // 近1年波动率 Stddev1 string `json:"STDDEV1"` // 近2年波动率 Stddev2 string `json:"STDDEV2"` // 近3年波动率 Stddev3 string `json:"STDDEV3"` // 近1年夏普比率 Sharp1 string `json:"SHARP1"` // 近2年夏普比率 Sharp2 string `json:"SHARP2"` // 近3年夏普比率 Sharp3 string `json:"SHARP3"` // 近1年最大回撤 Maxretra1 string `json:"MAXRETRA1"` // 买入确认日 Ssbcfday string `json:"SSBCFDAY"` } `json:"Datas"` }
JJXQ 基金详情
type JZPG ¶
type JZPG struct { // 股票名 Secname string `json:"SecName"` // 行业名 Industryname string `json:"IndustryName"` Type string `json:"Type"` // 当前排名 Valueranking string `json:"ValueRanking"` // 排名总数 Total string `json:"Total"` // 整体质地 Valuetotalscore string `json:"ValueTotalScore"` Reportdate string `json:"ReportDate"` Reporttype string `json:"ReportType"` // 盈利能力 Profitabilityscore string `json:"ProfitabilityScore"` // 成长能力 Growupscore string `json:"GrowUpScore"` // 营运偿债能力 Operationscore string `json:"OperationScore"` // 现金流 Cashflowscore string `json:"CashFlowScore"` // 估值 Valuationscore string `json:"ValuationScore"` }
JZPG 价值评估
func (JZPG) GetProfitabilityScore ¶
GetProfitabilityScore 盈利能力
type MainForm ¶
type MainForm struct { // 分类类型: 1 按行业分类 2 按地区分类 3 按产品分类 Type string `json:"type"` // 名称 MainForm string `json:"main_form"` // 占比 MainIncomeRatio string `json:"main_income_ratio"` // 金额 MainIncome string `json:"main_income"` // 精确数字 MainIncomeRatioChart string `json:"main_income_ratio_chart"` }
MainForm 主营构成
type OrgRating ¶
type OrgRating struct { // 时间段 DateType string `json:"DATE_TYPE"` // 综合评级 CompreRating string `json:"COMPRE_RATING"` }
OrgRating 机构评级统计
type ProfitPredict ¶
type ProfitPredict struct { // 年份 PredictYear int `json:"PREDICT_YEAR"` // 预测每股收益 Eps float64 `json:"EPS"` // 预测市盈率 Pe float64 `json:"PE"` }
ProfitPredict 盈利预测
type ProfitPredictList ¶
type ProfitPredictList []ProfitPredict
ProfitPredictList 预测列表
func (ProfitPredictList) String ¶
func (p ProfitPredictList) String() string
type RespCPBD ¶
type RespCPBD struct { Result struct { Ticaixiangqinglist []struct { Secucode string `json:"SecurityCode"` Keyword string `json:"KeyWord"` Mainpoint string `json:"MainPoint"` Mainpointcon string `json:"MainPointCon"` Classification string `json:"Classification"` Classificationname string `json:"ClassificationName"` Ispoint string `json:"IsPoint"` } `json:"TiCaiXiangQingList"` Gubengudong struct { Reportdate string `json:"ReportDate"` Securitycode string `json:"SecurityCode"` Totalequity string `json:"TotalEquity"` Totalequitypercent string `json:"TotalEquityPercent"` Ashares string `json:"Ashares"` Asharespercent string `json:"ASharesPercent"` Asharespercentchart string `json:"ASharesPercentChart"` Restrictedcirculationshares string `json:"RestrictedCirculationShares"` Restrictedcirculationsharespercent string `json:"RestrictedCirculationSharesPercent"` Restrictedcirculationsharespercentchart string `json:"RestrictedCirculationSharesPercentChart"` } `json:"GuBenGuDong"` Gudongrenshuunit string `json:"GuDongRenShuUnit"` Gudongrenshulist []struct { Secucode string `json:"SecurityCode"` Changedate string `json:"ChangeDate"` Totalsh string `json:"TotalSh"` Totalshchart string `json:"TotalShChart"` Changewithlasttermsh string `json:"ChangeWithLastTermSh"` Avgshare string `json:"AvgShare"` Changewithlasttermshare string `json:"ChangeWithLastTermShare"` Stockprice string `json:"StockPrice"` Stockconvergencerate string `json:"StockConvergenceRate"` Sumlishold string `json:"SumLishold"` Sumcirlishold string `json:"SumCirLishold"` } `json:"GuDongRenShuList"` Gudongtongji struct { Secucode string `json:"SecurityCode"` Reportdate string `json:"ReportDate"` Actualcontroller string `json:"ActualController"` Actualcontrollerrate string `json:"ActualControllerRate"` Shareholdercontroller string `json:"ShareholderController"` Shareholdercontrollerrate string `json:"ShareholderControllerRate"` Shareholder string `json:"ShareHolder"` Shareholderrate string `json:"ShareHolderRate"` Cirshareholder string `json:"CirShareHolder"` Cirshareholderrate string `json:"CirShareHolderRate"` Orgholdernum string `json:"OrgHolderNum"` Orgholderrate string `json:"OrgHolderRate"` Orgholdernumpre string `json:"OrgHolderNumPre"` Orgholderratepre string `json:"OrgHolderRatePre"` } `json:"GuDongTongJi"` Zhuyinggouchenglist []struct { Secucode string `json:"SecurityCode"` Reporttype string `json:"ReportType"` Reportdate string `json:"ReportDate"` Mainform string `json:"MainForm"` Mainincome string `json:"MainIncome"` Mainincomeratio string `json:"MainIncomeRatio"` Mainincomeratiochart string `json:"MainIncomeRatioChart"` Flag string `json:"Flag"` } `json:"ZhuYingGouChengList"` Fenhongsongzhuanlist []struct { Secucode string `json:"SecurityCode"` Noticedate string `json:"NoticeDate"` Assigndscrpt string `json:"AssignDscrpt"` Exdividenddate string `json:"ExDividendDate"` Rightregdate string `json:"RightRegDate"` } `json:"FenHongSongZhuanList"` Jinglirununit string `json:"JingliRunUnit"` Yingyeshouruunit string `json:"YingYeShouRuUnit"` Danjicaiwulist []struct { Secucode string `json:"SecurityCode"` Reportdate string `json:"ReportDate"` Netprofit string `json:"NetProfit"` Netprofitchart string `json:"NetProfitChart"` Eps string `json:"EPS"` Epschart string `json:"EPSChart"` Totalincome string `json:"TotalIncome"` Totalincomechart string `json:"TotalIncomeChart"` Year string `json:"Year"` } `json:"DanJiCaiWuList"` Guquanzhiyatujielist []struct { Tradedate string `json:"TradeDate"` Amtshareratio string `json:"AmtShareRatio"` } `json:"GuQuanZhiYaTuJieList"` Guquanzhiyatongjilist interface{} `json:"GuQuanZhiYaTongJiList"` Shangyuqingkuang struct { Tujiedatalist []struct { Baogaoqi string `json:"BaoGaoQi"` Shangyuzhi string `json:"ShangYuZhi"` Shangyuzhitext interface{} `json:"ShangYuZhiText"` Shangyuzhiunit interface{} `json:"ShangYuZhiUnit"` Jingzichanjiazong interface{} `json:"JingZiChanJiaZong"` Shangyujingzichan string `json:"ShangYuJingZiChan"` } `json:"TuJieDataList"` Data struct { Code string `json:"Code"` Baogaoqi string `json:"BaoGaoQi"` Baogaoqileixing string `json:"BaoGaoQiLeiXing"` Shangyu string `json:"ShangYu"` Shangyutongbi string `json:"ShangYuTongBi"` Shangyujingzichan string `json:"ShangYuJingZiChan"` Shangyujingzichantongbi string `json:"ShangYuJingZiChanTongBi"` Guimujinglirun string `json:"GuiMuJingLiRun"` Guimujingliruntongbi string `json:"GuiMuJingLiRunTongBi"` Shifouxianshi interface{} `json:"ShiFouXianShi"` } `json:"Data"` } `json:"ShangYuQingKuang"` Yanfatourulist []interface{} `json:"YanFaTouRuList"` } `json:"Result"` Status int `json:"Status"` Message interface{} `json:"Message"` Otherinfo struct { } `json:"OtherInfo"` }
RespCPBD 操盘必读接口返回结构
type RespFinaCashflowData ¶
type RespFinaCashflowData struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data CashflowDataList `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespFinaCashflowData 现金流量接口返回数据
type RespFinaGincomeData ¶
type RespFinaGincomeData struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data GincomeDataList `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespFinaGincomeData 财务分析利润表接口返回结构
type RespFinaMainData ¶
type RespFinaMainData struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data HistoricalFinaMainData `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespFinaMainData 接口返回 json 结构
type RespFinaPublishDate ¶
type RespFinaPublishDate struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data FinaPublishDateList `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespFinaPublishDate 财报披露日期接口返回结构
type RespFreeHolders ¶
type RespFreeHolders struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data FreeHolderList `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespFreeHolders QueryFreeHolders 返回json结构
type RespFundInfo ¶
type RespFundInfo struct { // 基金详情 Jjxq JJXQ `json:"JJXQ"` Jdzf JDZF `json:"JDZF"` Jjgm JJGM `json:"JJGM"` Fhsp FHSP `json:"FHSP"` Jjcc JJCC `json:"JJCC"` Tssj TSSJ `json:"TSSJ"` Jjjlnew JJJLNEW `json:"JJJLNEW"` }
RespFundInfo QueryFundInfo 接口原始返回结构
type RespFundList ¶
type RespFundList struct { Datas []FundList `json:"Datas"` ErrCode int `json:"ErrCode"` Success bool `json:"Success"` ErrMsg interface{} `json:"ErrMsg"` Message interface{} `json:"Message"` ErrorCode string `json:"ErrorCode"` ErrorMessage interface{} `json:"ErrorMessage"` ErrorMsgLst interface{} `json:"ErrorMsgLst"` TotalCount int `json:"TotalCount"` Expansion []string `json:"Expansion"` }
RespFundList 净值列表接口原始返回结构
type RespHistoricalPE ¶
type RespHistoricalPE struct { Data [][]struct { Securitycode string `json:"SECURITYCODE"` Datetype string `json:"DATETYPE"` Sl string `json:"SL"` Endate string `json:"ENDATE"` Value string `json:"VALUE"` } `json:"data"` Pe [][]struct { Securitycode string `json:"SECURITYCODE"` Pe30 string `json:"PE30"` Pe50 string `json:"PE50"` Pe70 string `json:"PE70"` Total string `json:"TOTAL"` Rn1 string `json:"RN1"` Rn2 string `json:"RN2"` Rn3 string `json:"RN3"` } `json:"pe"` }
RespHistoricalPE 历史市盈率接口返回结构
type RespIndustryList ¶
type RespIndustryList struct { Result struct { Count int `json:"count"` Pages int `json:"pages"` Data []struct { Industry string `json:"INDUSTRY"` FirstLetter string `json:"FIRST_LETTER"` } `json:"data"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespIndustryList 接口返回的 json 结构
type RespJBZL ¶
type RespJBZL struct { Result struct { Jibenziliao struct { Secucode string `json:"SecurityCode"` Companycode string `json:"CompanyCode"` Companyname string `json:"CompanyName"` Previousname string `json:"PreviousName"` Provice string `json:"Provice"` Industry string `json:"Industry"` Block string `json:"Block"` Chairman string `json:"Chairman"` Website string `json:"Website"` Registeredaddress string `json:"RegisteredAddress"` Officeaddress string `json:"OfficeAddress"` Comprofile string `json:"CompRofile"` Mainbusiness string `json:"MainBusiness"` Securitycodea string `json:"SecurityCodeA"` Securitynamea string `json:"SecurityNameA"` Securitycodeb string `json:"SecurityCodeB"` Securitynameb string `json:"SecurityNameB"` Securitycodeh string `json:"SecurityCodeH"` Securitynameh string `json:"SecurityNameH"` Representative string `json:"Representative"` Generalmanager string `json:"GeneralManager"` Secretaries string `json:"Secretaries"` Founddate string `json:"FoundDate"` Registeredcapital string `json:"RegisteredCapital"` Currency string `json:"Currency"` Employees string `json:"Employees"` Managers string `json:"Managers"` Phone string `json:"Phone"` Email string `json:"Email"` Securitycodetype string `json:"SecurityCodeType"` Codetype string `json:"CodeType"` Isinnovation int `json:"IsInnovation"` } `json:"JiBenZiLiao"` } `json:"Result"` Status int `json:"Status"` Message string `json:"Message"` Otherinfo struct { } `json:"OtherInfo"` }
RespJBZL 基本资料接口返回结构
type RespJiaZhiPingGu ¶
type RespJiaZhiPingGu struct { Result struct { JiazhipingguGaiyao JZPG `json:"JiaZhiPingGu_GaiYao"` JiazhipingguWuweitulist []struct { Reportdate string `json:"ReportDate"` Reporttype string `json:"ReportType"` Profitabilityscore string `json:"ProfitabilityScore"` Growupscore string `json:"GrowUpScore"` Operationscore string `json:"OperationScore"` Cashflowscore string `json:"CashFlowScore"` Valuationscore string `json:"ValuationScore"` } `json:"JiaZhiPingGu_WuWeiTuList"` } `json:"Result"` Status int `json:"Status"` Message string `json:"Message"` Otherinfo struct { } `json:"OtherInfo"` }
RespJiaZhiPingGu 综合评价接口返回结构
type RespOrgRating ¶
type RespOrgRating struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data []OrgRating `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespOrgRating 统计评级接口返回结构
type RespProfitPredict ¶
type RespProfitPredict struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data []ProfitPredict `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespProfitPredict 盈利预测接口返回结构
type RespQueryFundByStock ¶
type RespQueryFundByStock struct { Datas struct { Datas []HoldStockFund `json:"Datas"` Stocktexch string `json:"STOCKTEXCH"` Newtexch string `json:"NEWTEXCH"` } `json:"Datas"` ErrCode int `json:"ErrCode"` Success bool `json:"Success"` ErrMsg interface{} `json:"ErrMsg"` Message interface{} `json:"Message"` ErrorCode string `json:"ErrorCode"` ErrorMessage interface{} `json:"ErrorMessage"` ErrorMsgLst interface{} `json:"ErrorMsgLst"` TotalCount int `json:"TotalCount"` Expansion interface{} `json:"Expansion"` }
RespQueryFundByStock QueryFundByStock 原始api返回的结构
type RespSelectStocks ¶
type RespSelectStocks struct { Result struct { Nextpage bool `json:"nextpage"` Currentpage int `json:"currentpage"` Data StockInfoList `json:"data"` Config []struct { IndicatorName string `json:"INDICATOR_NAME"` Datatype string `json:"DATATYPE"` } `json:"config"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespSelectStocks 接口返回 json 结构
type RespValuation ¶
type RespValuation struct { Version string `json:"version"` Result struct { Pages int `json:"pages"` Data []struct { ValationStatus string `json:"VALATION_STATUS"` } `json:"data"` Count int `json:"count"` } `json:"result"` Success bool `json:"success"` Message string `json:"message"` Code int `json:"code"` }
RespValuation 估值状态接口返回结构
type RespZongHePingJia ¶
type RespZongHePingJia struct { Result struct { Zonghepingjia ZHPJ `json:"ZongHePingJia"` } `json:"Result"` Status int `json:"Status"` Message string `json:"Message"` Otherinfo struct { } `json:"OtherInfo"` }
RespZongHePingJia 综合评价接口返回结构
type SearchFundInfo ¶
SearchFundInfo 关键词搜索基金结构
type StockInfo ¶
type StockInfo struct { // 股票代码:带后缀 Secucode string `json:"SECUCODE"` // 股票代码:无后缀 SecurityCode string `json:"SECURITY_CODE"` // 股票名 SecurityNameAbbr string `json:"SECURITY_NAME_ABBR"` // 行业 Industry string `json:"INDUSTRY"` // 最新一期 ROE RoeWeight float64 `json:"ROE_WEIGHT"` // 净利润增长率(%) NetprofitYoyRatio float64 `json:"NETPROFIT_YOY_RATIO"` // 营收增长率(%) ToiYoyRatio float64 `json:"TOI_YOY_RATIO"` // 最新股息率 (%) Zxgxl float64 `json:"ZXGXL"` // 净利润 3 年复合增长率 NetprofitGrowthrate3Y float64 `json:"NETPROFIT_GROWTHRATE_3Y"` // 营收 3 年复合增长率 IncomeGrowthrate3Y float64 `json:"INCOME_GROWTHRATE_3Y"` // 上市以来年化收益率 ListingYieldYear float64 `json:"LISTING_YIELD_YEAR"` // 市净率 PBNewMRQ float64 `json:"PBNEWMRQ"` // 预测净利润同比增长 PredictNetprofitRatio float64 `json:"PREDICT_NETPROFIT_RATIO"` // 预测营收同比增长 PredictIncomeRatio float64 `json:"PREDICT_INCOME_RATIO"` // 总市值 TotalMarketCap float64 `json:"TOTAL_MARKET_CAP"` // 最新价(元) 未开盘价格显示为 - NewPrice interface{} `json:"NEW_PRICE"` // 上市以来年化波动率 ListingVolatilityYear float64 `json:"LISTING_VOLATILITY_YEAR"` // 上市时间 ListingDate string `json:"LISTING_DATE"` // 资产负债率 DebtAssetRatio float64 `json:"DEBT_ASSET_RATIO"` // ROA (%) ROA float64 `json:"JROA"` // 市盈率 PE float64 `json:"PE9"` }
StockInfo 接口返回的股票信息结构
type TSSJ ¶
type TSSJ struct { Datas struct { // 近1年夏普比率 Sharp1 interface{} `json:"SHARP1"` Sharp1Nrank string `json:"SHARP_1NRANK"` Sharp1Nfsc string `json:"SHARP_1NFSC"` // 近3年夏普比率 Sharp3 interface{} `json:"SHARP3"` Sharp3Nrank string `json:"SHARP_3NRANK"` Sharp3Nfsc string `json:"SHARP_3NFSC"` // 近5年夏普比率 Sharp5 interface{} `json:"SHARP5"` Sharp5Nrank string `json:"SHARP_5NRANK"` Sharp5Nfsc string `json:"SHARP_5NFSC"` // 近1年收益率 Syl1N string `json:"SYL_1N"` // 成立来收益率 SylLn string `json:"SYL_LN"` // 近1年最大回撤(%) Maxretra1 interface{} `json:"MAXRETRA1"` Maxretra1Nrank string `json:"MAXRETRA_1NRANK"` Maxretra1Nfsc string `json:"MAXRETRA_1NFSC"` // 近3年最大回撤(%) Maxretra3 interface{} `json:"MAXRETRA3"` Maxretra3Nrank string `json:"MAXRETRA_3NRANK"` Maxretra3Nfsc string `json:"MAXRETRA_3NFSC"` // 近5年最大回撤(%) Maxretra5 interface{} `json:"MAXRETRA5"` Maxretra5Nrank string `json:"MAXRETRA_5NRANK"` Maxretra5Nfsc string `json:"MAXRETRA_5NFSC"` // 近1年波动率(%) Stddev1 interface{} `json:"STDDEV1"` Stddev1Nrank string `json:"STDDEV_1NRANK"` Stddev1Nfsc string `json:"STDDEV_1NFSC"` // 近3年波动率(%) Stddev3 interface{} `json:"STDDEV3"` Stddev3Nrank string `json:"STDDEV_3NRANK"` Stddev3Nfsc string `json:"STDDEV_3NFSC"` // 近5年波动率(%) Stddev5 interface{} `json:"STDDEV5"` Stddev5Nrank string `json:"STDDEV_5NRANK"` Stddev5Nfsc string `json:"STDDEV_5NFSC"` // 持有1周盈利概率 ProfitZ string `json:"PROFIT_Z"` // 持有1月盈利概率 ProfitY string `json:"PROFIT_Y"` // 持有3月盈利概率 Profit3Y string `json:"PROFIT_3Y"` // 持有6月盈利概率 Profit6Y string `json:"PROFIT_6Y"` // 持有1年盈利概率 Profit1N string `json:"PROFIT_1N"` // 近1月访问量 PvY string `json:"PV_Y"` // 近1月定投人数 DtcountY string `json:"DTCOUNT_Y"` // 加自选人数 Ffavorcount string `json:"FFAVORCOUNT"` Earn1N string `json:"EARN_1N"` // 用户平均持有时长(天) Avghold string `json:"AVGHOLD"` Brokentimes string `json:"BROKENTIMES"` Isexchg string `json:"ISEXCHG"` } `json:"Datas"` }
TSSJ 特色数据
type ValueListType ¶
type ValueListType string
ValueListType 列表数据的数据类型
const ( // ValueListTypeNetProfit 净利润 ValueListTypeNetProfit ValueListType = "NETPROFIT" // ValueListTypeGrossProfit 毛利润 ValueListTypeGrossProfit ValueListType = "GROSSPROFIT" // ValueListTypeRevenue 营收 ValueListTypeRevenue ValueListType = "REVENUE" // ValueListTypeROE roe ValueListTypeROE ValueListType = "ROE" // ValueListTypeEPS eps ValueListTypeEPS ValueListType = "EPS" // ValueListTypeROA roa ValueListTypeROA ValueListType = "ROA" // ValueListTypeMLL 毛利率 ValueListTypeMLL ValueListType = "MLL" // ValueListTypeJLL 净利率 ValueListTypeJLL ValueListType = "JLL" )
type ZHPJ ¶
type ZHPJ struct { Securitycode string `json:"SecurityCode"` Updatetime string `json:"UpdateTime"` Totalscore string `json:"TotalScore"` Totalscorechg string `json:"TotalScoreCHG"` Leadpre interface{} `json:"LeadPre"` Risepro interface{} `json:"RisePro"` // 消息面 Msgcount string `json:"MsgCount"` // 主力资金 Capitalscore string `json:"CapitalScore"` // 短期呈现 D1 string `json:"D1"` // 公司质地 Valuescore string `json:"ValueScore"` // 市场关注意愿 Marketscorechg string `json:"MarketScoreCHG"` Status string `json:"Status"` // 评分 Pingfennum string `json:"PingFenNum"` // 打败 xxx 的股票 Dabaishichangnum string `json:"DaBaiShiChangNum"` // 次日上涨概率 Shangzhanggailvnum string `json:"ShangZhangGaiLvNum"` Checkzhengustatus bool `json:"CheckZhenGuStatus"` }
ZHPJ 综合评价
Source Files ¶
- company_profile.go
- eastmoney.go
- fina_cashflow.go
- fina_income.go
- fina_main.go
- free_holders.go
- fund_info.go
- fund_net_list.go
- fund_search.go
- historical_pe_list.go
- industry_list.go
- jiazhipinggu.go
- org_rating.go
- profit_predict.go
- query_fund_by_stock.go
- select_stocks.go
- valuation_status.go
- zonghepingjia.go