Skip to content

Commit 0a286e8

Browse files
author
Shlomi Kushchi
authored
Merge pull request #263 from alpacahq/readme-base-url
Add base_url to REST() example
2 parents d4eb12e + b093b1f commit 0a286e8

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)