Skip to content

Commit f3c8f04

Browse files
author
Shlomi Kushchi
authored
moving to the right location
1 parent 1d579eb commit f3c8f04

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ account = api.get_account()
3636
api.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-
```
5339
please 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()`
149136
Below is an example of submitting a bracket order.
150137
```py
151138
api.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

Comments
 (0)