Skip to content

Cannot REST request binance futures market data by default? #89

@andrewyuyang

Description

@andrewyuyang

Hi, it seems to access binance futures market data, I had to modify for example

`api::result<klines_t> api::klines (const char* symbol, const char* interval, std::size_t limit, klines_cb cb)
{
const impl::init_list_type map = {{"symbol", symbol}, {"limit", limit}, {"interval", interval}};

return pimpl->post (false, "/api/v3/klines", boost::beast::http::verb::get, map, std::move (cb));

}`
"/api/v3/klines" needs to be changed to "fapi/v1/klines"

Is this the right approach for now or am I missing something? I am relatively new to writing code.

Could someone with sufficient coding experience kindly optimize the code base so the the users of the library can choose to put these strings outside the library? I believe this is good also because binance could update their endpoints sometimes.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions