@pear-protocol/exchanges-sdk
Advanced tools
@@ -88,3 +88,3 @@ import { ExchangeAccount } from './exchange-account'; | ||
| if (exchange === "hyperliquid") { | ||
| const { accounts } = await this.sdk.info.accounts.list(); | ||
| const { accounts } = await this.sdk.core.accounts.list(); | ||
| const account = accounts.find((a) => a.id === tradeAccountId); | ||
@@ -91,0 +91,0 @@ if (!account) { |
| import { BaseOrchestrator } from '../base'; | ||
| import { BinanceAssetTracker } from './asset-tracker'; | ||
| import { DEFAULT_LISTEN_KEY_REFRESH_MS, DEFAULT_ACCOUNT_POLL_MS } from './const'; | ||
| import { fetchAccountStatus, fetchAllPositionRisk, fetchMultiAssetsMargin, createListenKey, keepAliveListenKey } from './rest'; | ||
| import { BinanceStateHandler } from './state-handler'; | ||
| import './types'; | ||
| import { BinanceWs } from './ws'; | ||
| import { BinanceStateHandler } from './state-handler'; | ||
| import { BinanceAssetTracker } from './asset-tracker'; | ||
@@ -9,0 +9,0 @@ class BinanceOrchestrator extends BaseOrchestrator { |
| import { BaseOrchestrator } from '../base'; | ||
| import { BybitAssetTracker } from './asset-tracker'; | ||
| import { fetchWalletBalance, fetchPositions, fetchAccountInfo } from './rest'; | ||
| import { BybitStateHandler } from './state-handler'; | ||
| import './types'; | ||
| import { BybitWs } from './ws'; | ||
| import { BybitStateHandler } from './state-handler'; | ||
| import { BybitAssetTracker } from './asset-tracker'; | ||
@@ -8,0 +8,0 @@ class BybitOrchestrator extends BaseOrchestrator { |
@@ -0,3 +1,3 @@ | ||
| import { WebSocket } from 'partysocket'; | ||
| import { S as StateUpdate } from '../../../types-Caz2X4h0.js'; | ||
| import { WebSocket } from 'partysocket'; | ||
| import { ActiveAssetDataEvent } from './types.js'; | ||
@@ -4,0 +4,0 @@ import '@pear-protocol/types'; |
| import { createWs, waitForOpen, sendWs } from '../../../utils/ws'; | ||
| import { BaseOrchestrator } from '../base'; | ||
| import { HyperliquidAssetTracker } from './asset-tracker'; | ||
| import { LOCKED_TRACKED_COINS } from './const'; | ||
| import { HyperliquidStateHandler } from './state-handler'; | ||
| import { HyperliquidAssetTracker } from './asset-tracker'; | ||
@@ -7,0 +7,0 @@ const HL_WS_URL = "wss://api.hyperliquid.xyz/ws"; |
@@ -11,3 +11,3 @@ class Credentials { | ||
| async fetch(tradeAccountId) { | ||
| const response = await this.sdk.info.accounts.credentials(tradeAccountId); | ||
| const response = await this.sdk.core.accounts.credentials(tradeAccountId); | ||
| const credentials = response.credentials; | ||
@@ -14,0 +14,0 @@ this.cache.set(tradeAccountId, { credentials, connector: response.connector }); |
+2
-2
| { | ||
| "name": "@pear-protocol/exchanges-sdk", | ||
| "version": "0.0.15", | ||
| "version": "0.0.16", | ||
| "description": "Pear Protocol Exchanges SDK", | ||
@@ -28,3 +28,3 @@ "private": false, | ||
| "dependencies": { | ||
| "@pear-protocol/core-sdk": "0.0.14", | ||
| "@pear-protocol/core-sdk": "0.0.15", | ||
| "@pear-protocol/types": "0.0.13", | ||
@@ -31,0 +31,0 @@ "@pear-protocol/utils": "0.0.13", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
+ Added
- Removed