Skip to content

Commit ed4ec60

Browse files
committed
Add basic example
1 parent 1d91d75 commit ed4ec60

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

README.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ ShiPanE-Python-SDK
2323
- `米筐(RiceQuant)`_ 集成
2424
- 优矿(Uqer)集成
2525

26+
基本用法
27+
--------------
28+
29+
.. code:: python
30+
31+
import logging
32+
33+
import shipane_sdk
34+
35+
logging.basicConfig(level=logging.DEBUG)
36+
37+
client = shipane_sdk.Client(host='localhost', port=8888, key='')
38+
account_info = client.get_account('title:monijiaoyi')
39+
print(account_info)
40+
41+
详见:examples/basic_example.py
42+
2643
定时任务调度
2744
--------------
2845

examples/basic_example.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import logging
4+
5+
import shipane_sdk
6+
7+
logging.basicConfig(level=logging.DEBUG)
8+
9+
client = shipane_sdk.Client(host='localhost', port=8888, key='')
10+
account_info = client.get_account('title:monijiaoyi')
11+
print(account_info)

0 commit comments

Comments
 (0)