# Post an order to C2 using python

**URL:** <https://forums.collective2.com/t/post-an-order-to-c2-using-python/10952>\
**Category:** C2 Software Development\
**Created:** [September 20, 2017, 1:56pm UTC](https://forums.collective2.com/t/post-an-order-to-c2-using-python/10952 "2017-09-20T13:56:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BakhosSayssouk](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@BakhosSayssouk](https://forums.collective2.com/u/BakhosSayssouk)\
**Post date:** [September 20, 2017, 1:56pm UTC](https://forums.collective2.com/t/post-an-order-to-c2-using-python/10952/1 "2017-09-20T13:56:51Z")

</div>

Hello here i have my python code that post an order with action BTO …

import requests

url = ‘[https://collective2.com/world/apiv2/submitSignal](https://collective2.com/world/apiv2/submitSignal)’

headers = {‘content-type’: ‘application/json’, ‘Accept-Charset’: ‘UTF-8’}

data = {  
“apikey”: “xxxxxx”,  
“systemid”: “887889”,  
“signal”:{  
“action”: “BTO”,  
“quant”: 2,  
“symbol”: “GOLD”,  
“typeofsymbol”: “stock”,  
“limit”: 31.05,  
“duration”: “GTC”,  
“signalid”: 1011  
}  
}  
params={}  
requests.post(url, params=params, json=data)

First what “systemid” should be?  
When execution no errors shown but i go to C2 on browser nothing are post!! (no action)  
Any help? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lorant\_algotrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/lorant_algotrader/32/21594_2.png) [@lorant\_algotrader](https://forums.collective2.com/u/lorant_algotrader)\
**Post date:** [September 20, 2017, 2:31pm UTC](https://forums.collective2.com/t/post-an-order-to-c2-using-python/10952/2 "2017-09-20T14:31:16Z")

</div>

I’ll try to help you,

Please contact me directly on Skype (lorant\_algotrader) or email ([lorant@collective2.com](mailto:lorant@collective2.com))

Lorant
