Custom sources: support POST requests with a JSON body
@turbo
Founding memberIdea makerBug hunterCustom sources can only use GET. Some official price sources only answer POST. Example: a Mexican fund price service (gafplataforma.com.mx) whose price history endpoint takes a JSON body with operator, fund, series and a date range. A GET to the same address redirects to a login page.
Request: an optional method (GET or POST) and an optional request body for custom sources, with the same placeholders as the address ({SYMBOL}, {FROM}, {TO}, {FROM_UNIX}, {TO_UNIX}, {KEY}), filled and escaped as JSON strings. Content-Type would be set by the Connector (application/json), since it is a forbidden header today.
It would also help if {SYMBOL} could carry more than one value (for example fund and series separated by a character the source definition splits on), so one source can serve many funds instead of one source per fund, given the limit of 12 custom sources.
2 replies
Sign in to reply with your Turbobulls account.