diff --git a/v4-client-js/__native__/__ios__/v4-native-client.js b/v4-client-js/__native__/__ios__/v4-native-client.js index 2decc790..1dc4190c 100644 --- a/v4-client-js/__native__/__ios__/v4-native-client.js +++ b/v4-client-js/__native__/__ios__/v4-native-client.js @@ -203994,8 +203994,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SHORT_BLOCK_FORWARD = exports.SHORT_BLOCK_WINDOW = exports.MAX_MEMO_CHARACTERS = exports.DEFAULT_API_TIMEOUT = exports.PnlTickInterval = exports.TimePeriod = exports.PositionStatus = exports.TickerType = exports.OrderStatus = exports.OrderExecution = exports.OrderTimeInForce = exports.OrderSide = exports.OrderType = exports.MarketStatisticDay = exports.MEGAVAULT_MODULE_ADDRESS = exports.DELAYMSG_MODULE_ADDRESS = exports.GOV_MODULE_ADDRESS = exports.TYPE_URL_MSG_WITHDRAW_DELEGATOR_REWARD = exports.TYPE_URL_MSG_UNDELEGATE = exports.TYPE_URL_MSG_DELEGATE = exports.TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT = exports.TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT = exports.TYPE_URL_MSG_REGISTER_AFFILIATE = exports.TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT = exports.TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT = exports.TYPE_URL_MSG_CREATE_TRANSFER = exports.TYPE_URL_MSG_CREATE_ORACLE_MARKET = exports.TYPE_URL_MSG_CREATE_PERPETUAL = exports.TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS = exports.TYPE_URL_MSG_DELAY_MESSAGE = exports.TYPE_URL_MSG_UPDATE_CLOB_PAIR = exports.TYPE_URL_MSG_CREATE_CLOB_PAIR = exports.TYPE_URL_BATCH_CANCEL = exports.TYPE_URL_MSG_CANCEL_ORDER = exports.TYPE_URL_MSG_PLACE_ORDER = exports.TYPE_URL_MSG_SUBMIT_PROPOSAL = exports.TYPE_URL_MSG_SEND = exports.SelectedGasDenom = exports.NETWORK_ID_MAINNET = exports.NETWORK_ID_TESTNET = exports.NetworkId = exports.ValidatorApiHost = exports.FaucetApiHost = exports.IndexerWSHost = exports.IndexerApiHost = exports.MAINNET_CHAIN_ID = exports.LOCAL_CHAIN_ID = exports.TESTNET_CHAIN_ID = exports.STAGING_CHAIN_ID = exports.DEV_CHAIN_ID = void 0; -exports.Network = exports.ValidatorConfig = exports.IndexerConfig = exports.PAGE_REQUEST = void 0; +exports.SHORT_BLOCK_WINDOW = exports.MAX_MEMO_CHARACTERS = exports.DEFAULT_API_TIMEOUT = exports.TradingRewardAggregationPeriod = exports.PnlTickInterval = exports.TimePeriod = exports.PositionStatus = exports.TickerType = exports.OrderStatus = exports.OrderExecution = exports.OrderTimeInForce = exports.OrderSide = exports.OrderType = exports.MarketStatisticDay = exports.MEGAVAULT_MODULE_ADDRESS = exports.DELAYMSG_MODULE_ADDRESS = exports.GOV_MODULE_ADDRESS = exports.TYPE_URL_MSG_WITHDRAW_DELEGATOR_REWARD = exports.TYPE_URL_MSG_UNDELEGATE = exports.TYPE_URL_MSG_DELEGATE = exports.TYPE_URL_MSG_WITHDRAW_FROM_MEGAVAULT = exports.TYPE_URL_MSG_DEPOSIT_TO_MEGAVAULT = exports.TYPE_URL_MSG_REGISTER_AFFILIATE = exports.TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT = exports.TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT = exports.TYPE_URL_MSG_CREATE_TRANSFER = exports.TYPE_URL_MSG_CREATE_ORACLE_MARKET = exports.TYPE_URL_MSG_CREATE_PERPETUAL = exports.TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS = exports.TYPE_URL_MSG_DELAY_MESSAGE = exports.TYPE_URL_MSG_UPDATE_CLOB_PAIR = exports.TYPE_URL_MSG_CREATE_CLOB_PAIR = exports.TYPE_URL_BATCH_CANCEL = exports.TYPE_URL_MSG_CANCEL_ORDER = exports.TYPE_URL_MSG_PLACE_ORDER = exports.TYPE_URL_MSG_SUBMIT_PROPOSAL = exports.TYPE_URL_MSG_SEND = exports.SelectedGasDenom = exports.NETWORK_ID_MAINNET = exports.NETWORK_ID_TESTNET = exports.NetworkId = exports.ValidatorApiHost = exports.FaucetApiHost = exports.IndexerWSHost = exports.IndexerApiHost = exports.MAINNET_CHAIN_ID = exports.LOCAL_CHAIN_ID = exports.TESTNET_CHAIN_ID = exports.STAGING_CHAIN_ID = exports.DEV_CHAIN_ID = void 0; +exports.Network = exports.ValidatorConfig = exports.IndexerConfig = exports.PAGE_REQUEST = exports.SHORT_BLOCK_FORWARD = void 0; const long_1 = __importDefault(__webpack_require__(/*! long */ "./node_modules/long/src/long.js")); __exportStar(__webpack_require__(/*! ../lib/constants */ "./src/lib/constants.ts"), exports); /** @@ -204169,6 +204169,12 @@ var PnlTickInterval; PnlTickInterval["HOUR"] = "hour"; PnlTickInterval["day"] = "day"; })(PnlTickInterval = exports.PnlTickInterval || (exports.PnlTickInterval = {})); +var TradingRewardAggregationPeriod; +(function (TradingRewardAggregationPeriod) { + TradingRewardAggregationPeriod["DAILY"] = "DAILY"; + TradingRewardAggregationPeriod["WEEKLY"] = "WEEKLY"; + TradingRewardAggregationPeriod["MONTHLY"] = "MONTHLY"; +})(TradingRewardAggregationPeriod = exports.TradingRewardAggregationPeriod || (exports.TradingRewardAggregationPeriod = {})); // ------------ API Defaults ------------ exports.DEFAULT_API_TIMEOUT = 3000; exports.MAX_MEMO_CHARACTERS = 256; @@ -204256,7 +204262,7 @@ class Network { } } exports.Network = Network; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudHMvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs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rest */ "./src/clients/ * @description REST endpoints for data related to a particular address. */ class AccountClient extends rest_1.default { + // ------ Subaccount ------ // async getSubaccounts(address, limit) { const uri = `/v4/addresses/${address}`; return this.get(uri, { limit }); @@ -208178,6 +208185,11 @@ class AccountClient extends rest_1.default { const uri = `/v4/addresses/${address}/subaccountNumber/${subaccountNumber}`; return this.get(uri); } + async getParentSubaccount(address, parentSubaccountNumber) { + const uri = `/v4/addresses/${address}/subaccountNumber/${parentSubaccountNumber}`; + return this.get(uri); + } + // ------ Positions ------ // async getSubaccountPerpetualPositions(address, subaccountNumber, status, limit, createdBeforeOrAtHeight, createdBeforeOrAt) { const uri = '/v4/perpetualPositions'; return this.get(uri, { @@ -208200,6 +208212,18 @@ class AccountClient extends rest_1.default { createdBeforeOrAt, }); } + // ------ Transfers ------ // + async getTransfersBetween(sourceAddress, sourceSubaccountNumber, recipientAddress, recipientSubaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt) { + const uri = '/v4/transfers/between'; + return this.get(uri, { + sourceAddress, + sourceSubaccountNumber, + recipientAddress, + recipientSubaccountNumber, + createdBeforeOrAtHeight, + createdBeforeOrAt, + }); + } async getSubaccountTransfers(address, subaccountNumber, limit, createdBeforeOrAtHeight, createdBeforeOrAt, page) { const uri = '/v4/transfers'; return this.get(uri, { @@ -208222,6 +208246,7 @@ class AccountClient extends rest_1.default { page, }); } + // ------ Orders ------ // async getSubaccountOrders(address, subaccountNumber, ticker, tickerType = constants_1.TickerType.PERPETUAL, side, status, type, limit, goodTilBlockBeforeOrAt, goodTilBlockTimeBeforeOrAt, returnLatestOrders) { const uri = '/v4/orders'; return this.get(uri, { @@ -208238,10 +208263,26 @@ class AccountClient extends rest_1.default { returnLatestOrders, }); } + async getParentSubaccountNumberOrders(address, parentSubaccountNumber, ticker, side, status, type, limit, goodTilBlockBeforeOrAt, goodTilBlockTimeBeforeOrAt, returnLatestOrders) { + const uri = '/v4/orders/parentSubaccountNumber'; + return this.get(uri, { + address, + parentSubaccountNumber, + ticker, + side, + status, + type, + limit, + goodTilBlockBeforeOrAt, + goodTilBlockTimeBeforeOrAt, + returnLatestOrders, + }); + } async getOrder(orderId) { const uri = `/v4/orders/${orderId}`; return this.get(uri); } + // ------ Fills ------ // async getSubaccountFills(address, subaccountNumber, ticker, tickerType = constants_1.TickerType.PERPETUAL, limit, createdBeforeOrAtHeight, createdBeforeOrAt, page) { const uri = '/v4/fills'; return this.get(uri, { @@ -208268,6 +208309,7 @@ class AccountClient extends rest_1.default { page, }); } + // ------ Pnl ------ // async getSubaccountHistoricalPNLs(address, subaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt, createdOnOrAfterHeight, createdOnOrAfter, limit, page) { const uri = '/v4/historical-pnl'; return this.get(uri, { @@ -208281,20 +208323,27 @@ class AccountClient extends rest_1.default { page, }); } - async getTransfersBetween(sourceAddress, sourceSubaccountNumber, recipientAddress, recipientSubaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt) { - const uri = '/v4/transfers/between'; + async getParentSubaccountNumberHistoricalPNLs(address, parentSubaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt, createdOnOrAfterHeight, createdOnOrAfter, limit, page) { + const uri = '/v4//historical-pnl/parentSubaccount'; return this.get(uri, { - sourceAddress, - sourceSubaccountNumber, - recipientAddress, - recipientSubaccountNumber, + address, + parentSubaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt, + createdOnOrAfterHeight, + createdOnOrAfter, + limit, + page, }); } + // ------ Rewards ------ // + async getHistoricalTradingRewardsAggregations(address, period, limit, startingBeforeOrAt, startingBeforeOrAtHeight) { + const uri = `/v4/historicalTradingRewardAggregations/${address}`; + return this.get(uri, { period, limit, startingBeforeOrAt, startingBeforeOrAtHeight }); + } } exports["default"] = AccountClient; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3N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O0lBQ3hGLENBQUM7Q0FDRjtBQWhTRCxnQ0FnU0MifQ== /***/ }), diff --git a/v4-client-js/package-lock.json b/v4-client-js/package-lock.json index 17b9e2ce..7c446c36 100644 --- a/v4-client-js/package-lock.json +++ b/v4-client-js/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.15", + "version": "1.3.16", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/v4-client-js/package.json b/v4-client-js/package.json index efacf1e4..16b73aac 100644 --- a/v4-client-js/package.json +++ b/v4-client-js/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.15", + "version": "1.3.16", "description": "General client library for the new dYdX system (v4 decentralized)", "main": "build/src/index.js", "scripts": { diff --git a/v4-client-js/src/clients/constants.ts b/v4-client-js/src/clients/constants.ts index 694ba123..297e85a6 100644 --- a/v4-client-js/src/clients/constants.ts +++ b/v4-client-js/src/clients/constants.ts @@ -86,7 +86,8 @@ export const TYPE_URL_MSG_UPDATE_CLOB_PAIR = '/dydxprotocol.clob.MsgUpdateClobPa export const TYPE_URL_MSG_DELAY_MESSAGE = '/dydxprotocol.delaymsg.MsgDelayMessage'; // x/listing -export const TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS = '/dydxprotocol.listing.MsgCreateMarketPermissionless'; +export const TYPE_URL_MSG_CREATE_MARKET_PERMISSIONLESS = + '/dydxprotocol.listing.MsgCreateMarketPermissionless'; // x/perpetuals export const TYPE_URL_MSG_CREATE_PERPETUAL = '/dydxprotocol.perpetuals.MsgCreatePerpetual'; @@ -195,6 +196,12 @@ export enum PnlTickInterval { day = 'day', } +export enum TradingRewardAggregationPeriod { + DAILY = 'DAILY', + WEEKLY = 'WEEKLY', + MONTHLY = 'MONTHLY', +} + // ------------ API Defaults ------------ export const DEFAULT_API_TIMEOUT: number = 3_000; diff --git a/v4-client-js/src/clients/modules/account.ts b/v4-client-js/src/clients/modules/account.ts index 19bdd422..e9521ba9 100644 --- a/v4-client-js/src/clients/modules/account.ts +++ b/v4-client-js/src/clients/modules/account.ts @@ -1,4 +1,11 @@ -import { OrderSide, OrderStatus, OrderType, PositionStatus, TickerType } from '../constants'; +import { + OrderSide, + OrderStatus, + OrderType, + PositionStatus, + TickerType, + TradingRewardAggregationPeriod, +} from '../constants'; import { Data } from '../types'; import RestClient from './rest'; @@ -6,6 +13,8 @@ import RestClient from './rest'; * @description REST endpoints for data related to a particular address. */ export default class AccountClient extends RestClient { + // ------ Subaccount ------ // + async getSubaccounts(address: string, limit?: number): Promise { const uri = `/v4/addresses/${address}`; return this.get(uri, { limit }); @@ -16,6 +25,13 @@ export default class AccountClient extends RestClient { return this.get(uri); } + async getParentSubaccount(address: string, parentSubaccountNumber: number): Promise { + const uri = `/v4/addresses/${address}/subaccountNumber/${parentSubaccountNumber}`; + return this.get(uri); + } + + // ------ Positions ------ // + async getSubaccountPerpetualPositions( address: string, subaccountNumber: number, @@ -54,6 +70,27 @@ export default class AccountClient extends RestClient { }); } + // ------ Transfers ------ // + + async getTransfersBetween( + sourceAddress: string, + sourceSubaccountNumber: string, + recipientAddress: string, + recipientSubaccountNumber: string, + createdBeforeOrAtHeight?: number | null, + createdBeforeOrAt?: string | null, + ): Promise { + const uri = '/v4/transfers/between'; + return this.get(uri, { + sourceAddress, + sourceSubaccountNumber, + recipientAddress, + recipientSubaccountNumber, + createdBeforeOrAtHeight, + createdBeforeOrAt, + }); + } + async getSubaccountTransfers( address: string, subaccountNumber: number, @@ -92,6 +129,8 @@ export default class AccountClient extends RestClient { }); } + // ------ Orders ------ // + async getSubaccountOrders( address: string, subaccountNumber: number, @@ -121,11 +160,40 @@ export default class AccountClient extends RestClient { }); } + async getParentSubaccountNumberOrders( + address: string, + parentSubaccountNumber: number, + ticker?: string | null, + side?: OrderSide | null, + status?: OrderStatus | null, + type?: OrderType | null, + limit?: number | null, + goodTilBlockBeforeOrAt?: number | null, + goodTilBlockTimeBeforeOrAt?: string | null, + returnLatestOrders?: boolean | null, + ): Promise { + const uri = '/v4/orders/parentSubaccountNumber'; + return this.get(uri, { + address, + parentSubaccountNumber, + ticker, + side, + status, + type, + limit, + goodTilBlockBeforeOrAt, + goodTilBlockTimeBeforeOrAt, + returnLatestOrders, + }); + } + async getOrder(orderId: string): Promise { const uri = `/v4/orders/${orderId}`; return this.get(uri); } + // ------ Fills ------ // + async getSubaccountFills( address: string, subaccountNumber: number, @@ -172,6 +240,8 @@ export default class AccountClient extends RestClient { }); } + // ------ Pnl ------ // + async getSubaccountHistoricalPNLs( address: string, subaccountNumber: number, @@ -195,22 +265,39 @@ export default class AccountClient extends RestClient { }); } - async getTransfersBetween( - sourceAddress: string, - sourceSubaccountNumber: string, - recipientAddress: string, - recipientSubaccountNumber: string, + async getParentSubaccountNumberHistoricalPNLs( + address: string, + parentSubaccountNumber: number, createdBeforeOrAtHeight?: number | null, - createdBeforeOrAt?: string | null - ): Promise { - const uri = '/v4/transfers/between'; + createdBeforeOrAt?: string | null, + createdOnOrAfterHeight?: number | null, + createdOnOrAfter?: string | null, + limit?: number | null, + page?: number | null, + ): Promise { + const uri = '/v4//historical-pnl/parentSubaccount'; return this.get(uri, { - sourceAddress, - sourceSubaccountNumber, - recipientAddress, - recipientSubaccountNumber, + address, + parentSubaccountNumber, createdBeforeOrAtHeight, createdBeforeOrAt, + createdOnOrAfterHeight, + createdOnOrAfter, + limit, + page, }); } + + // ------ Rewards ------ // + + async getHistoricalTradingRewardsAggregations( + address: string, + period: TradingRewardAggregationPeriod, + limit?: number, + startingBeforeOrAt?: string, + startingBeforeOrAtHeight?: string, + ): Promise { + const uri = `/v4/historicalTradingRewardAggregations/${address}`; + return this.get(uri, { period, limit, startingBeforeOrAt, startingBeforeOrAtHeight }); + } }