Leverage (alpaca-trade-api)

Hello everybody,

i am using the GitHub - alpacahq/alpaca-trade-api-python: Python client for Alpaca's trade API repo and have now tested my strategies with some automatic python scripts.

…Works fine for now…

But I want only to invest 1% for each trade.

My Balance is for example 5000 USD and now I can not trade the amazon symbol because, the price of this stock is 2524 USD, so i have only balance to buy around 2 stocks from Amazon.

BUT

When I am trading (with Alpaca) within Tradingview, when I edit my RISK field to 1%, I will only loose 50 USD. So the leverage effect here is in there of course…

How can I use this great thing also with Alpaca (by using the Alpaca API instead of Alpaca Tradingview)

Can anyone help me out here?

Thx for your help.

cheers

i am so sorry to ask again, but is nobody out there who could help me here maybe?

Thats the only reason why I can not use alpaca for live trading at the moment… :frowning:

Thank you very much!