# Unexpected submitted order

**URL:** https://forum.alpaca.markets/t/unexpected-submitted-order/1287
**Category:** Alpaca Integration Applications
**Created:** [April 25, 2020, 5:13pm UTC](https://forum.alpaca.markets/t/unexpected-submitted-order/1287 "2020-04-25T17:13:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![knip](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@knip](https://forum.alpaca.markets/u/knip)
#### Post date: [April 25, 2020, 5:13pm UTC](https://forum.alpaca.markets/t/unexpected-submitted-order/1287/1 "2020-04-25T17:13:28Z")

</div>

Hi everyone,  
I’m using Alpaca python library ([https://github.com/alpacahq/alpaca-trade-api-python](https://github.com/alpacahq/alpaca-trade-api-python)).  
I’m running some tests on the Paper Trading account.

As you can see in the log.txt I’ve submitted only one order for NFLX for 11 stocks, but I’ve received two execution messages with two different order ids (for a total of 22 stocks instead of 11 stocks):  
‘id’: ‘e8b8fb43-9680-4a5f-98d4-520b8aa2f6b3’  
‘id’: ‘c043502e-0b41-449d-9648-cac45a7c2c93’

I have only called the submit order API once with Market type order.

The submit order has been sent using REST api, while the order information are received using the StreamConn registered on ‘trade\_updates’ channel (BusDelBroker\AlpacabusSrvBrokerAlpaca.py).

Here you could find the code and the log.txt: [https://drive.google.com/file/d/1Kp3UhsNcjyOCBj04\_liLV13X68qw0eHo/view?usp=sharing](https://drive.google.com/file/d/1Kp3UhsNcjyOCBj04_liLV13X68qw0eHo/view?usp=sharing)

Regards  
Antonello
