From b093b1f14ffc3e4152216b25ed30a041afddc8e7 Mon Sep 17 00:00:00 2001 From: Shlomi Kushchi Date: Tue, 7 Jul 2020 16:20:11 +0300 Subject: [PATCH] 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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 266e7381..108a575d 100644 --- a/README.md +++ b/README.md @@ -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('', '', api_version='v2') # or use ENV Vars shown below +api = tradeapi.REST('', '', base_url='https://paper-api.alpaca.markets') # or use ENV Vars shown below account = api.get_account() api.list_positions() ```