"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LCDQueryClient = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var LCDQueryClient = /*#__PURE__*/function () {
  function LCDQueryClient(_ref) {
    var requestClient = _ref.requestClient;
    (0, _classCallCheck2["default"])(this, LCDQueryClient);
    (0, _defineProperty2["default"])(this, "req", void 0);
    this.req = requestClient;
    this.queryExchangeParams = this.queryExchangeParams.bind(this);
    this.subaccountDeposits = this.subaccountDeposits.bind(this);
    this.subaccountDeposit = this.subaccountDeposit.bind(this);
    this.exchangeBalances = this.exchangeBalances.bind(this);
    this.spotMarkets = this.spotMarkets.bind(this);
    this.spotMarket = this.spotMarket.bind(this);
    this.spotOrderbook = this.spotOrderbook.bind(this);
    this.traderSpotOrders = this.traderSpotOrders.bind(this);
    this.spotOrdersByHashes = this.spotOrdersByHashes.bind(this);
    this.subaccountOrders = this.subaccountOrders.bind(this);
    this.traderSpotTransientOrders = this.traderSpotTransientOrders.bind(this);
    this.spotMidPriceAndTOB = this.spotMidPriceAndTOB.bind(this);
    this.derivativeMidPriceAndTOB = this.derivativeMidPriceAndTOB.bind(this);
    this.derivativeOrderbook = this.derivativeOrderbook.bind(this);
    this.traderDerivativeOrders = this.traderDerivativeOrders.bind(this);
    this.derivativeOrdersByHashes = this.derivativeOrdersByHashes.bind(this);
    this.traderDerivativeTransientOrders = this.traderDerivativeTransientOrders.bind(this);
    this.derivativeMarkets = this.derivativeMarkets.bind(this);
    this.derivativeMarket = this.derivativeMarket.bind(this);
    this.derivativeMarketAddress = this.derivativeMarketAddress.bind(this);
    this.subaccountTradeNonce = this.subaccountTradeNonce.bind(this);
    this.exchangeModuleState = this.exchangeModuleState.bind(this);
    this.positions = this.positions.bind(this);
    this.subaccountPositions = this.subaccountPositions.bind(this);
    this.subaccountPositionInMarket = this.subaccountPositionInMarket.bind(this);
    this.subaccountEffectivePositionInMarket = this.subaccountEffectivePositionInMarket.bind(this);
    this.perpetualMarketInfo = this.perpetualMarketInfo.bind(this);
    this.expiryFuturesMarketInfo = this.expiryFuturesMarketInfo.bind(this);
    this.perpetualMarketFunding = this.perpetualMarketFunding.bind(this);
    this.subaccountOrderMetadata = this.subaccountOrderMetadata.bind(this);
    this.tradeRewardPoints = this.tradeRewardPoints.bind(this);
    this.pendingTradeRewardPoints = this.pendingTradeRewardPoints.bind(this);
    this.tradeRewardCampaign = this.tradeRewardCampaign.bind(this);
    this.feeDiscountAccountInfo = this.feeDiscountAccountInfo.bind(this);
    this.feeDiscountSchedule = this.feeDiscountSchedule.bind(this);
    this.balanceMismatches = this.balanceMismatches.bind(this);
    this.balanceWithBalanceHolds = this.balanceWithBalanceHolds.bind(this);
    this.feeDiscountTierStatistics = this.feeDiscountTierStatistics.bind(this);
    this.ninjaVaultInfos = this.ninjaVaultInfos.bind(this);
    this.queryMarketIDFromVault = this.queryMarketIDFromVault.bind(this);
    this.historicalTradeRecords = this.historicalTradeRecords.bind(this);
    this.isOptedOutOfRewards = this.isOptedOutOfRewards.bind(this);
    this.optedOutOfRewardsAccounts = this.optedOutOfRewardsAccounts.bind(this);
    this.marketVolatility = this.marketVolatility.bind(this);
    this.binaryOptionsMarkets = this.binaryOptionsMarkets.bind(this);
    this.traderDerivativeConditionalOrders = this.traderDerivativeConditionalOrders.bind(this);
  }
  /* Retrieves exchange params */
  (0, _createClass2["default"])(LCDQueryClient, [{
    key: "queryExchangeParams",
    value: function () {
      var _queryExchangeParams = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
        var _params,
          endpoint,
          _args = arguments;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
              endpoint = "injective/exchange/v1beta1/exchangeParams";
              _context.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context.abrupt("return", _context.sent);
            case 5:
            case "end":
              return _context.stop();
          }
        }, _callee, this);
      }));
      function queryExchangeParams() {
        return _queryExchangeParams.apply(this, arguments);
      }
      return queryExchangeParams;
    }() /* Retrieves a Subaccount's Deposits */
  }, {
    key: "subaccountDeposits",
    value: function () {
      var _subaccountDeposits = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.subaccountId) !== "undefined") {
                options.params.subaccount_id = params.subaccountId;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.subaccount) !== "undefined") {
                options.params.subaccount = params.subaccount;
              }
              endpoint = "injective/exchange/v1beta1/exchange/subaccountDeposits";
              _context2.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context2.abrupt("return", _context2.sent);
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      function subaccountDeposits(_x) {
        return _subaccountDeposits.apply(this, arguments);
      }
      return subaccountDeposits;
    }() /* Retrieves a Subaccount's Deposits */
  }, {
    key: "subaccountDeposit",
    value: function () {
      var _subaccountDeposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.subaccountId) !== "undefined") {
                options.params.subaccount_id = params.subaccountId;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.denom) !== "undefined") {
                options.params.denom = params.denom;
              }
              endpoint = "injective/exchange/v1beta1/exchange/subaccountDeposit";
              _context3.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context3.abrupt("return", _context3.sent);
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3, this);
      }));
      function subaccountDeposit(_x2) {
        return _subaccountDeposit.apply(this, arguments);
      }
      return subaccountDeposit;
    }() /* Retrieves all of the balances of all users on the exchange. */
  }, {
    key: "exchangeBalances",
    value: function () {
      var _exchangeBalances = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
        var _params,
          endpoint,
          _args4 = arguments;
        return _regenerator["default"].wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
              endpoint = "injective/exchange/v1beta1/exchange/exchangeBalances";
              _context4.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context4.abrupt("return", _context4.sent);
            case 5:
            case "end":
              return _context4.stop();
          }
        }, _callee4, this);
      }));
      function exchangeBalances() {
        return _exchangeBalances.apply(this, arguments);
      }
      return exchangeBalances;
    }() /* Retrieves a list of spot markets. */
  }, {
    key: "spotMarkets",
    value: function () {
      var _spotMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
                options.params.status = params.status;
              }
              endpoint = "injective/exchange/v1beta1/spot/markets";
              _context5.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context5.abrupt("return", _context5.sent);
            case 6:
            case "end":
              return _context5.stop();
          }
        }, _callee5, this);
      }));
      function spotMarkets(_x3) {
        return _spotMarkets.apply(this, arguments);
      }
      return spotMarkets;
    }() /* Retrieves a spot market by ticker */
  }, {
    key: "spotMarket",
    value: function () {
      var _spotMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/spot/markets/".concat(params.marketId);
              _context6.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context6.abrupt("return", _context6.sent);
            case 4:
            case "end":
              return _context6.stop();
          }
        }, _callee6, this);
      }));
      function spotMarket(_x4) {
        return _spotMarket.apply(this, arguments);
      }
      return spotMarket;
    }() /* Retrieves a spot market's orderbook by marketID */
  }, {
    key: "spotOrderbook",
    value: function () {
      var _spotOrderbook = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.limit) !== "undefined") {
                options.params.limit = params.limit;
              }
              endpoint = "injective/exchange/v1beta1/spot/orderbook/".concat(params.marketId);
              _context7.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context7.abrupt("return", _context7.sent);
            case 6:
            case "end":
              return _context7.stop();
          }
        }, _callee7, this);
      }));
      function spotOrderbook(_x5) {
        return _spotOrderbook.apply(this, arguments);
      }
      return spotOrderbook;
    }() /* Retrieves a trader's spot orders */
  }, {
    key: "traderSpotOrders",
    value: function () {
      var _traderSpotOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/spot/orders/".concat(params.marketId, "/").concat(params.subaccountId);
              _context8.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context8.abrupt("return", _context8.sent);
            case 4:
            case "end":
              return _context8.stop();
          }
        }, _callee8, this);
      }));
      function traderSpotOrders(_x6) {
        return _traderSpotOrders.apply(this, arguments);
      }
      return traderSpotOrders;
    }() /* Retrieves spot orders corresponding to specified order hashes for a given subaccountID and marketID */
  }, {
    key: "spotOrdersByHashes",
    value: function () {
      var _spotOrdersByHashes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee9$(_context9) {
          while (1) switch (_context9.prev = _context9.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.orderHashes) !== "undefined") {
                options.params.order_hashes = params.orderHashes;
              }
              endpoint = "injective/exchange/v1beta1/spot/orders_by_hashes/".concat(params.marketId, "/").concat(params.subaccountId);
              _context9.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context9.abrupt("return", _context9.sent);
            case 6:
            case "end":
              return _context9.stop();
          }
        }, _callee9, this);
      }));
      function spotOrdersByHashes(_x7) {
        return _spotOrdersByHashes.apply(this, arguments);
      }
      return spotOrdersByHashes;
    }() /* Retrieves subaccount's orders */
  }, {
    key: "subaccountOrders",
    value: function () {
      var _subaccountOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee10$(_context10) {
          while (1) switch (_context10.prev = _context10.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.marketId) !== "undefined") {
                options.params.market_id = params.marketId;
              }
              endpoint = "injective/exchange/v1beta1/orders/".concat(params.subaccountId);
              _context10.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context10.abrupt("return", _context10.sent);
            case 6:
            case "end":
              return _context10.stop();
          }
        }, _callee10, this);
      }));
      function subaccountOrders(_x8) {
        return _subaccountOrders.apply(this, arguments);
      }
      return subaccountOrders;
    }() /* Retrieves a trader's transient spot orders */
  }, {
    key: "traderSpotTransientOrders",
    value: function () {
      var _traderSpotTransientOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee11$(_context11) {
          while (1) switch (_context11.prev = _context11.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/spot/transient_orders/".concat(params.marketId, "/").concat(params.subaccountId);
              _context11.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context11.abrupt("return", _context11.sent);
            case 4:
            case "end":
              return _context11.stop();
          }
        }, _callee11, this);
      }));
      function traderSpotTransientOrders(_x9) {
        return _traderSpotTransientOrders.apply(this, arguments);
      }
      return traderSpotTransientOrders;
    }() /* Retrieves a spot market's mid-price */
  }, {
    key: "spotMidPriceAndTOB",
    value: function () {
      var _spotMidPriceAndTOB = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee12$(_context12) {
          while (1) switch (_context12.prev = _context12.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/spot/mid_price_and_tob/".concat(params.marketId);
              _context12.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context12.abrupt("return", _context12.sent);
            case 4:
            case "end":
              return _context12.stop();
          }
        }, _callee12, this);
      }));
      function spotMidPriceAndTOB(_x10) {
        return _spotMidPriceAndTOB.apply(this, arguments);
      }
      return spotMidPriceAndTOB;
    }() /* Retrieves a derivative market's mid-price */
  }, {
    key: "derivativeMidPriceAndTOB",
    value: function () {
      var _derivativeMidPriceAndTOB = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee13$(_context13) {
          while (1) switch (_context13.prev = _context13.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/mid_price_and_tob/".concat(params.marketId);
              _context13.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context13.abrupt("return", _context13.sent);
            case 4:
            case "end":
              return _context13.stop();
          }
        }, _callee13, this);
      }));
      function derivativeMidPriceAndTOB(_x11) {
        return _derivativeMidPriceAndTOB.apply(this, arguments);
      }
      return derivativeMidPriceAndTOB;
    }() /* Retrieves a derivative market's orderbook by marketID */
  }, {
    key: "derivativeOrderbook",
    value: function () {
      var _derivativeOrderbook = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee14$(_context14) {
          while (1) switch (_context14.prev = _context14.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.limit) !== "undefined") {
                options.params.limit = params.limit;
              }
              endpoint = "injective/exchange/v1beta1/derivative/orderbook/".concat(params.marketId);
              _context14.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context14.abrupt("return", _context14.sent);
            case 6:
            case "end":
              return _context14.stop();
          }
        }, _callee14, this);
      }));
      function derivativeOrderbook(_x12) {
        return _derivativeOrderbook.apply(this, arguments);
      }
      return derivativeOrderbook;
    }() /* Retrieves a trader's derivative orders */
  }, {
    key: "traderDerivativeOrders",
    value: function () {
      var _traderDerivativeOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee15$(_context15) {
          while (1) switch (_context15.prev = _context15.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/orders/".concat(params.marketId, "/").concat(params.subaccountId);
              _context15.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context15.abrupt("return", _context15.sent);
            case 4:
            case "end":
              return _context15.stop();
          }
        }, _callee15, this);
      }));
      function traderDerivativeOrders(_x13) {
        return _traderDerivativeOrders.apply(this, arguments);
      }
      return traderDerivativeOrders;
    }() /* Retrieves a trader's derivative orders */
  }, {
    key: "derivativeOrdersByHashes",
    value: function () {
      var _derivativeOrdersByHashes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee16$(_context16) {
          while (1) switch (_context16.prev = _context16.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.orderHashes) !== "undefined") {
                options.params.order_hashes = params.orderHashes;
              }
              endpoint = "injective/exchange/v1beta1/derivative/orders_by_hashes/".concat(params.marketId, "/").concat(params.subaccountId);
              _context16.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context16.abrupt("return", _context16.sent);
            case 6:
            case "end":
              return _context16.stop();
          }
        }, _callee16, this);
      }));
      function derivativeOrdersByHashes(_x14) {
        return _derivativeOrdersByHashes.apply(this, arguments);
      }
      return derivativeOrdersByHashes;
    }() /* Retrieves a trader's transient derivative orders */
  }, {
    key: "traderDerivativeTransientOrders",
    value: function () {
      var _traderDerivativeTransientOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee17(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee17$(_context17) {
          while (1) switch (_context17.prev = _context17.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/transient_orders/".concat(params.marketId, "/").concat(params.subaccountId);
              _context17.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context17.abrupt("return", _context17.sent);
            case 4:
            case "end":
              return _context17.stop();
          }
        }, _callee17, this);
      }));
      function traderDerivativeTransientOrders(_x15) {
        return _traderDerivativeTransientOrders.apply(this, arguments);
      }
      return traderDerivativeTransientOrders;
    }() /* Retrieves a list of derivative markets. */
  }, {
    key: "derivativeMarkets",
    value: function () {
      var _derivativeMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee18(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee18$(_context18) {
          while (1) switch (_context18.prev = _context18.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
                options.params.status = params.status;
              }
              endpoint = "injective/exchange/v1beta1/derivative/markets";
              _context18.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context18.abrupt("return", _context18.sent);
            case 6:
            case "end":
              return _context18.stop();
          }
        }, _callee18, this);
      }));
      function derivativeMarkets(_x16) {
        return _derivativeMarkets.apply(this, arguments);
      }
      return derivativeMarkets;
    }() /* Retrieves a derivative market by ticker */
  }, {
    key: "derivativeMarket",
    value: function () {
      var _derivativeMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee19(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee19$(_context19) {
          while (1) switch (_context19.prev = _context19.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/markets/".concat(params.marketId);
              _context19.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context19.abrupt("return", _context19.sent);
            case 4:
            case "end":
              return _context19.stop();
          }
        }, _callee19, this);
      }));
      function derivativeMarket(_x17) {
        return _derivativeMarket.apply(this, arguments);
      }
      return derivativeMarket;
    }() /* Retrieves a derivative market's corresponding address for fees that contribute to the market's insurance fund */
  }, {
    key: "derivativeMarketAddress",
    value: function () {
      var _derivativeMarketAddress = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee20$(_context20) {
          while (1) switch (_context20.prev = _context20.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/market_address/".concat(params.marketId);
              _context20.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context20.abrupt("return", _context20.sent);
            case 4:
            case "end":
              return _context20.stop();
          }
        }, _callee20, this);
      }));
      function derivativeMarketAddress(_x18) {
        return _derivativeMarketAddress.apply(this, arguments);
      }
      return derivativeMarketAddress;
    }() /* Retrieves a subaccount's trade nonce */
  }, {
    key: "subaccountTradeNonce",
    value: function () {
      var _subaccountTradeNonce = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee21(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee21$(_context21) {
          while (1) switch (_context21.prev = _context21.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/exchange/".concat(params.subaccountId);
              _context21.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context21.abrupt("return", _context21.sent);
            case 4:
            case "end":
              return _context21.stop();
          }
        }, _callee21, this);
      }));
      function subaccountTradeNonce(_x19) {
        return _subaccountTradeNonce.apply(this, arguments);
      }
      return subaccountTradeNonce;
    }() /* Retrieves the entire exchange module's state */
  }, {
    key: "exchangeModuleState",
    value: function () {
      var _exchangeModuleState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee22() {
        var _params,
          endpoint,
          _args22 = arguments;
        return _regenerator["default"].wrap(function _callee22$(_context22) {
          while (1) switch (_context22.prev = _context22.next) {
            case 0:
              _params = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
              endpoint = "injective/exchange/v1beta1/module_state";
              _context22.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context22.abrupt("return", _context22.sent);
            case 5:
            case "end":
              return _context22.stop();
          }
        }, _callee22, this);
      }));
      function exchangeModuleState() {
        return _exchangeModuleState.apply(this, arguments);
      }
      return exchangeModuleState;
    }() /* Retrieves the entire exchange module's positions */
  }, {
    key: "positions",
    value: function () {
      var _positions = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee23() {
        var _params,
          endpoint,
          _args23 = arguments;
        return _regenerator["default"].wrap(function _callee23$(_context23) {
          while (1) switch (_context23.prev = _context23.next) {
            case 0:
              _params = _args23.length > 0 && _args23[0] !== undefined ? _args23[0] : {};
              endpoint = "injective/exchange/v1beta1/positions";
              _context23.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context23.abrupt("return", _context23.sent);
            case 5:
            case "end":
              return _context23.stop();
          }
        }, _callee23, this);
      }));
      function positions() {
        return _positions.apply(this, arguments);
      }
      return positions;
    }() /* Retrieves subaccount's positions */
  }, {
    key: "subaccountPositions",
    value: function () {
      var _subaccountPositions = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee24(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee24$(_context24) {
          while (1) switch (_context24.prev = _context24.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/positions/".concat(params.subaccountId);
              _context24.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context24.abrupt("return", _context24.sent);
            case 4:
            case "end":
              return _context24.stop();
          }
        }, _callee24, this);
      }));
      function subaccountPositions(_x20) {
        return _subaccountPositions.apply(this, arguments);
      }
      return subaccountPositions;
    }() /* Retrieves subaccount's position in market */
  }, {
    key: "subaccountPositionInMarket",
    value: function () {
      var _subaccountPositionInMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee25(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee25$(_context25) {
          while (1) switch (_context25.prev = _context25.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/positions/".concat(params.subaccountId, "/").concat(params.marketId);
              _context25.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context25.abrupt("return", _context25.sent);
            case 4:
            case "end":
              return _context25.stop();
          }
        }, _callee25, this);
      }));
      function subaccountPositionInMarket(_x21) {
        return _subaccountPositionInMarket.apply(this, arguments);
      }
      return subaccountPositionInMarket;
    }() /* Retrieves subaccount's position in market */
  }, {
    key: "subaccountEffectivePositionInMarket",
    value: function () {
      var _subaccountEffectivePositionInMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee26(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee26$(_context26) {
          while (1) switch (_context26.prev = _context26.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/effective_positions/".concat(params.subaccountId, "/").concat(params.marketId);
              _context26.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context26.abrupt("return", _context26.sent);
            case 4:
            case "end":
              return _context26.stop();
          }
        }, _callee26, this);
      }));
      function subaccountEffectivePositionInMarket(_x22) {
        return _subaccountEffectivePositionInMarket.apply(this, arguments);
      }
      return subaccountEffectivePositionInMarket;
    }() /* Retrieves perpetual market info */
  }, {
    key: "perpetualMarketInfo",
    value: function () {
      var _perpetualMarketInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee27(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee27$(_context27) {
          while (1) switch (_context27.prev = _context27.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/perpetual_market_info/".concat(params.marketId);
              _context27.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context27.abrupt("return", _context27.sent);
            case 4:
            case "end":
              return _context27.stop();
          }
        }, _callee27, this);
      }));
      function perpetualMarketInfo(_x23) {
        return _perpetualMarketInfo.apply(this, arguments);
      }
      return perpetualMarketInfo;
    }() /* Retrieves expiry market info */
  }, {
    key: "expiryFuturesMarketInfo",
    value: function () {
      var _expiryFuturesMarketInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee28(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee28$(_context28) {
          while (1) switch (_context28.prev = _context28.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/expiry_market_info/".concat(params.marketId);
              _context28.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context28.abrupt("return", _context28.sent);
            case 4:
            case "end":
              return _context28.stop();
          }
        }, _callee28, this);
      }));
      function expiryFuturesMarketInfo(_x24) {
        return _expiryFuturesMarketInfo.apply(this, arguments);
      }
      return expiryFuturesMarketInfo;
    }() /* Retrieves perpetual market funding */
  }, {
    key: "perpetualMarketFunding",
    value: function () {
      var _perpetualMarketFunding = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee29(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee29$(_context29) {
          while (1) switch (_context29.prev = _context29.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/perpetual_market_funding/".concat(params.marketId);
              _context29.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context29.abrupt("return", _context29.sent);
            case 4:
            case "end":
              return _context29.stop();
          }
        }, _callee29, this);
      }));
      function perpetualMarketFunding(_x25) {
        return _perpetualMarketFunding.apply(this, arguments);
      }
      return perpetualMarketFunding;
    }() /* Retrieves subaccount's order metadata */
  }, {
    key: "subaccountOrderMetadata",
    value: function () {
      var _subaccountOrderMetadata = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee30(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee30$(_context30) {
          while (1) switch (_context30.prev = _context30.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/order_metadata/".concat(params.subaccountId);
              _context30.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context30.abrupt("return", _context30.sent);
            case 4:
            case "end":
              return _context30.stop();
          }
        }, _callee30, this);
      }));
      function subaccountOrderMetadata(_x26) {
        return _subaccountOrderMetadata.apply(this, arguments);
      }
      return subaccountOrderMetadata;
    }() /* Retrieves the account and total trade rewards points */
  }, {
    key: "tradeRewardPoints",
    value: function () {
      var _tradeRewardPoints = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee31(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee31$(_context31) {
          while (1) switch (_context31.prev = _context31.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.accounts) !== "undefined") {
                options.params.accounts = params.accounts;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.pendingPoolTimestamp) !== "undefined") {
                options.params.pending_pool_timestamp = params.pendingPoolTimestamp;
              }
              endpoint = "injective/exchange/v1beta1/trade_reward_points";
              _context31.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context31.abrupt("return", _context31.sent);
            case 7:
            case "end":
              return _context31.stop();
          }
        }, _callee31, this);
      }));
      function tradeRewardPoints(_x27) {
        return _tradeRewardPoints.apply(this, arguments);
      }
      return tradeRewardPoints;
    }() /* Retrieves the pending account and total trade rewards points */
  }, {
    key: "pendingTradeRewardPoints",
    value: function () {
      var _pendingTradeRewardPoints = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee32(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee32$(_context32) {
          while (1) switch (_context32.prev = _context32.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.accounts) !== "undefined") {
                options.params.accounts = params.accounts;
              }
              if (typeof (params === null || params === void 0 ? void 0 : params.pendingPoolTimestamp) !== "undefined") {
                options.params.pending_pool_timestamp = params.pendingPoolTimestamp;
              }
              endpoint = "injective/exchange/v1beta1/pending_trade_reward_points";
              _context32.next = 6;
              return this.req.get(endpoint, options);
            case 6:
              return _context32.abrupt("return", _context32.sent);
            case 7:
            case "end":
              return _context32.stop();
          }
        }, _callee32, this);
      }));
      function pendingTradeRewardPoints(_x28) {
        return _pendingTradeRewardPoints.apply(this, arguments);
      }
      return pendingTradeRewardPoints;
    }() /* Retrieves the trade reward campaign */
  }, {
    key: "tradeRewardCampaign",
    value: function () {
      var _tradeRewardCampaign = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee33() {
        var _params,
          endpoint,
          _args33 = arguments;
        return _regenerator["default"].wrap(function _callee33$(_context33) {
          while (1) switch (_context33.prev = _context33.next) {
            case 0:
              _params = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : {};
              endpoint = "injective/exchange/v1beta1/trade_reward_campaign";
              _context33.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context33.abrupt("return", _context33.sent);
            case 5:
            case "end":
              return _context33.stop();
          }
        }, _callee33, this);
      }));
      function tradeRewardCampaign() {
        return _tradeRewardCampaign.apply(this, arguments);
      }
      return tradeRewardCampaign;
    }() /* Retrieves the account's fee discount info */
  }, {
    key: "feeDiscountAccountInfo",
    value: function () {
      var _feeDiscountAccountInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee34(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee34$(_context34) {
          while (1) switch (_context34.prev = _context34.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/fee_discount_account_info/".concat(params.account);
              _context34.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context34.abrupt("return", _context34.sent);
            case 4:
            case "end":
              return _context34.stop();
          }
        }, _callee34, this);
      }));
      function feeDiscountAccountInfo(_x29) {
        return _feeDiscountAccountInfo.apply(this, arguments);
      }
      return feeDiscountAccountInfo;
    }() /* Retrieves the fee discount schedule */
  }, {
    key: "feeDiscountSchedule",
    value: function () {
      var _feeDiscountSchedule = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee35() {
        var _params,
          endpoint,
          _args35 = arguments;
        return _regenerator["default"].wrap(function _callee35$(_context35) {
          while (1) switch (_context35.prev = _context35.next) {
            case 0:
              _params = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
              endpoint = "injective/exchange/v1beta1/fee_discount_schedule";
              _context35.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context35.abrupt("return", _context35.sent);
            case 5:
            case "end":
              return _context35.stop();
          }
        }, _callee35, this);
      }));
      function feeDiscountSchedule() {
        return _feeDiscountSchedule.apply(this, arguments);
      }
      return feeDiscountSchedule;
    }() /* Retrieves mismatches between available vs. total balance */
  }, {
    key: "balanceMismatches",
    value: function () {
      var _balanceMismatches = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee36(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee36$(_context36) {
          while (1) switch (_context36.prev = _context36.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/balance_mismatches/".concat(params.dustFactor);
              _context36.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context36.abrupt("return", _context36.sent);
            case 4:
            case "end":
              return _context36.stop();
          }
        }, _callee36, this);
      }));
      function balanceMismatches(_x30) {
        return _balanceMismatches.apply(this, arguments);
      }
      return balanceMismatches;
    }() /* Retrieves available and total balances with balance holds */
  }, {
    key: "balanceWithBalanceHolds",
    value: function () {
      var _balanceWithBalanceHolds = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee37() {
        var _params,
          endpoint,
          _args37 = arguments;
        return _regenerator["default"].wrap(function _callee37$(_context37) {
          while (1) switch (_context37.prev = _context37.next) {
            case 0:
              _params = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
              endpoint = "injective/exchange/v1beta1/balances_with_balance_holds";
              _context37.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context37.abrupt("return", _context37.sent);
            case 5:
            case "end":
              return _context37.stop();
          }
        }, _callee37, this);
      }));
      function balanceWithBalanceHolds() {
        return _balanceWithBalanceHolds.apply(this, arguments);
      }
      return balanceWithBalanceHolds;
    }() /* Retrieves fee discount tier stats */
  }, {
    key: "feeDiscountTierStatistics",
    value: function () {
      var _feeDiscountTierStatistics = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee38() {
        var _params,
          endpoint,
          _args38 = arguments;
        return _regenerator["default"].wrap(function _callee38$(_context38) {
          while (1) switch (_context38.prev = _context38.next) {
            case 0:
              _params = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
              endpoint = "injective/exchange/v1beta1/fee_discount_tier_stats";
              _context38.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context38.abrupt("return", _context38.sent);
            case 5:
            case "end":
              return _context38.stop();
          }
        }, _callee38, this);
      }));
      function feeDiscountTierStatistics() {
        return _feeDiscountTierStatistics.apply(this, arguments);
      }
      return feeDiscountTierStatistics;
    }() /* Retrieves market making pool info */
  }, {
    key: "ninjaVaultInfos",
    value: function () {
      var _ninjaVaultInfos = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee39() {
        var _params,
          endpoint,
          _args39 = arguments;
        return _regenerator["default"].wrap(function _callee39$(_context39) {
          while (1) switch (_context39.prev = _context39.next) {
            case 0:
              _params = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
              endpoint = "injective/exchange/v1beta1/ninja_vault_infos";
              _context39.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context39.abrupt("return", _context39.sent);
            case 5:
            case "end":
              return _context39.stop();
          }
        }, _callee39, this);
      }));
      function ninjaVaultInfos() {
        return _ninjaVaultInfos.apply(this, arguments);
      }
      return ninjaVaultInfos;
    }() /* QueryMarketIDFromVault returns the market ID for a given vault subaccount ID */
  }, {
    key: "queryMarketIDFromVault",
    value: function () {
      var _queryMarketIDFromVault = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee40(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee40$(_context40) {
          while (1) switch (_context40.prev = _context40.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/vault_market_id/".concat(params.vaultSubaccountId);
              _context40.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context40.abrupt("return", _context40.sent);
            case 4:
            case "end":
              return _context40.stop();
          }
        }, _callee40, this);
      }));
      function queryMarketIDFromVault(_x31) {
        return _queryMarketIDFromVault.apply(this, arguments);
      }
      return queryMarketIDFromVault;
    }() /* Retrieves historical trade records for a given market ID */
  }, {
    key: "historicalTradeRecords",
    value: function () {
      var _historicalTradeRecords = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee41(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee41$(_context41) {
          while (1) switch (_context41.prev = _context41.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.marketId) !== "undefined") {
                options.params.market_id = params.marketId;
              }
              endpoint = "injective/exchange/v1beta1/historical_trade_records";
              _context41.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context41.abrupt("return", _context41.sent);
            case 6:
            case "end":
              return _context41.stop();
          }
        }, _callee41, this);
      }));
      function historicalTradeRecords(_x32) {
        return _historicalTradeRecords.apply(this, arguments);
      }
      return historicalTradeRecords;
    }() /* Retrieves if the account is opted out of rewards */
  }, {
    key: "isOptedOutOfRewards",
    value: function () {
      var _isOptedOutOfRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee42(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee42$(_context42) {
          while (1) switch (_context42.prev = _context42.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/is_opted_out_of_rewards/".concat(params.account);
              _context42.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context42.abrupt("return", _context42.sent);
            case 4:
            case "end":
              return _context42.stop();
          }
        }, _callee42, this);
      }));
      function isOptedOutOfRewards(_x33) {
        return _isOptedOutOfRewards.apply(this, arguments);
      }
      return isOptedOutOfRewards;
    }() /* Retrieves all accounts opted out of rewards */
  }, {
    key: "optedOutOfRewardsAccounts",
    value: function () {
      var _optedOutOfRewardsAccounts = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee43() {
        var _params,
          endpoint,
          _args43 = arguments;
        return _regenerator["default"].wrap(function _callee43$(_context43) {
          while (1) switch (_context43.prev = _context43.next) {
            case 0:
              _params = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
              endpoint = "injective/exchange/v1beta1/opted_out_of_rewards_accounts";
              _context43.next = 4;
              return this.req.get(endpoint);
            case 4:
              return _context43.abrupt("return", _context43.sent);
            case 5:
            case "end":
              return _context43.stop();
          }
        }, _callee43, this);
      }));
      function optedOutOfRewardsAccounts() {
        return _optedOutOfRewardsAccounts.apply(this, arguments);
      }
      return optedOutOfRewardsAccounts;
    }() /* MarketVolatility computes the volatility for spot and derivative markets trading history. */
  }, {
    key: "marketVolatility",
    value: function () {
      var _marketVolatility = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee44(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee44$(_context44) {
          while (1) switch (_context44.prev = _context44.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.tradeHistoryOptions) !== "undefined") {
                options.params.trade_history_options = params.tradeHistoryOptions;
              }
              endpoint = "injective/exchange/v1beta1/market_volatility/".concat(params.marketId);
              _context44.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context44.abrupt("return", _context44.sent);
            case 6:
            case "end":
              return _context44.stop();
          }
        }, _callee44, this);
      }));
      function marketVolatility(_x34) {
        return _marketVolatility.apply(this, arguments);
      }
      return marketVolatility;
    }() /* Retrieves a spot market's orderbook by marketID */
  }, {
    key: "binaryOptionsMarkets",
    value: function () {
      var _binaryOptionsMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee45(params) {
        var options, endpoint;
        return _regenerator["default"].wrap(function _callee45$(_context45) {
          while (1) switch (_context45.prev = _context45.next) {
            case 0:
              options = {
                params: {}
              };
              if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
                options.params.status = params.status;
              }
              endpoint = "injective/exchange/v1beta1/binary_options/markets";
              _context45.next = 5;
              return this.req.get(endpoint, options);
            case 5:
              return _context45.abrupt("return", _context45.sent);
            case 6:
            case "end":
              return _context45.stop();
          }
        }, _callee45, this);
      }));
      function binaryOptionsMarkets(_x35) {
        return _binaryOptionsMarkets.apply(this, arguments);
      }
      return binaryOptionsMarkets;
    }() /* Retrieves a trader's derivative conditional orders */
  }, {
    key: "traderDerivativeConditionalOrders",
    value: function () {
      var _traderDerivativeConditionalOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee46(params) {
        var endpoint;
        return _regenerator["default"].wrap(function _callee46$(_context46) {
          while (1) switch (_context46.prev = _context46.next) {
            case 0:
              endpoint = "injective/exchange/v1beta1/derivative/orders/conditional/".concat(params.marketId, "/").concat(params.subaccountId);
              _context46.next = 3;
              return this.req.get(endpoint);
            case 3:
              return _context46.abrupt("return", _context46.sent);
            case 4:
            case "end":
              return _context46.stop();
          }
        }, _callee46, this);
      }));
      function traderDerivativeConditionalOrders(_x36) {
        return _traderDerivativeConditionalOrders.apply(this, arguments);
      }
      return traderDerivativeConditionalOrders;
    }()
  }]);
  return LCDQueryClient;
}();
exports.LCDQueryClient = LCDQueryClient;