const Lang = imports.lang;
const Local = imports.misc.extensionUtils.getCurrentExtension();
const BaseProvider = Local.imports.BaseProvider;

const Api = new Lang.Class({
    Name: "Kucoin.Api",
    Extends: BaseProvider.Api,

    apiName: "Kucoin",

    apiDocs: [
        ["API Docs", "https://docs.kucoin.com/"]
    ],

    interval: 15,

    getUrl({
        base,
        quote
    }) {
        return `https://openapi-v2.kucoin.com/api/v1/market/orderbook/level1?symbol=${base}-${quote}`
    },

    getLast({
        code,
        msg,
        data
    }) {
        if (code != 200000) {
            throw new Error(msg);
        }

        return data.price;
    }
});


@@ -395,18 +395,16 @@
     
-  
 return 
-%60
+%22
 http
@@ -453,16 +453,29 @@
 derbook/
+%22 +%0A        %60
 level1?s

fix line length