{"size": 1023, "ext": "js", "max_stars_repo_path": "examples/nodejs/on-demand-screener.js", "max_stars_repo_name": "JeffreyLuu/apexe3-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "examples/nodejs/on-demand-screener.js", "max_issues_repo_name": "JeffreyLuu/apexe3-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/nodejs/on-demand-screener.js", "max_forks_repo_name": "JeffreyLuu/apexe3-api", "max_forks_repo_forks_event_min_datetime": "2021-04-24T19:49:45.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-24T19:49:45.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.4166666667, "max_line_length": 139, "alphanum_fraction": 0.6930596285}
/**
 * on-demand-screener.js
 * 
 * Provides a progammatic way to screen markets. 
 * A visualisation of the screener is available at:
 * https://app.ae3platform.com/
 * 
 * Disclaimer:
 * APEX:E3 is a financial technology company based in the United Kingdom https://www.apexe3.com
 *  
 * None of this code constitutes financial advice. APEX:E3 is not 
 * liable for any loss resulting from the use of this code or the API. 
 * 
 * This code is governed by The MIT License (MIT)
 * 
 * Copyright (c) 2020 APEX:E3 Team
 * 
 **/

const apexe3 = require('./apexe3/apexe3');

const clientId = "Your-ClientId-Goes-Here";
const clientSecret = "Your-Client-Secret-Goes-Here";

(async () => {
    await apexe3.initialise(clientId, clientSecret);
    const stats = await screenPair('BTC','USDT');
    console.table(stats, ['exchangeId','baseId', 'quoteId', 'v24HrChg','v30dChg','v24HrVsV30dSum','p15MinChg','p1HrChg','p7dChg','pLast']);

})();


async function screenPair(base,quote){

    return await apexe3.screen(base,quote);
}