Fractional trading in paper account

Hi,

I am trying to do fractional trading in paper account and it is not working because it forces a quantity parameter. Can you please help?

Best,

Andres

I’m also seeing this behavior … any updates on this?

Some stocks are not fractionable. Here is a bit of my program.

def buy_stocks(trading_client, stocks):
    search_params = GetAssetsRequest(asset_class=AssetClass.US_EQUITY)
    assets = trading_client.get_all_assets(search_params)
    for stock in stocks:
        for a in assets:
            symbol = stock[0]
            if a.symbol == symbol and a.tradable:
                if a.fractionable:
                    market_order_data = MarketOrderRequest(
                        symbol=symbol,
                        notional=1000,
                        side=OrderSide.BUY,
                        time_in_force=TimeInForce.DAY
                    )
                    market_order = trading_client.submit_order(
                        order_data=market_order_data
                    )
                else:
                    print(f"Unable to buy {symbol}")
                break

I then manually order the printed stocks. In a qty that matches the price I want since their API does not offer a way to get the current price.