.Q.hg limit?

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 with the max length.


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&types=quote,stats&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&types=quote,stats&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

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

Unfortunately not.

https://iextrading.com/developer/docs/#http-methods

>The IEX API only supports  GET  requests at this time.