UNPKG

sideshift-node-sdk

Version:

TypeScript Client for SideShift.ai API

23 lines (22 loc) 989 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SideShiftClient = void 0; const sideShiftHttpClient_1 = require("./api/sideShiftHttpClient"); const private_1 = require("./api/private"); const public_1 = require("./api/public"); class SideShiftClient { constructor(config) { const httpHandler = new sideShiftHttpClient_1.SideShiftHttpHandler(config); // public APIs this.coins = new public_1.CoinsAPI(httpHandler); this.shifts = new public_1.ShiftsAPI(httpHandler); this.stats = new public_1.StatsAPI(httpHandler); this.checkout = new public_1.CheckoutAPI(httpHandler); // private APIs this.pairs = new private_1.PairsAPI(httpHandler); this.account = new private_1.AccountAPI(httpHandler); this.orders = new private_1.OrdersAPI(httpHandler); this.createCheckout = new private_1.CreateCheckoutAPI(httpHandler); } } exports.SideShiftClient = SideShiftClient;