Skip to content

Latest commit

 

History

History
410 lines (306 loc) · 22.7 KB

File metadata and controls

410 lines (306 loc) · 22.7 KB

Core

Types:

from neptune_api_v2.types import (
    ErrorData,
    ErrorDataVariants,
    ErrorKind,
    ErrorResponse,
    ErrorScope,
    FieldValidationError,
    Interval,
    IntervalUnit,
    ValidationErrorData,
    ValidationFieldSource,
)

Status

Types:

from neptune_api_v2.types import StatusCheckHealthResponse

Methods:

Assets

Types:

from neptune_api_v2.types import (
    AssetClassification,
    AssetInfo,
    AssetMetadata,
    AssetPrice,
    AssetPriceHistory,
    AssetRateHistory,
    AssetSpec,
    AssetListResponse,
    AssetGetPriceHistoryResponse,
    AssetListPricesResponse,
)

Methods:

Markets

Types:

from neptune_api_v2.types import (
    GlobalMarketConfig,
    MarketRate,
    MergedMarket,
    Tvl,
    MarketGetMergedResponse,
    MarketGetMergedByAssetResponse,
    MarketGetOverviewResponse,
    MarketGetParamsResponse,
)

Methods:

Lend

Types:

from neptune_api_v2.types.markets import (
    LendMarket,
    LendMarketData,
    LendMarketState,
    LendListResponse,
    LendGetByAssetResponse,
    LendGetRateHistoryResponse,
)

Methods:

Borrow

Types:

from neptune_api_v2.types.markets import (
    BorrowMarketOverview,
    BorrowGetOverviewResponse,
    BorrowGetRateHistoryResponse,
)

Methods:

Collaterals

Types:

from neptune_api_v2.types.markets.borrow import (
    BorrowCollateralConfig,
    BorrowCollateralMarket,
    BorrowCollateralMarketData,
    BorrowCollateralState,
    CollateralListResponse,
    CollateralGetByAssetResponse,
)

Methods:

Debts

Types:

from neptune_api_v2.types.markets.borrow import (
    BorrowDebtConfig,
    BorrowDebtMarket,
    BorrowDebtMarketData,
    BorrowDebtState,
    DebtListResponse,
    DebtGetByAssetResponse,
)

Methods:

Nept

Types:

from neptune_api_v2.types import (
    NeptParams,
    NeptState,
    NeptUnlockDistributionGroup,
    StakingPoolFull,
    StakingPoolParams,
    StakingPoolState,
    NeptGetParamsResponse,
    NeptGetStakingOverviewResponse,
    NeptGetStateResponse,
)

Methods:

User

Types:

from neptune_api_v2.types import EventAction, User, UserTx, UserGetUserResponse

Methods:

Market

Types:

from neptune_api_v2.types.user import (
    UserMarket,
    UserMergedMarket,
    MarketGetMergedResponse,
    MarketGetMergedByAssetResponse,
    MarketGetPortfolioResponse,
)

Methods:

Lend

Types:

from neptune_api_v2.types.user.market import (
    UserLendAssetPool,
    UserLendMarket,
    UserLendOriginAmounts,
    UserLendReceiptAmounts,
    LendListResponse,
    LendGetByAssetResponse,
)

Methods:

Borrow

Types:

from neptune_api_v2.types.user.market import (
    UserBorrowMarket,
    UserBorrowMarketPools,
    BorrowGetCollateralAccountsByAssetResponse,
    BorrowGetCollateralTotalsResponse,
    BorrowGetDebtAccountsByAssetResponse,
    BorrowGetDebtsTotalsResponse,
    BorrowGetPortfolioResponse,
)

Methods:

Subaccount

Types:

from neptune_api_v2.types.user.market.borrow import (
    UserAccountHealth,
    UserBorrowMarketAccount,
    UserCollateralAccountPool,
    UserCollateralAssetPool,
    UserDebtAccountPool,
    UserDebtAssetPool,
    SubaccountGetSubaccountResponse,
    SubaccountGetSubaccountCollateralsResponse,
    SubaccountGetSubaccountDebtsResponse,
    SubaccountGetSubaccountHealthResponse,
)

Methods:

Nept

Types:

from neptune_api_v2.types.user import (
    UserUnlockAmounts,
    UserUnlockOverview,
    UserUnlockSchedule,
    UserUnlockScheduleLinear,
    UserUnlockScheduleLumpSum,
    NeptGetUnlocksResponse,
)

Methods:

Staking

Types:

from neptune_api_v2.types.user.nept import (
    UserStake,
    UserStakeBondingEntry,
    UserStakePool,
    UserStakeUnbonding,
    UserStakeUnbondingEntry,
    StakingGetOverviewResponse,
    StakingGetStakingPoolResponse,
    StakingGetStakingPoolsResponse,
    StakingGetUnstakingResponse,
)

Methods:

Wallet

Types:

from neptune_api_v2.types.user import (
    UserWalletPortfolio,
    WalletAsset,
    WalletAssetKnown,
    WalletAssetUnknown,
    WalletBalance,
    WalletGetBalanceByAssetResponse,
    WalletGetBalancesResponse,
)

Methods:

Analytics

Market

Types:

from neptune_api_v2.types.analytics import MarketGetCurrentStateResponse

Methods:

History

Types:

from neptune_api_v2.types.analytics.market import (
    HistoryGetLoansOriginatedResponse,
    HistoryGetLoansOriginatedByAssetResponse,
)

Methods:

Nept

Types:

from neptune_api_v2.types.analytics import NeptUnlocksDistributionResponse

Methods:

Swap

Routes

Types:

from neptune_api_v2.types.swap import (
    SwapRouteTargetSet,
    RouteListAllResponse,
    RouteListByDenomResponse,
)

Methods: