🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@pear-protocol/exchanges-sdk

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pear-protocol/exchanges-sdk - npm Package Compare versions

Comparing version
0.0.15
to
0.0.16
+1
-1
dist/account/account-manager.js

@@ -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 });

{
"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",