# Details requested on rate limiting threshold for market data requests

**URL:** <https://community.tradovate.com/t/details-requested-on-rate-limiting-threshold-for-market-data-requests/3224>\
**Category:** Community Support\
**Created:** [October 18, 2021, 8:00pm UTC](https://community.tradovate.com/t/details-requested-on-rate-limiting-threshold-for-market-data-requests/3224 "2021-10-18T20:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tikidave](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/tikidave/32/2889_2.png) [@tikidave](https://community.tradovate.com/u/tikidave)\
**Post date:** [October 18, 2021, 8:00pm UTC](https://community.tradovate.com/t/details-requested-on-rate-limiting-threshold-for-market-data-requests/3224/1 "2021-10-18T20:00:28Z")

</div>

I’m finding that my project is getting hit with the rate limiter quite often when using the `getChart` request. I was wondering if you could please provide more specifics around the thresholds here for market data? Is there a way to increase the limitations if needed?

---

<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 20, 2021, 2:09pm UTC](https://community.tradovate.com/t/details-requested-on-rate-limiting-threshold-for-market-data-requests/3224/2 "2021-10-20T14:09:45Z")

</div>

It’s actually really easy to appease the rate limiter when it comes to `getChart`, you just need to wait `'p-time'` seconds, then retry the penalized request with all the same parameters in the body, plus `'p-ticket'` as an additional body parameter. It’s usually only a 1 second penalty, then it will go back to a normal rate until you get hit again. I use code like this to account for it:

```auto
//excerpt from a Tradovate Socket implementation
function TradovateSocket() {

    //...

    this.subscribe = async function({url, body, subscription}) {
        const self = this
        
        let [response] = await self.send({url, body})

        if(response.d['p-ticket']) {
            await waitForMs(response.d['p-time']*1000)
            let [nextResponse] = await self.send({
                url, 
                body: { ...body, 'p-ticket': response.d['p-ticket'] }
            })
            response = nextResponse
        }

        const realtimeId = response?.d?.realtimeId
        
        console.log(realtimeId)

        //... return new Promise(...
    }

    //...
}

```

---

<div class="post-metadata">

**Author:** ![tikidave](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/tikidave/32/2889_2.png) [@tikidave](https://community.tradovate.com/u/tikidave)\
**Post date:** [October 20, 2021, 2:28pm UTC](https://community.tradovate.com/t/details-requested-on-rate-limiting-threshold-for-market-data-requests/3224/3 "2021-10-20T14:28:22Z")

</div>

Thanks Alexander, I have coded around it but it happens a lot and I was trying to understand what those limits are, and if they could be adjusted on a client basis.
