Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhuangzhi authored Aug 18, 2020
1 parent 0a104c1 commit c7d3c3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ pip install futu

## 2, Start

返回Python,获取数据
返回Python,获取市场快照数据

```
from futu import *
import pandas as pd
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
print(quote_ctx.get_market_snapshot('HK.00700'))
ret, data = quote_ctx.get_market_snapshot('HK.00700')
quote_ctx.close()
data.head()
```

0 comments on commit c7d3c3f

Please sign in to comment.