Skip to content

Commit

Permalink
Merge pull request #263 from alpacahq/readme-base-url
Browse files Browse the repository at this point in the history
Add base_url to REST() example
  • Loading branch information
Shlomi Kushchi authored Jul 13, 2020
2 parents d4eb12e + b093b1f commit 0a286e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In order to call Alpaca's trade API, you need to sign up for a account and obtai
```python
import alpaca_trade_api as tradeapi

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

0 comments on commit 0a286e8

Please sign in to comment.