Skip to content

Commit b093b1f

Browse files
author
Shlomi Kushchi
authored
add base_url to REST() example
also remove api_version since default is 'v2' if anyone still works with v1, they know this. new users should only work with the default value
1 parent 259136e commit b093b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In order to call Alpaca's trade API, you need to sign up for a account and obtai
2727
```python
2828
import alpaca_trade_api as tradeapi
2929

30-
api = tradeapi.REST('<key_id>', '<secret_key>', api_version='v2') # or use ENV Vars shown below
30+
api = tradeapi.REST('<key_id>', '<secret_key>', base_url='https://paper-api.alpaca.markets') # or use ENV Vars shown below
3131
account = api.get_account()
3232
api.list_positions()
3333
```

0 commit comments

Comments
 (0)