@shogun-sdk/money-legos
Version:
Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.
68 lines • 3.25 kB
JavaScript
export const BASE_URL = 'https://api.hyperliquid.xyz';
export const ENDPOINTS = {
INFO: '/info',
EXCHANGE: '/exchange',
};
export const HL_BRIDGE2_CA = '0x2Df1c51E09aECF9cacB7bc98cB1742757f163dF7';
export var InfoType;
(function (InfoType) {
InfoType["ALL_MIDS"] = "allMids";
InfoType["META"] = "meta";
InfoType["OPEN_ORDERS"] = "openOrders";
InfoType["FRONTEND_OPEN_ORDERS"] = "frontendOpenOrders";
InfoType["USER_FILLS"] = "userFills";
InfoType["USER_FILLS_BY_TIME"] = "userFillsByTime";
InfoType["USER_RATE_LIMIT"] = "userRateLimit";
InfoType["ORDER_STATUS"] = "orderStatus";
InfoType["L2_BOOK"] = "l2Book";
InfoType["CANDLE_SNAPSHOT"] = "candleSnapshot";
InfoType["PERPS_META_AND_ASSET_CTXS"] = "metaAndAssetCtxs";
InfoType["PERPS_CLEARINGHOUSE_STATE"] = "clearinghouseState";
InfoType["USER_FUNDING"] = "userFunding";
InfoType["USER_NON_FUNDING_LEDGER_UPDATES"] = "userNonFundingLedgerUpdates";
InfoType["FUNDING_HISTORY"] = "fundingHistory";
InfoType["SPOT_META"] = "spotMeta";
InfoType["SPOT_CLEARINGHOUSE_STATE"] = "spotClearinghouseState";
InfoType["SPOT_META_AND_ASSET_CTXS"] = "spotMetaAndAssetCtxs";
InfoType["PREDICTED_FUNDINGS"] = "predictedFundings";
InfoType["SPOT_DEPLOY_STATE"] = "spotDeployState";
InfoType["TOKEN_DETAILS"] = "tokenDetails";
InfoType["MAX_BUILDER_FEE"] = "maxBuilderFee";
InfoType["HISTORICAL_ORDERS"] = "historicalOrders";
InfoType["USER_TWAP_SLICE_FILLS"] = "userTwapSliceFills";
InfoType["SUB_ACCOUNTS"] = "subAccounts";
InfoType["VAULT_DETAILS"] = "vaultDetails";
InfoType["USER_VAULT_EQUITIES"] = "userVaultEquities";
InfoType["USER_ROLE"] = "userRole";
InfoType["PORTFOLIO"] = "portfolio";
InfoType["DELEGATIONS"] = "delegations";
InfoType["DELEGATOR_SUMMARY"] = "delegatorSummary";
InfoType["PERPS_AT_OPEN_INTEREST_CAP"] = "perpsAtOpenInterestCap";
InfoType["DELEGATOR_HISTORY"] = "delegatorHistory";
InfoType["DELEGATOR_REWARDS"] = "delegatorRewards";
})(InfoType || (InfoType = {}));
export var ExchangeType;
(function (ExchangeType) {
ExchangeType["ORDER"] = "order";
ExchangeType["CANCEL"] = "cancel";
ExchangeType["CANCEL_BY_CLOID"] = "cancelByCloid";
ExchangeType["SCHEDULE_CANCEL"] = "scheduleCancel";
ExchangeType["MODIFY"] = "modify";
ExchangeType["BATCH_MODIFY"] = "batchModify";
ExchangeType["UPDATE_LEVERAGE"] = "updateLeverage";
ExchangeType["UPDATE_ISOLATED_MARGIN"] = "updateIsolatedMargin";
ExchangeType["USD_SEND"] = "usdSend";
ExchangeType["SPOT_SEND"] = "spotSend";
ExchangeType["WITHDRAW"] = "withdraw3";
ExchangeType["SPOT_USER"] = "spotUser";
ExchangeType["VAULT_TRANSFER"] = "vaultTransfer";
ExchangeType["SET_REFERRER"] = "setReferrer";
ExchangeType["USD_CLASS_TRANSFER"] = "usdClassTransfer";
ExchangeType["TWAP_ORDER"] = "twapOrder";
ExchangeType["TWAP_CANCEL"] = "twapCancel";
ExchangeType["APPROVE_AGENT"] = "approveAgent";
ExchangeType["APPROVE_BUILDER_FEE"] = "approveBuilderFee";
ExchangeType["EVM_USER_MODIFY"] = "evmUserModify";
})(ExchangeType || (ExchangeType = {}));
export const SDK_CODE = 'PLACEHOLDER';
//# sourceMappingURL=constants.js.map