# "Access is denied" for place order request

**URL:** <https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160>\
**Category:** Community Support\
**Created:** [October 3, 2021, 4:27pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160 "2021-10-03T16:27:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fin1](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fin1](https://community.tradovate.com/u/fin1)\
**Post date:** [October 3, 2021, 4:27pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/1 "2021-10-03T16:27:37Z")

</div>

I’m seeing “Access is denied” response when the oder is placed – the below request is being sent to the demo account placeorder endpoint.  
Sensitive fields have been masked below. Please see below for details – could you guide me with this issue? Please let me know if you need additional info. Ignore single quotes around the JSON name and string value fields – it’s actually double quotes.

Request HTTP header – Bearer token was originally obtained from auth call to [https://demo-api.tradovate.com/v1/auth/accesstokenrequest:](https://demo-api.tradovate.com/v1/auth/accesstokenrequest:)  
{  
‘Accept’: ‘application/json’,  
‘Authorization’: ‘Bearer \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*’  
}

Request payload (body) –  
Please note -  
1.) accountId was obtained from [https://demo.tradovateapi.com/v1/account/list](https://demo.tradovateapi.com/v1/account/list)  
2.) accountSpec is same as “name” in auth token response  
{  
‘accountSpec’: ‘\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*’,  
‘accountId’: \*\*\*\*\*\*,  
‘clOrdId’: ‘AB611111124’,  
‘action’: ‘Buy’,  
‘symbol’: ‘ESZ1’,  
‘orderQty’: 4,  
‘orderType’: ‘Stop’,  
‘timeInForce’: ‘GTC’,  
‘isAutomated’: true,  
‘stopPrice’: 4410.0  
}

Response received from Tradovate API:  
{  
‘failureReason’: ‘UnknownReason’,  
‘failureText’: ‘Access is denied’  
}

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [October 4, 2021, 12:24pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/2 "2021-10-04T12:24:29Z")

</div>

Hello @fin1,

Could you please ensure that your API Key is setup to have Full Access to place orders?

 ![2021-10-04 (1)](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/c/cb987d6794281f22b90bfa9950c84a3580c00341.png)

 ![2021-10-04 (2)](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/5/59fbd0f9db0cc5df5e1c4d2d3422a4b0977fe69e.png)

---

<div class="post-metadata">

**Author:** ![fin1](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fin1](https://community.tradovate.com/u/fin1)\
**Post date:** [October 4, 2021, 1:59pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/3 "2021-10-04T13:59:33Z")

</div>

Thanks for the response. I did have the “Full access” turned on.  
Here is the screenshot.  
 ![Screenshot 2021-10-04 085837](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/7/7834a442716bd0847799986abdba023c5f1eff13.jpeg)

---

<div class="post-metadata">

**Author:** ![Lasvegasbrad](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Lasvegasbrad](https://community.tradovate.com/u/Lasvegasbrad)\
**Post date:** [January 6, 2022, 7:26pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/4 "2022-01-06T19:26:20Z")

</div>

Hi Fin, did you ever get an answer? I have yet to see anyone get a real answer on this “forum”. I see the fake answer YOU got was a typical no-thought, easy way out; Blame the user.

Thanks for any advice you have to all of us floundering new guys.

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [January 6, 2022, 7:55pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/5 "2022-01-06T19:55:51Z")

</div>

Hello @Lasvegasbrad,

Are you having an issue with the API currently? Please share some details and I’ll help you as best I can.

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [January 6, 2022, 7:55pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/6 "2022-01-06T19:55:58Z")

</div>

Regarding the issue that @fin1 was having, it looks like he may have obtained his access token from the wrong endpoint based on his original question. The active valid base HTTP URLs for our endpoints are [https://demo.tradovateapi.com/v1](https://demo.tradovateapi.com/v1) and [https://live.tradovateapi.com/v1](https://live.tradovateapi.com/v1).

---

<div class="post-metadata">

**Author:** ![Lasvegasbrad](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Lasvegasbrad](https://community.tradovate.com/u/Lasvegasbrad)\
**Post date:** [January 7, 2022, 12:31am UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/7 "2022-01-07T00:31:36Z")

</div>

Hello Alexander, I am one of the many TradingView folks trying to run my script “live” on my Tradovate account. Yes, I will be very cautious and start out with 1 mini-contract with every kind of daily loss limit in place. For certain live forward testing is the gold-standard to prove out our back-testing strategies.

Please give us your preferred 3rd party method to actually connect TV Pine scripts to Tradovate. I have a paid for AutoView account, the API key, and only get ‘Access is denied’ errors for this simple order, a=TRADOVATE b=buy e=tradovate q=1 s=mgcg2. I see in the Tradovate notes mention of “Collective 2” and “webhookrelay”. Is there yet more? If we could at least know where to start. If you are not allowed to recommend one over the other, maybe a short list? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [January 7, 2022, 1:32pm UTC](https://community.tradovate.com/t/access-is-denied-for-place-order-request/3160/8 "2022-01-07T13:32:44Z")

</div>

Hi @Lasvegasbrad.

There are a few solutions in the works, one of which is live now. Check out this thread:

> [@Can we use Webhook from Tradingview to place order with tradovate?](https://community.tradovate.com/t/can-we-use-webhook-from-tradingview-to-place-order-with-tradovate/260/18):
>
> So I have good news! A month ago i contacted [hftsolution.com](http://hftsolution.com) asking them helping the tradovate traders to connect tradingview with tradovate’s api. They finalised it and their service is now ready to go. Anyone interested should contact this great man who finally gave us the solution! email: [bhavishyagoyal@hftsolution.com](mailto:bhavishyagoyal@hftsolution.com)
