kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
35 lines • 2.02 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarketAPIImpl = void 0;
const model_get_cross_margin_symbols_resp_1 = require("./model_get_cross_margin_symbols_resp");
const model_get_mark_price_list_resp_1 = require("./model_get_mark_price_list_resp");
const model_get_isolated_margin_symbols_resp_1 = require("./model_get_isolated_margin_symbols_resp");
const model_get_mark_price_detail_resp_1 = require("./model_get_mark_price_detail_resp");
const model_get_margin_config_resp_1 = require("./model_get_margin_config_resp");
const model_get_etf_info_resp_1 = require("./model_get_etf_info_resp");
class MarketAPIImpl {
constructor(transport) {
this.transport = transport;
}
getCrossMarginSymbols(req) {
return this.transport.call('spot', false, 'GET', '/api/v3/margin/symbols', req, model_get_cross_margin_symbols_resp_1.GetCrossMarginSymbolsResp, false);
}
getETFInfo(req) {
return this.transport.call('spot', false, 'GET', '/api/v3/etf/info', req, model_get_etf_info_resp_1.GetETFInfoResp, false);
}
getMarkPriceDetail(req) {
return this.transport.call('spot', false, 'GET', '/api/v1/mark-price/{symbol}/current', req, model_get_mark_price_detail_resp_1.GetMarkPriceDetailResp, false);
}
getMarginConfig() {
return this.transport.call('spot', false, 'GET', '/api/v1/margin/config', null, model_get_margin_config_resp_1.GetMarginConfigResp, false);
}
getMarkPriceList() {
return this.transport.call('spot', false, 'GET', '/api/v3/mark-price/all-symbols', null, model_get_mark_price_list_resp_1.GetMarkPriceListResp, false);
}
getIsolatedMarginSymbols() {
return this.transport.call('spot', false, 'GET', '/api/v1/isolated/symbols', null, model_get_isolated_margin_symbols_resp_1.GetIsolatedMarginSymbolsResp, false);
}
}
exports.MarketAPIImpl = MarketAPIImpl;
//# sourceMappingURL=api_market.js.map