# .Q.hg limit?

**URL:** https://forum.kx.com/t/q-hg-limit/11651
**Category:** Community Support
**Tags:** kdb-and-q
**Created:** [December 7, 2017, 6:24am UTC](https://forum.kx.com/t/q-hg-limit/11651 "2017-12-07T06:24:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ag12](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ag12](https://forum.kx.com/u/ag12)
#### Post date: [December 7, 2017, 6:24am UTC](https://forum.kx.com/t/q-hg-limit/11651/1 "2017-12-07T06:24:00Z")

</div>

What is the max url length accepted by .Q.hg (HTTP GET)?

I looked in .q.k, it doesn’t appear that .Q.hmb or Q.hg checks for a limit.

Please update the documentation @ [http://code.kx.com/q/ref/dotq/#qhg-http-get](http://code.kx.com/q/ref/dotq/#qhg-http-get) with the max length.

[https://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request](https://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request)

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #d0d2da; background-color: #161821; background-color: rgba(22, 24, 33, 0.95)}span.s1 {font-variant-ligatures: no-common-ligatures}

q)u1:“[https://api.iextrading.com/1.0/stock/market/batch?symbols=ASRV,BAC,BANR,BBT,BK,BOH,BOKF,BPFH,BRKL,BXS,C,CBSH,CBU,CFR,CMA,COLB,CVBF,DCOM,EWBC,FCF,FHN,FITB,FMBI,FULT,HBAN&amp;types=quote,stats&amp;filter=peRatio,priceToSales,priceToBook,returnOnEquity,marketCap](https://api.iextrading.com/1.0/stock/market/batch?symbols=ASRV,BAC,BANR,BBT,BK,BOH,BOKF,BPFH,BRKL,BXS,C,CBSH,CBU,CFR,CMA,COLB,CVBF,DCOM,EWBC,FCF,FHN,FITB,FMBI,FULT,HBAN&amp;types=quote,stats&amp;filter=peRatio,priceToSales,priceToBook,returnOnEquity,marketCap)”

q)u2:“[https://api.iextrading.com/1.0/stock/market/batch?symbols=ASRV,BAC,BANR,BBT,BK,BOH,BOKF,BPFH,BRKL,BXS,C,CBSH,CBU,CFR,CMA,COLB,CVBF,DCOM,EWBC,FCF,FHN,FITB,FMBI,FULT,HBAN,JPM&amp;types=quote,stats&amp;filter=peRatio,priceToSales,priceToBook,returnOnEquity,marketCap](https://api.iextrading.com/1.0/stock/market/batch?symbols=ASRV,BAC,BANR,BBT,BK,BOH,BOKF,BPFH,BRKL,BXS,C,CBSH,CBU,CFR,CMA,COLB,CVBF,DCOM,EWBC,FCF,FHN,FITB,FMBI,FULT,HBAN,JPM&amp;types=quote,stats&amp;filter=peRatio,priceToSales,priceToBook,returnOnEquity,marketCap)”

q)count u1

251

q)count u2 // added “,JPM” (4 more chars), note that this url works in Chrome v62

255

q).Q.hg `$u1 // works

"{"ASRV":{"quote":{"peRatio":null,"marketCap":78577443},"stats":{"priceToSales":1.3475348,"priceToBook":0.81,"returnOnEquity":5.52}},"BAC":{"quote":{"peRati..

q).Q.hg `$u2 // doesn’t work :(

'domain

[0].Q.hg `$u2

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #d0d2da; background-color: #161821; background-color: rgba(22, 24, 33, 0.95)}span.s1 {font-variant-ligatures: no-common-ligatures}

^

q))

q)).Q.k

3.5

q)).Q.K

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #d0d2da; background-color: #161821; background-color: rgba(22, 24, 33, 0.95)}span.s1 {font-variant-ligatures: no-common-ligatures}

2017.11.06

---

<div class="post-metadata">

### Author: ![charlie1](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@charlie1](https://forum.kx.com/u/charlie1)
#### Post date: [December 7, 2017, 10:17am UTC](https://forum.kx.com/t/q-hg-limit/11651/2 "2017-12-07T10:17:00Z")

</div>

kdb+ treats this as a path, and currently is limited to 254. This will be increased in the next version of kdb+ (3.6).

In the meantime, can you use post requests?

thanks

---

<div class="post-metadata">

### Author: ![ag12](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ag12](https://forum.kx.com/u/ag12)
#### Post date: [December 7, 2017, 9:47pm UTC](https://forum.kx.com/t/q-hg-limit/11651/3 "2017-12-07T21:47:00Z")

</div>

Unfortunately not.

[https://iextrading.com/developer/docs/#http-methods](https://iextrading.com/developer/docs/#http-methods)

\>The IEX API only supports&nbsp; **GET** &nbsp;requests at this time.
