@@ -36,20 +36,6 @@ account = api.get_account()
3636api.list_positions()
3737```
3838
39- #### Using ` get_barset() `
40- ``` python
41- import pandas as pd
42- NY = ' America/New_York'
43- start= pd.Timestamp(' 2020-08-01' , tz = NY ).isoformat()
44- end= pd.Timestamp(' 2020-08-30' , tz = NY ).isoformat()
45- print (api.get_barset([' AAPL' , ' GOOG' ], ' day' , start = start, end = end).df)
46-
47- # Minute data example
48- start= pd.Timestamp(' 2020-08-28 9:30' , tz = NY ).isoformat()
49- end= pd.Timestamp(' 2020-08-28 16:00' , tz = NY ).isoformat()
50- print (api.get_barset([' AAPL' , ' GOOG' ], ' minute' , start = start, end = end).df)
51-
52- ```
5339please note the exact format of the dates
5440
5541## Example Scripts
@@ -146,6 +132,7 @@ You can access the following information through this object.
146132
147133### Rest Examples
148134
135+ ##### Using ` submit_order() `
149136Below is an example of submitting a bracket order.
150137``` py
151138api.submit_order(
@@ -165,6 +152,21 @@ api.submit_order(
165152)
166153```
167154
155+ ##### Using ` get_barset() `
156+ ``` python
157+ import pandas as pd
158+ NY = ' America/New_York'
159+ start= pd.Timestamp(' 2020-08-01' , tz = NY ).isoformat()
160+ end= pd.Timestamp(' 2020-08-30' , tz = NY ).isoformat()
161+ print (api.get_barset([' AAPL' , ' GOOG' ], ' day' , start = start, end = end).df)
162+
163+ # Minute data example
164+ start= pd.Timestamp(' 2020-08-28 9:30' , tz = NY ).isoformat()
165+ end= pd.Timestamp(' 2020-08-28 16:00' , tz = NY ).isoformat()
166+ print (api.get_barset([' AAPL' , ' GOOG' ], ' minute' , start = start, end = end).df)
167+
168+ ```
169+
168170---
169171
170172## StreamConn
0 commit comments