Giter VIP home page Giter VIP logo

Comments (5)

Micro-sheep avatar Micro-sheep commented on August 28, 2024

好,不过你现在可以根据收盘和涨跌幅来算开盘价。

from efinance.

vensentzhou avatar vensentzhou commented on August 28, 2024

收盘和涨跌幅 算出的应该是昨收

from efinance.

Micro-sheep avatar Micro-sheep commented on August 28, 2024

好,不过你现在可以根据收盘和涨跌幅来算开盘价。

你急着用的话,修改 efinance/stock/config.py 里面的一个变量为下面的内容

# 全部沪深A股榜单表头
EASTMONEY_QUOTE_FIELDS = {
    'f12': '股票代码',
    'f14': '股票名称',
    'f13': '市场编号',
    'f3': '涨跌幅',
    'f2': '最新价',
    'f15': '最高',
    'f16': '最低',
    'f17': '今开',
    'f4': '涨跌额',
    'f8': '换手率',
    'f10': '量比',
    'f9': '动态市盈率',
    'f5': '成交量',
    'f6': '成交额',
    'f18': '昨日收盘',
    'f20': '总市值',
    'f21': '流通市值'
}

from efinance.

vensentzhou avatar vensentzhou commented on August 28, 2024

感谢大神

from efinance.

Micro-sheep avatar Micro-sheep commented on August 28, 2024

ef.stock.get_latest_quote(code)

股票代码 | 股票名称 | 涨跌幅 | 最新价 | 最高 | 最低 | 涨跌额 | 换手率 | 动态市盈率 | 成交量 | 成交额 | 昨日收盘 | 总市值 | 流通市值 | 市场类型

-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --

515650 | 消费50ETF | 0.27 | 1.4630 | 1.4670 | 1.4470 | 0.0040 | 2.97 | 0.0 | 299247 | 4.352412e+07 | 1.4590 | 1473510192 | 1473510192 | 沪A

ef.stock.get_realtime_quotes()

股票代码 | 股票名称 | 涨跌幅 | 最新价 | 最高 | 最低 | 涨跌额 | 换手率 | 动态市盈率 | 成交量 | 成交额 | 昨日收盘 | 总市值 | 流通市值 | 行情ID | 市场类型

-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --

601139 | 深圳燃气 | 10.04 | 10.63 | 10.63 | 9.31 | 0.97 | 2.64 | 17.94 | 760195 | 753869120.0 | 9.66 | 30580038993 | 30579645151 | 1.601139 | 沪A

如果能添加今日开盘 这个字段,日线时间切片数据就齐了。

2021-08-15 发布了 v0.3.5。更新到此版本之后即可看到 今开 这个字段

from efinance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.