# Trying to read the positions on paper mode to test run my bot

**URL:** https://forum.alpaca.markets/t/trying-to-read-the-positions-on-paper-mode-to-test-run-my-bot/16830
**Category:** Alpaca Trading
**Created:** [April 24, 2025, 10:50pm UTC](https://forum.alpaca.markets/t/trying-to-read-the-positions-on-paper-mode-to-test-run-my-bot/16830 "2025-04-24T22:50:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jesusleon77](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jesusleon77](https://forum.alpaca.markets/u/jesusleon77)
#### Post date: [April 24, 2025, 10:50pm UTC](https://forum.alpaca.markets/t/trying-to-read-the-positions-on-paper-mode-to-test-run-my-bot/16830/1 "2025-04-24T22:50:20Z")

</div>

I am developing a trading bot . I am trying to run it in the paper account. Apparently the Api key is not allowing to get the position

---

<div class="post-metadata">

### Author: ![StatsGuy](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@StatsGuy](https://forum.alpaca.markets/u/StatsGuy)
#### Post date: [April 25, 2025, 8:19am UTC](https://forum.alpaca.markets/t/trying-to-read-the-positions-on-paper-mode-to-test-run-my-bot/16830/2 "2025-04-25T08:19:21Z")

</div>

The following does not work?  
from alpaca.trading.client import TradingClient  
trading\_client = TradingClient(key, secret, paper=True)  
positions = trading\_client.get\_all\_positions()  
for position in positions:  
NOTE: a single tab indents this–\> print(position)
