Skip to content

Commit

Permalink
fix: instrument getting parsed as json (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhumitattarde authored Jul 4, 2023
1 parent 832e10c commit 08ccf0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/kitepp/kite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class kite {
{ "mf.holdings", { utils::http::METHOD::GET, "/mf/holdings" } },
{ "mf.instruments", { utils::http::METHOD::GET, "/mf/instruments",
utils::http::CONTENT_TYPE::NON_JSON,
utils::http::CONTENT_TYPE::JSON } },
utils::http::CONTENT_TYPE::NON_JSON } },
{ "mf.sips", { utils::http::METHOD::GET, "/mf/sips" } },
{ "mf.sip.info", { utils::http::METHOD::GET, "/mf/sips/{0}" } },
{ "mf.sip.place", { utils::http::METHOD::POST, "/mf/sips" } },
Expand All @@ -667,10 +667,10 @@ class kite {
// market endpoints
{ "market.instruments.all", { utils::http::METHOD::GET, "/instruments",
utils::http::CONTENT_TYPE::NON_JSON,
utils::http::CONTENT_TYPE::JSON } },
utils::http::CONTENT_TYPE::NON_JSON } },
{ "market.instruments", { utils::http::METHOD::GET, "/instruments/{0}",
utils::http::CONTENT_TYPE::NON_JSON,
utils::http::CONTENT_TYPE::JSON } },
utils::http::CONTENT_TYPE::NON_JSON } },
{ "market.margins", { utils::http::METHOD::GET, "/margins/{0}" } },
{ "market.historical",
{ utils::http::METHOD::GET,
Expand Down
2 changes: 1 addition & 1 deletion include/kitepp/kite/internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ inline utils::http::response kite::sendReq(
.send(client);
}
return utils::http::request { endpoint.method, endpoint.Path(fmtArgs),
getAuth(), body, endpoint.contentType }
getAuth(), body, endpoint.contentType, endpoint.responseType }
.send(client);
};

Expand Down

0 comments on commit 08ccf0f

Please # to comment.