This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
# vxData

中国A股市场的开源数据集合

## 数据介绍

### 1. 交易状态 ___(stock.market_status)___

```
from vxData import stock
print(stock.market_status)
# 返回当前市场交易状态: close, trading, break
```

### 2. 交易时间
```
from vxData import stock
# 最近交易日早上开盘时间
print(stock.market_am_open)

# 最近交易日早上收盘时间
print(stock.market_am_close)

# 最近交易日下午开盘时间
print(stock.market_fm_open)

# 最近交易日下午收盘时间
print(stock.market_fm_close)
```

### 3. 实时行情接口(___level 1___)

```
from vxData import stock

print(stock.hq('sz150023','sz150022'))

```

返回一个dataframe格式:

index:symbol


```
columns:[
"name", "open", "yclose", "lasttrade", "high", "low", "bid", "ask",
"volume", "amount", "bid1_m", "bid1_p", "bid2_m", "bid2_p", "bid3_m",
"bid3_p", "bid4_m", "bid4_p", "bid5_m", "bid5_p", "ask1_m", "ask1_p",
"ask2_m", "ask2_p", "ask3_m", "ask3_p", "ask4_m", "ask4_p", "ask5_m",
"ask5_p", "date", "time", "status"
]
```

### 4. 历史行情接口

```
from vxData import stock

print(stock.bar('sz150023', start='2016-01-01', ktype='D', adjtype='forward')

```

___如果当前为交易时间,则bar返回当天数据时,自动将当前行情添加进来。___


返回一个dataframe格式:

index: date

```
columns:['date', 'open', 'close', 'high', 'low', 'yclose', 'volume']
```

### 5. 分时数据

```
from vxData import stock

print(stock.tick('sz300104', '2016-01-01')

```

返回当天的分时数据

index: date

```
columns: ['symbol', 'type', 'price', 'change', 'amount']
```
Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
vxData-0.0.2.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Dec 25, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting