Amibroker Data Plugin Source Code Top _top_ -
public: int GetDataParamCount() return 2; const char* GetDataParamName(int index) return index == 0 ? "username" : "password"; int GetDataParamType(int index) return index == 0 ? PARAM_STRING : PARAM_STRING;
// In GetQuotesEx, for ACTION_REFRESH (real-time) async_http_get("https://api.exchange.com/ticker?symbol=" + symbol, [&](json data) pQuotes[0].fLast = data["price"]; pQuotes[0].nVolume = data["vol"]; pQuotes[0].fOpen = prevOpen; // Carry over ); amibroker data plugin source code top
Use C++ (Community Edition works fine).