@xoxno/sdk-js 1.0.164 → 1.0.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -0
- package/dist/cjs/sdk/stellar/lending-read-types.d.ts +2 -1
- package/dist/cjs/sdk/stellar/lending-read.d.ts +5 -1
- package/dist/cjs/sdk/stellar/lending.d.ts +1 -0
- package/dist/cjs/sdk/swagger.d.ts +250 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/sdk/stellar/index.cjs +1 -1
- package/dist/sdk/stellar/index.esm.js +1 -1
- package/dist/sdk/stellar/lending-read-types.d.ts +2 -1
- package/dist/sdk/stellar/lending-read.d.ts +5 -1
- package/dist/sdk/stellar/lending.d.ts +1 -0
- package/dist/sdk/swagger.d.ts +250 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -752,6 +752,114 @@ sdk.stellar.tokens(...); // TokenDataDocHydrated[]
|
|
|
752
752
|
// GET /stellar/aggregator/quote
|
|
753
753
|
sdk.stellar.aggregator.quote(...); // SoroswapQuoteResponseDto
|
|
754
754
|
|
|
755
|
+
// GET /stellar-lending/assets
|
|
756
|
+
sdk.stellarLending.assets(...); // StellarAssetListItemDto[]
|
|
757
|
+
|
|
758
|
+
// GET /stellar-lending/hubs
|
|
759
|
+
sdk.stellarLending.hubs(...); // StellarHubListItemDto[]
|
|
760
|
+
|
|
761
|
+
// GET /stellar-lending/spokes
|
|
762
|
+
sdk.stellarLending.spokes(...); // StellarSpokeListItemDto[]
|
|
763
|
+
|
|
764
|
+
// GET /stellar-lending/reserves
|
|
765
|
+
sdk.stellarLending.reserves(...); // StellarReserveListItemDto[]
|
|
766
|
+
|
|
767
|
+
// GET /stellar-lending/reserves/:spokeId/:hubId/:asset
|
|
768
|
+
sdk.stellarLending.reserves.spokeId("...").hubId("...").asset("...")(...); // ReserveDto
|
|
769
|
+
|
|
770
|
+
// GET /stellar-lending/reserves/:spokeId/:hubId/:asset/holders
|
|
771
|
+
sdk.stellarLending.reserves.spokeId("...").hubId("...").asset("...").holders(...); // TopHoldersDto
|
|
772
|
+
|
|
773
|
+
// GET /stellar-lending/hubs/:hubId/holders
|
|
774
|
+
sdk.stellarLending.hubs.hubId("...").holders(...); // TopHoldersDto
|
|
775
|
+
|
|
776
|
+
// GET /stellar-lending/spokes/:spokeId/holders
|
|
777
|
+
sdk.stellarLending.spokes.spokeId("...").holders(...); // TopHoldersDto
|
|
778
|
+
|
|
779
|
+
// GET /stellar-lending/assets/:asset
|
|
780
|
+
sdk.stellarLending.assets.asset("...")(...); // AssetDto
|
|
781
|
+
|
|
782
|
+
// GET /stellar-lending/assets/:asset/page
|
|
783
|
+
sdk.stellarLending.assets.asset("...").page(...); // AssetPageDto
|
|
784
|
+
|
|
785
|
+
// GET /stellar-lending/assets/:asset/markets
|
|
786
|
+
sdk.stellarLending.assets.asset("...").markets(...); // AssetMarketDto[]
|
|
787
|
+
|
|
788
|
+
// GET /stellar-lending/hubs/:hubId
|
|
789
|
+
sdk.stellarLending.hubs.hubId("...")(...); // HubDto
|
|
790
|
+
|
|
791
|
+
// GET /stellar-lending/spokes/:spokeId
|
|
792
|
+
sdk.stellarLending.spokes.spokeId("...")(...); // SpokeDto
|
|
793
|
+
|
|
794
|
+
// GET /stellar-lending/users/:owner/positions
|
|
795
|
+
sdk.stellarLending.users.owner("...").positions(...); // AccountPositionsDto
|
|
796
|
+
|
|
797
|
+
// GET /stellar-lending/users/:owner/activity
|
|
798
|
+
sdk.stellarLending.users.owner("...").activity(...); // StellarUserActivityItemDto[]
|
|
799
|
+
|
|
800
|
+
// GET /stellar-lending/accounts/:accountId/positions
|
|
801
|
+
sdk.stellarLending.accounts.accountId("...").positions(...); // AccountPositionsDto
|
|
802
|
+
|
|
803
|
+
// GET /stellar-lending/governance/proposals
|
|
804
|
+
sdk.stellarLending.governance.proposals(...); // GovernanceProposalsPageDto
|
|
805
|
+
|
|
806
|
+
// GET /stellar-lending/assets/:asset/graph
|
|
807
|
+
sdk.stellarLending.assets.asset("...").graph(...); // MarketGraphDto
|
|
808
|
+
|
|
809
|
+
// GET /stellar-lending/hubs/:hubId/graph
|
|
810
|
+
sdk.stellarLending.hubs.hubId("...").graph(...); // MarketGraphDto
|
|
811
|
+
|
|
812
|
+
// GET /stellar-lending/spokes/:spokeId/graph
|
|
813
|
+
sdk.stellarLending.spokes.spokeId("...").graph(...); // SpokeGraphDto
|
|
814
|
+
|
|
815
|
+
// GET /stellar-lending/reserves/:spokeId/:hubId/:asset/graph
|
|
816
|
+
sdk.stellarLending.reserves.spokeId("...").hubId("...").asset("...").graph(...); // MarketGraphDto
|
|
817
|
+
|
|
818
|
+
// GET /stellar-lending/stats/history
|
|
819
|
+
sdk.stellarLending.stats.history(...); // StellarStatsHistoryDto
|
|
820
|
+
|
|
821
|
+
// GET /stellar-lending/pnl
|
|
822
|
+
sdk.stellarLending.pnl(...); // StellarPositionsPnlDto
|
|
823
|
+
|
|
824
|
+
// GET /stellar-lending/positions
|
|
825
|
+
sdk.stellarLending.positions(...); // StellarPositionsRankDto
|
|
826
|
+
|
|
827
|
+
// GET /stellar-lending/users/:accountId/history
|
|
828
|
+
sdk.stellarLending.users.accountId("...").history(...); // UserHistoryDto
|
|
829
|
+
|
|
830
|
+
// GET /stellar-lending/pnl/scope
|
|
831
|
+
sdk.stellarLending.pnl.scope(...); // PnlByScopeDto
|
|
832
|
+
|
|
833
|
+
// GET /stellar-lending/revenue
|
|
834
|
+
sdk.stellarLending.revenue(...); // RevenueSeriesDto
|
|
835
|
+
|
|
836
|
+
// GET /stellar-lending/revenue/fees
|
|
837
|
+
sdk.stellarLending.revenue.fees(...); // FeeRevenueSeriesDto
|
|
838
|
+
|
|
839
|
+
// GET /stellar-lending/participants
|
|
840
|
+
sdk.stellarLending.participants(...); // ParticipantCountsDto
|
|
841
|
+
|
|
842
|
+
// GET /stellar-lending/liquidations
|
|
843
|
+
sdk.stellarLending.liquidations(...); // LiquidationsSeriesDto
|
|
844
|
+
|
|
845
|
+
// GET /stellar-lending/liquidations/leaderboard
|
|
846
|
+
sdk.stellarLending.liquidations.leaderboard(...); // LiquidationsLeaderboardDto
|
|
847
|
+
|
|
848
|
+
// GET /stellar-lending/volume
|
|
849
|
+
sdk.stellarLending.volume(...); // VolumeSeriesDto
|
|
850
|
+
|
|
851
|
+
// GET /stellar-lending/active-users
|
|
852
|
+
sdk.stellarLending.activeUsers(...); // ActiveUsersSeriesDto
|
|
853
|
+
|
|
854
|
+
// GET /stellar-lending/distribution
|
|
855
|
+
sdk.stellarLending.distribution(...); // HolderDistributionDto
|
|
856
|
+
|
|
857
|
+
// GET /stellar-lending/rate-spread
|
|
858
|
+
sdk.stellarLending.rateSpread(...); // RateSpreadSeriesDto
|
|
859
|
+
|
|
860
|
+
// GET /stellar-lending/defillama
|
|
861
|
+
sdk.stellarLending.defillama(...); // DefiLlamaDimensionsDto
|
|
862
|
+
|
|
755
863
|
// GET /tokens
|
|
756
864
|
sdk.tokens(...); // TokenDataDocHydrated[]
|
|
757
865
|
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Numeric `*Wad`/`*Ray`/`*ScaledRay` fields cross the wire as decimal strings
|
|
11
11
|
* (1e18 / 1e27 fixed-point); `*Short` fields are already human-readable numbers.
|
|
12
12
|
*/
|
|
13
|
-
import type { StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
|
|
13
|
+
import type { StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
|
|
14
|
+
export type { StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, };
|
|
14
15
|
/** Side selector for an asset's markets table. */
|
|
15
16
|
export type StellarLendingMarketSide = 'deposit' | 'borrow';
|
|
16
17
|
/** Side selector for a reserve's top-holders list. */
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* delegated to `XOXNOClient.fetchWithTimeout`, the same wrapper the generated
|
|
12
12
|
* SDK uses.
|
|
13
13
|
*/
|
|
14
|
-
import type { StellarAssetListItem, StellarHubListItem, StellarReserveListItem, StellarSpokeListItem, StellarUserActivityItem } from '@xoxno/types/stellar-lending';
|
|
14
|
+
import type { StellarAssetListItem, StellarAssetPage, StellarHubListItem, StellarReserveListItem, StellarSpokeListItem, StellarUserActivityItem } from '@xoxno/types/stellar-lending';
|
|
15
15
|
import type { OurRequestInit, XOXNOClient } from '../../utils/api';
|
|
16
16
|
import type { StellarAccountPositions, StellarAsset, StellarAssetMarket, StellarGovernanceProposalsPage, StellarHub, StellarLendingHoldersSide, StellarLendingMarketSide, StellarMarketGraph, StellarMarketGraphQuery, StellarReserve, StellarSpoke, StellarTopHolders } from './lending-read-types';
|
|
17
17
|
/** Every asset, aggregated across hubs — rows for the Deposit/Borrow tables. */
|
|
@@ -36,6 +36,10 @@ export declare const getStellarReserve: (client: XOXNOClient, spokeId: number, h
|
|
|
36
36
|
export declare const getStellarReserveHolders: (client: XOXNOClient, spokeId: number, hubId: number, asset: string, side: StellarLendingHoldersSide, init?: OurRequestInit) => Promise<StellarTopHolders>;
|
|
37
37
|
/** Asset overview: header totals + APY ranges. */
|
|
38
38
|
export declare const getStellarAsset: (client: XOXNOClient, asset: string, init?: OurRequestInit) => Promise<StellarAsset>;
|
|
39
|
+
/** Asset detail page: overview + deposit/borrow markets + spoke APY series. */
|
|
40
|
+
export declare const getStellarAssetPage: (client: XOXNOClient, asset: string, query: StellarMarketGraphQuery & {
|
|
41
|
+
owner?: string;
|
|
42
|
+
}, init?: OurRequestInit) => Promise<StellarAssetPage>;
|
|
39
43
|
/** Asset markets (per spoke/hub) for one side. */
|
|
40
44
|
export declare const getStellarAssetMarkets: (client: XOXNOClient, asset: string, side: StellarLendingMarketSide, init?: OurRequestInit) => Promise<StellarAssetMarket[]>;
|
|
41
45
|
/** Hub overview: totals + per-asset opportunities. */
|
|
@@ -181,6 +181,7 @@ export interface StellarRepayDebtWithCollateralArgs {
|
|
|
181
181
|
export interface StellarMigrateFromBlendArgs {
|
|
182
182
|
accountId: number | string;
|
|
183
183
|
spokeId: number;
|
|
184
|
+
hubId: number;
|
|
184
185
|
blendPool: string;
|
|
185
186
|
collateralTokens: ReadonlyArray<string>;
|
|
186
187
|
supplyTokens: ReadonlyArray<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent } from '@xoxno/types';
|
|
1
|
+
import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, StellarAssetListItemDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetPageDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarPositionsRankDto, UserHistoryDto, PnlByScopeDto, RevenueSeriesDto, FeeRevenueSeriesDto, ParticipantCountsDto, LiquidationsSeriesDto, LiquidationsLeaderboardDto, VolumeSeriesDto, ActiveUsersSeriesDto, HolderDistributionDto, RateSpreadSeriesDto, DefiLlamaDimensionsDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent } from '@xoxno/types';
|
|
2
2
|
import type { ActivityChain, TokenCategory, LendingPositionOrderByColumn, KustoOrderDirection, OfferType, StakingStatus, UserStatsOrderByColumn } from '@xoxno/types/enums';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
readonly "/liquid/xoxno/rate": {
|
|
@@ -898,6 +898,255 @@ export declare const endpoints: {
|
|
|
898
898
|
readonly securityMode: "requiredAny";
|
|
899
899
|
};
|
|
900
900
|
};
|
|
901
|
+
readonly "/stellar-lending/assets": {
|
|
902
|
+
readonly input: {};
|
|
903
|
+
readonly output: StellarAssetListItemDto[];
|
|
904
|
+
};
|
|
905
|
+
readonly "/stellar-lending/hubs": {
|
|
906
|
+
readonly input: {};
|
|
907
|
+
readonly output: StellarHubListItemDto[];
|
|
908
|
+
};
|
|
909
|
+
readonly "/stellar-lending/spokes": {
|
|
910
|
+
readonly input: {};
|
|
911
|
+
readonly output: StellarSpokeListItemDto[];
|
|
912
|
+
};
|
|
913
|
+
readonly "/stellar-lending/reserves": {
|
|
914
|
+
readonly input: {
|
|
915
|
+
hubId?: number;
|
|
916
|
+
spokeId?: number;
|
|
917
|
+
asset?: string;
|
|
918
|
+
};
|
|
919
|
+
readonly output: StellarReserveListItemDto[];
|
|
920
|
+
};
|
|
921
|
+
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset": {
|
|
922
|
+
readonly input: {};
|
|
923
|
+
readonly output: ReserveDto;
|
|
924
|
+
};
|
|
925
|
+
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/holders": {
|
|
926
|
+
readonly input: {
|
|
927
|
+
side: string;
|
|
928
|
+
};
|
|
929
|
+
readonly output: TopHoldersDto;
|
|
930
|
+
};
|
|
931
|
+
readonly "/stellar-lending/hubs/:hubId/holders": {
|
|
932
|
+
readonly input: {
|
|
933
|
+
side: string;
|
|
934
|
+
};
|
|
935
|
+
readonly output: TopHoldersDto;
|
|
936
|
+
};
|
|
937
|
+
readonly "/stellar-lending/spokes/:spokeId/holders": {
|
|
938
|
+
readonly input: {
|
|
939
|
+
side: string;
|
|
940
|
+
};
|
|
941
|
+
readonly output: TopHoldersDto;
|
|
942
|
+
};
|
|
943
|
+
readonly "/stellar-lending/assets/:asset": {
|
|
944
|
+
readonly input: {};
|
|
945
|
+
readonly output: AssetDto;
|
|
946
|
+
};
|
|
947
|
+
readonly "/stellar-lending/assets/:asset/page": {
|
|
948
|
+
readonly input: {
|
|
949
|
+
from: string;
|
|
950
|
+
to: string;
|
|
951
|
+
bin: string;
|
|
952
|
+
owner?: string;
|
|
953
|
+
};
|
|
954
|
+
readonly output: AssetPageDto;
|
|
955
|
+
};
|
|
956
|
+
readonly "/stellar-lending/assets/:asset/markets": {
|
|
957
|
+
readonly input: {
|
|
958
|
+
side: string;
|
|
959
|
+
};
|
|
960
|
+
readonly output: AssetMarketDto[];
|
|
961
|
+
};
|
|
962
|
+
readonly "/stellar-lending/hubs/:hubId": {
|
|
963
|
+
readonly input: {};
|
|
964
|
+
readonly output: HubDto;
|
|
965
|
+
};
|
|
966
|
+
readonly "/stellar-lending/spokes/:spokeId": {
|
|
967
|
+
readonly input: {};
|
|
968
|
+
readonly output: SpokeDto;
|
|
969
|
+
};
|
|
970
|
+
readonly "/stellar-lending/users/:owner/positions": {
|
|
971
|
+
readonly input: {};
|
|
972
|
+
readonly output: AccountPositionsDto;
|
|
973
|
+
};
|
|
974
|
+
readonly "/stellar-lending/users/:owner/activity": {
|
|
975
|
+
readonly input: {
|
|
976
|
+
skip?: number;
|
|
977
|
+
top?: number;
|
|
978
|
+
};
|
|
979
|
+
readonly output: StellarUserActivityItemDto[];
|
|
980
|
+
};
|
|
981
|
+
readonly "/stellar-lending/accounts/:accountId/positions": {
|
|
982
|
+
readonly input: {};
|
|
983
|
+
readonly output: AccountPositionsDto;
|
|
984
|
+
};
|
|
985
|
+
readonly "/stellar-lending/governance/proposals": {
|
|
986
|
+
readonly input: {
|
|
987
|
+
top?: number;
|
|
988
|
+
continuationToken?: string;
|
|
989
|
+
};
|
|
990
|
+
readonly output: GovernanceProposalsPageDto;
|
|
991
|
+
};
|
|
992
|
+
readonly "/stellar-lending/assets/:asset/graph": {
|
|
993
|
+
readonly input: {
|
|
994
|
+
from: string;
|
|
995
|
+
to: string;
|
|
996
|
+
bin: string;
|
|
997
|
+
};
|
|
998
|
+
readonly output: MarketGraphDto;
|
|
999
|
+
};
|
|
1000
|
+
readonly "/stellar-lending/hubs/:hubId/graph": {
|
|
1001
|
+
readonly input: {
|
|
1002
|
+
from: string;
|
|
1003
|
+
to: string;
|
|
1004
|
+
bin: string;
|
|
1005
|
+
};
|
|
1006
|
+
readonly output: MarketGraphDto;
|
|
1007
|
+
};
|
|
1008
|
+
readonly "/stellar-lending/spokes/:spokeId/graph": {
|
|
1009
|
+
readonly input: {
|
|
1010
|
+
from: string;
|
|
1011
|
+
to: string;
|
|
1012
|
+
bin: string;
|
|
1013
|
+
};
|
|
1014
|
+
readonly output: SpokeGraphDto;
|
|
1015
|
+
};
|
|
1016
|
+
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/graph": {
|
|
1017
|
+
readonly input: {
|
|
1018
|
+
from: string;
|
|
1019
|
+
to: string;
|
|
1020
|
+
bin: string;
|
|
1021
|
+
};
|
|
1022
|
+
readonly output: MarketGraphDto;
|
|
1023
|
+
};
|
|
1024
|
+
readonly "/stellar-lending/stats/history": {
|
|
1025
|
+
readonly input: {
|
|
1026
|
+
from: string;
|
|
1027
|
+
to: string;
|
|
1028
|
+
bin: string;
|
|
1029
|
+
};
|
|
1030
|
+
readonly output: StellarStatsHistoryDto;
|
|
1031
|
+
};
|
|
1032
|
+
readonly "/stellar-lending/pnl": {
|
|
1033
|
+
readonly input: {
|
|
1034
|
+
accountId: string;
|
|
1035
|
+
};
|
|
1036
|
+
readonly output: StellarPositionsPnlDto;
|
|
1037
|
+
};
|
|
1038
|
+
readonly "/stellar-lending/positions": {
|
|
1039
|
+
readonly input: {
|
|
1040
|
+
token?: string;
|
|
1041
|
+
orderBy?: string;
|
|
1042
|
+
orderDirection?: string;
|
|
1043
|
+
skip?: number;
|
|
1044
|
+
top?: number;
|
|
1045
|
+
};
|
|
1046
|
+
readonly output: StellarPositionsRankDto;
|
|
1047
|
+
};
|
|
1048
|
+
readonly "/stellar-lending/users/:accountId/history": {
|
|
1049
|
+
readonly input: {
|
|
1050
|
+
from: string;
|
|
1051
|
+
to: string;
|
|
1052
|
+
bin: string;
|
|
1053
|
+
};
|
|
1054
|
+
readonly output: UserHistoryDto;
|
|
1055
|
+
};
|
|
1056
|
+
readonly "/stellar-lending/pnl/scope": {
|
|
1057
|
+
readonly input: {
|
|
1058
|
+
scope: string;
|
|
1059
|
+
};
|
|
1060
|
+
readonly output: PnlByScopeDto;
|
|
1061
|
+
};
|
|
1062
|
+
readonly "/stellar-lending/revenue": {
|
|
1063
|
+
readonly input: {
|
|
1064
|
+
from: string;
|
|
1065
|
+
to: string;
|
|
1066
|
+
bin: string;
|
|
1067
|
+
scope?: string;
|
|
1068
|
+
};
|
|
1069
|
+
readonly output: RevenueSeriesDto;
|
|
1070
|
+
};
|
|
1071
|
+
readonly "/stellar-lending/revenue/fees": {
|
|
1072
|
+
readonly input: {
|
|
1073
|
+
from: string;
|
|
1074
|
+
to: string;
|
|
1075
|
+
bin: string;
|
|
1076
|
+
hubId?: number;
|
|
1077
|
+
};
|
|
1078
|
+
readonly output: FeeRevenueSeriesDto;
|
|
1079
|
+
};
|
|
1080
|
+
readonly "/stellar-lending/participants": {
|
|
1081
|
+
readonly input: {
|
|
1082
|
+
hubId?: number;
|
|
1083
|
+
spokeId?: number;
|
|
1084
|
+
token?: string;
|
|
1085
|
+
};
|
|
1086
|
+
readonly output: ParticipantCountsDto;
|
|
1087
|
+
};
|
|
1088
|
+
readonly "/stellar-lending/liquidations": {
|
|
1089
|
+
readonly input: {
|
|
1090
|
+
from: string;
|
|
1091
|
+
to: string;
|
|
1092
|
+
bin: string;
|
|
1093
|
+
hubId?: number;
|
|
1094
|
+
};
|
|
1095
|
+
readonly output: LiquidationsSeriesDto;
|
|
1096
|
+
};
|
|
1097
|
+
readonly "/stellar-lending/liquidations/leaderboard": {
|
|
1098
|
+
readonly input: {
|
|
1099
|
+
top?: number;
|
|
1100
|
+
hubId?: number;
|
|
1101
|
+
token?: string;
|
|
1102
|
+
};
|
|
1103
|
+
readonly output: LiquidationsLeaderboardDto;
|
|
1104
|
+
};
|
|
1105
|
+
readonly "/stellar-lending/volume": {
|
|
1106
|
+
readonly input: {
|
|
1107
|
+
from: string;
|
|
1108
|
+
to: string;
|
|
1109
|
+
bin: string;
|
|
1110
|
+
hubId?: number;
|
|
1111
|
+
token?: string;
|
|
1112
|
+
};
|
|
1113
|
+
readonly output: VolumeSeriesDto;
|
|
1114
|
+
};
|
|
1115
|
+
readonly "/stellar-lending/active-users": {
|
|
1116
|
+
readonly input: {
|
|
1117
|
+
from: string;
|
|
1118
|
+
to: string;
|
|
1119
|
+
bin: string;
|
|
1120
|
+
};
|
|
1121
|
+
readonly output: ActiveUsersSeriesDto;
|
|
1122
|
+
};
|
|
1123
|
+
readonly "/stellar-lending/distribution": {
|
|
1124
|
+
readonly input: {
|
|
1125
|
+
hubId?: number;
|
|
1126
|
+
spokeId?: number;
|
|
1127
|
+
token?: string;
|
|
1128
|
+
side?: string;
|
|
1129
|
+
};
|
|
1130
|
+
readonly output: HolderDistributionDto;
|
|
1131
|
+
};
|
|
1132
|
+
readonly "/stellar-lending/rate-spread": {
|
|
1133
|
+
readonly input: {
|
|
1134
|
+
from: string;
|
|
1135
|
+
to: string;
|
|
1136
|
+
bin: string;
|
|
1137
|
+
hubId?: number;
|
|
1138
|
+
token?: string;
|
|
1139
|
+
};
|
|
1140
|
+
readonly output: RateSpreadSeriesDto;
|
|
1141
|
+
};
|
|
1142
|
+
readonly "/stellar-lending/defillama": {
|
|
1143
|
+
readonly input: {
|
|
1144
|
+
from: string;
|
|
1145
|
+
to: string;
|
|
1146
|
+
bin: string;
|
|
1147
|
+
};
|
|
1148
|
+
readonly output: DefiLlamaDimensionsDto;
|
|
1149
|
+
};
|
|
901
1150
|
readonly "/user/notifications": {
|
|
902
1151
|
readonly input: {
|
|
903
1152
|
skip?: number;
|