@pear-protocol/symmio-client 0.1.11 → 0.2.0
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/dist/react/index.d.mts +295 -4
- package/dist/react/index.d.ts +295 -4
- package/dist/react/index.js +475 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +460 -8
- package/dist/react/index.mjs.map +1 -1
- package/package.json +6 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Address, Hex, PublicClient, WalletClient } from 'viem';
|
|
4
4
|
import * as _pear_protocol_symm_core from '@pear-protocol/symm-core';
|
|
5
|
-
import { SymmSDK, OpenBasketPositionRequest, ClosePositionRequest, CancelOpenRequest, UpdatePositionRequest, SetTpslRequest, CancelTpslRequest, GetSymmHedgerMarketsRequest, MarketItem } from '@pear-protocol/symm-core';
|
|
5
|
+
import { SymmSDK, CloseOrderRequest, OpenBasketPositionRequest, ClosePositionRequest, CancelOpenRequest, UpdatePositionRequest, SetTpslRequest, CancelTpslRequest, GetTpslOrdersRequest, UpsertTriggerConfigRequest, GetSymmHedgerMarketsRequest, MarketItem } from '@pear-protocol/symm-core';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
7
7
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
8
8
|
import * as node_modules__pear_protocol_symm_core_dist_types from 'node_modules/@pear-protocol/symm-core/dist/types';
|
|
@@ -539,6 +539,39 @@ declare function useSymmAccounts(userAddress?: Address, options?: {
|
|
|
539
539
|
}, unknown>;
|
|
540
540
|
};
|
|
541
541
|
|
|
542
|
+
declare function useSymmAccountsApi(params: {
|
|
543
|
+
userAddress?: Address;
|
|
544
|
+
chainId?: number;
|
|
545
|
+
query?: SymmQueryConfig;
|
|
546
|
+
}): {
|
|
547
|
+
accounts: node_modules__pear_protocol_symm_core_dist_types.AccountInfo[];
|
|
548
|
+
total: number;
|
|
549
|
+
isLoading: boolean;
|
|
550
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsListResponse, Error>>;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
declare function useSymmAccountsLength(params: {
|
|
554
|
+
userAddress?: Address;
|
|
555
|
+
chainId?: number;
|
|
556
|
+
query?: SymmQueryConfig;
|
|
557
|
+
}): {
|
|
558
|
+
chains: node_modules__pear_protocol_symm_core_dist_types.ChainAccountLength[];
|
|
559
|
+
total: number;
|
|
560
|
+
isLoading: boolean;
|
|
561
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsLengthResponse, Error>>;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
declare function useSymmAccountsWithPositions(params: {
|
|
565
|
+
userAddress?: Address;
|
|
566
|
+
chainId?: number;
|
|
567
|
+
query?: SymmQueryConfig;
|
|
568
|
+
}): {
|
|
569
|
+
accounts: node_modules__pear_protocol_symm_core_dist_types.AccountWithPositions[];
|
|
570
|
+
total: number;
|
|
571
|
+
isLoading: boolean;
|
|
572
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsWithPositionsResponse, Error>>;
|
|
573
|
+
};
|
|
574
|
+
|
|
542
575
|
declare function useSymmApproval(params: {
|
|
543
576
|
owner?: Address;
|
|
544
577
|
amount: bigint;
|
|
@@ -553,6 +586,19 @@ declare function useSymmApproval(params: {
|
|
|
553
586
|
approve: _tanstack_react_query.UseMutationResult<`0x${string}`, Error, bigint, unknown>;
|
|
554
587
|
};
|
|
555
588
|
|
|
589
|
+
declare function useSymmCancelClose(): {
|
|
590
|
+
cancelClose: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_shared.ApiResponse<unknown>, Error, {
|
|
591
|
+
quoteId: string;
|
|
592
|
+
authToken?: string;
|
|
593
|
+
accountAddress?: Address;
|
|
594
|
+
overrideChainId?: number;
|
|
595
|
+
}, unknown>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
declare function useSymmCloseOrder(): {
|
|
599
|
+
closeOrder: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.CloseOrderResponse, Error, CloseOrderRequest, unknown>;
|
|
600
|
+
};
|
|
601
|
+
|
|
556
602
|
declare function useSymmDeposit(): {
|
|
557
603
|
deposit: _tanstack_react_query.UseMutationResult<`0x${string}`, Error, {
|
|
558
604
|
account: Address;
|
|
@@ -713,9 +759,9 @@ declare function useSymmTradeHistory(params: {
|
|
|
713
759
|
chainId?: number;
|
|
714
760
|
query?: SymmQueryConfig;
|
|
715
761
|
}): {
|
|
716
|
-
trades:
|
|
762
|
+
trades: _pear_protocol_symm_core.PositionsListResponse | null;
|
|
717
763
|
isLoading: boolean;
|
|
718
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<
|
|
764
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PositionsListResponse, Error>>;
|
|
719
765
|
};
|
|
720
766
|
|
|
721
767
|
declare function useSymmTpsl(): {
|
|
@@ -723,6 +769,22 @@ declare function useSymmTpsl(): {
|
|
|
723
769
|
cancelTpsl: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_shared.ApiResponse<unknown>, Error, CancelTpslRequest, unknown>;
|
|
724
770
|
};
|
|
725
771
|
|
|
772
|
+
type UseSymmTpslOrdersParams = {
|
|
773
|
+
accountAddress?: Address;
|
|
774
|
+
mainAddress?: Address;
|
|
775
|
+
positionId?: string;
|
|
776
|
+
type?: GetTpslOrdersRequest['type'];
|
|
777
|
+
status?: GetTpslOrdersRequest['status'];
|
|
778
|
+
chainId?: number;
|
|
779
|
+
query?: SymmQueryConfig;
|
|
780
|
+
};
|
|
781
|
+
declare function useSymmTpslOrders(params: UseSymmTpslOrdersParams): {
|
|
782
|
+
tpslOrders: _pear_protocol_symm_core.TpslOrder[];
|
|
783
|
+
total: number;
|
|
784
|
+
isLoading: boolean;
|
|
785
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.TpslListResponse, Error>>;
|
|
786
|
+
};
|
|
787
|
+
|
|
726
788
|
declare function useSymmTwap(params: {
|
|
727
789
|
accountAddress?: Address;
|
|
728
790
|
mainAddress?: Address;
|
|
@@ -734,6 +796,34 @@ declare function useSymmTwap(params: {
|
|
|
734
796
|
cancelTwap: _tanstack_react_query.UseMutationResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error, string, unknown>;
|
|
735
797
|
};
|
|
736
798
|
|
|
799
|
+
declare function useSymmTriggerConfig(params: {
|
|
800
|
+
orderId?: string;
|
|
801
|
+
query?: SymmQueryConfig;
|
|
802
|
+
}): {
|
|
803
|
+
triggerConfig: Record<string, unknown> | null;
|
|
804
|
+
isLoading: boolean;
|
|
805
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error>>;
|
|
806
|
+
setTriggerConfig: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, UpsertTriggerConfigRequest, unknown>;
|
|
807
|
+
clearTriggerConfig: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, void, unknown>;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
declare function useSymmTriggerOrders(params: {
|
|
811
|
+
accountAddress?: Address;
|
|
812
|
+
mainAddress?: Address;
|
|
813
|
+
chainId?: number;
|
|
814
|
+
status?: string;
|
|
815
|
+
limit?: number;
|
|
816
|
+
offset?: number;
|
|
817
|
+
query?: SymmQueryConfig;
|
|
818
|
+
}): {
|
|
819
|
+
orders: _pear_protocol_symm_core.TriggerOrderItem[];
|
|
820
|
+
total: number;
|
|
821
|
+
limit: number;
|
|
822
|
+
offset: number;
|
|
823
|
+
isLoading: boolean;
|
|
824
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.TriggerOrdersListResponse, Error>>;
|
|
825
|
+
};
|
|
826
|
+
|
|
737
827
|
declare function useSymmMarkets(params?: {
|
|
738
828
|
chainId?: number;
|
|
739
829
|
searchText?: string;
|
|
@@ -744,6 +834,45 @@ declare function useSymmMarkets(params?: {
|
|
|
744
834
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.MarketsResponse, Error>>;
|
|
745
835
|
};
|
|
746
836
|
|
|
837
|
+
declare function useSymmHedgerMarketById(params: {
|
|
838
|
+
id?: number;
|
|
839
|
+
chainId?: number;
|
|
840
|
+
query?: SymmQueryConfig;
|
|
841
|
+
}): {
|
|
842
|
+
market: _pear_protocol_symm_core.MarketItem | null;
|
|
843
|
+
markets: _pear_protocol_symm_core.MarketItem[];
|
|
844
|
+
isLoading: boolean;
|
|
845
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>>;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
declare function useSymmHedgerMarketBySymbol(params: {
|
|
849
|
+
symbol?: string;
|
|
850
|
+
chainId?: number;
|
|
851
|
+
query?: SymmQueryConfig;
|
|
852
|
+
}): {
|
|
853
|
+
market: _pear_protocol_symm_core.MarketItem | null;
|
|
854
|
+
markets: _pear_protocol_symm_core.MarketItem[];
|
|
855
|
+
isLoading: boolean;
|
|
856
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>>;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
declare function useSymmLockedParams(params: {
|
|
860
|
+
marketName?: string;
|
|
861
|
+
leverage?: number;
|
|
862
|
+
chainId?: number;
|
|
863
|
+
query?: SymmQueryConfig;
|
|
864
|
+
}): {
|
|
865
|
+
lockedParams: {
|
|
866
|
+
cva: string;
|
|
867
|
+
lf: string;
|
|
868
|
+
partyAmm: string;
|
|
869
|
+
partyBmm: string;
|
|
870
|
+
leverage: number;
|
|
871
|
+
} | null;
|
|
872
|
+
isLoading: boolean;
|
|
873
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.LockedParamsResponse, Error>>;
|
|
874
|
+
};
|
|
875
|
+
|
|
747
876
|
type UseSymmHedgerMarketsParams = GetSymmHedgerMarketsRequest & {
|
|
748
877
|
/** @deprecated Use `query.enabled` instead. */
|
|
749
878
|
enabled?: boolean;
|
|
@@ -773,6 +902,63 @@ declare function useSymmFunding(params?: {
|
|
|
773
902
|
isLoading: boolean;
|
|
774
903
|
};
|
|
775
904
|
|
|
905
|
+
declare function useSymmFundingHistory(params: {
|
|
906
|
+
period: '7d' | '30d' | '90d' | '180d';
|
|
907
|
+
longSymbols?: string;
|
|
908
|
+
shortSymbols?: string;
|
|
909
|
+
interval?: '1h' | '4h' | '12h' | '1d';
|
|
910
|
+
weightMode?: 'equal_side' | 'notional';
|
|
911
|
+
includeContributions?: boolean;
|
|
912
|
+
chainId?: number;
|
|
913
|
+
query?: SymmQueryConfig;
|
|
914
|
+
}): {
|
|
915
|
+
history: {
|
|
916
|
+
period: string;
|
|
917
|
+
interval: string;
|
|
918
|
+
periodStart: string;
|
|
919
|
+
periodEnd: string;
|
|
920
|
+
longSymbols: string[];
|
|
921
|
+
shortSymbols: string[];
|
|
922
|
+
weightMode: string;
|
|
923
|
+
series: Array<{
|
|
924
|
+
timestamp: string;
|
|
925
|
+
epochTimestamp: string;
|
|
926
|
+
netFundingRatePct: number;
|
|
927
|
+
cumulativeFundingRatePct: number;
|
|
928
|
+
missingSymbols?: string[];
|
|
929
|
+
contributions?: Array<{
|
|
930
|
+
symbol: string;
|
|
931
|
+
side: string;
|
|
932
|
+
weight: number;
|
|
933
|
+
fundingRate: number;
|
|
934
|
+
contributionPct: number;
|
|
935
|
+
}>;
|
|
936
|
+
}>;
|
|
937
|
+
summary: {
|
|
938
|
+
points: number;
|
|
939
|
+
latestNetFundingRatePct: number;
|
|
940
|
+
cumulativeFundingRatePct: number;
|
|
941
|
+
avgNetFundingRatePct: number;
|
|
942
|
+
};
|
|
943
|
+
} | null;
|
|
944
|
+
isLoading: boolean;
|
|
945
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.FundingHistoryResponse, Error>>;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
declare function useSymmFundingPayments(params: {
|
|
949
|
+
address?: Address;
|
|
950
|
+
positionId?: string;
|
|
951
|
+
chainId?: number;
|
|
952
|
+
limit?: number;
|
|
953
|
+
offset?: number;
|
|
954
|
+
query?: SymmQueryConfig;
|
|
955
|
+
}): {
|
|
956
|
+
payments: node_modules__pear_protocol_symm_core_dist_types.FundingPayment[];
|
|
957
|
+
total: number;
|
|
958
|
+
isLoading: boolean;
|
|
959
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.FundingPaymentsResponse, Error>>;
|
|
960
|
+
};
|
|
961
|
+
|
|
776
962
|
declare function useSymmPortfolio(params: {
|
|
777
963
|
accountAddress?: Address;
|
|
778
964
|
mainAddress?: Address;
|
|
@@ -799,6 +985,41 @@ declare function useSymmNotifications(params: {
|
|
|
799
985
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.NotificationsResponse, Error>>;
|
|
800
986
|
};
|
|
801
987
|
|
|
988
|
+
declare function useSymmPendingIds(params: {
|
|
989
|
+
accountAddress?: Address;
|
|
990
|
+
chainId?: number;
|
|
991
|
+
query?: SymmQueryConfig;
|
|
992
|
+
}): {
|
|
993
|
+
pendingIds: number[];
|
|
994
|
+
isLoading: boolean;
|
|
995
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PendingIdsResponse, Error>>;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
declare function useSymmPendingInstantOpens(params: {
|
|
999
|
+
accountAddress?: Address;
|
|
1000
|
+
authToken?: string;
|
|
1001
|
+
chainId?: number;
|
|
1002
|
+
query?: SymmQueryConfig;
|
|
1003
|
+
}): {
|
|
1004
|
+
pendingOpens: _pear_protocol_symm_core.PendingInstantOpenItem[];
|
|
1005
|
+
total: number;
|
|
1006
|
+
isLoading: boolean;
|
|
1007
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PendingInstantOpensResponse, Error>>;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
declare function useSymmTwapOrder(params: {
|
|
1011
|
+
orderId?: string;
|
|
1012
|
+
query?: SymmQueryConfig;
|
|
1013
|
+
}): {
|
|
1014
|
+
order: {
|
|
1015
|
+
orderId: string;
|
|
1016
|
+
status: string;
|
|
1017
|
+
twapConfig?: Record<string, unknown>;
|
|
1018
|
+
} | null;
|
|
1019
|
+
isLoading: boolean;
|
|
1020
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error>>;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
802
1023
|
declare function useSymmWs(params: {
|
|
803
1024
|
accountAddress?: Address;
|
|
804
1025
|
chainId?: number;
|
|
@@ -931,6 +1152,9 @@ declare function useSymmPerformanceOverlays(selection: SymmChartSelection): {
|
|
|
931
1152
|
declare const symmKeys: {
|
|
932
1153
|
all: readonly ["symm"];
|
|
933
1154
|
accounts: (address?: Address, chainId?: number) => readonly ["symm", "accounts", `0x${string}` | undefined, number | undefined];
|
|
1155
|
+
accountsApi: (address?: Address, chainId?: number) => readonly ["symm", "accountsApi", `0x${string}` | undefined, number | undefined];
|
|
1156
|
+
accountsLength: (address?: Address, chainId?: number) => readonly ["symm", "accountsLength", `0x${string}` | undefined, number | undefined];
|
|
1157
|
+
accountsWithPositions: (address?: Address, chainId?: number) => readonly ["symm", "accountsWithPositions", `0x${string}` | undefined, number | undefined];
|
|
934
1158
|
accountSummary: (address?: Address, chainId?: number) => readonly ["symm", "accountSummary", `0x${string}` | undefined, number | undefined];
|
|
935
1159
|
accountData: (address?: Address, chainId?: number) => readonly ["symm", "accountData", `0x${string}` | undefined, number | undefined];
|
|
936
1160
|
signature: (address?: Address, chainId?: number) => readonly ["symm", "signature", `0x${string}` | undefined, number | undefined];
|
|
@@ -940,18 +1164,85 @@ declare const symmKeys: {
|
|
|
940
1164
|
openOrders: (address?: Address, chainId?: number) => readonly ["symm", "openOrders", `0x${string}` | undefined, number | undefined];
|
|
941
1165
|
tradeHistory: (address?: Address, chainId?: number) => readonly ["symm", "tradeHistory", `0x${string}` | undefined, number | undefined];
|
|
942
1166
|
tpslOrders: (address?: Address, chainId?: number) => readonly ["symm", "tpslOrders", `0x${string}` | undefined, number | undefined];
|
|
1167
|
+
tpslOrdersList: (params?: {
|
|
1168
|
+
accountAddress?: Address;
|
|
1169
|
+
mainAddress?: Address;
|
|
1170
|
+
positionId?: string;
|
|
1171
|
+
type?: string;
|
|
1172
|
+
status?: string;
|
|
1173
|
+
chainId?: number;
|
|
1174
|
+
}) => readonly ["symm", "tpslOrders", {
|
|
1175
|
+
accountAddress?: Address;
|
|
1176
|
+
mainAddress?: Address;
|
|
1177
|
+
positionId?: string;
|
|
1178
|
+
type?: string;
|
|
1179
|
+
status?: string;
|
|
1180
|
+
chainId?: number;
|
|
1181
|
+
} | undefined];
|
|
943
1182
|
twapOrders: (address?: Address, chainId?: number) => readonly ["symm", "twapOrders", `0x${string}` | undefined, number | undefined];
|
|
1183
|
+
triggerOrders: (params?: {
|
|
1184
|
+
accountAddress?: Address;
|
|
1185
|
+
mainAddress?: Address;
|
|
1186
|
+
status?: string;
|
|
1187
|
+
limit?: number;
|
|
1188
|
+
offset?: number;
|
|
1189
|
+
chainId?: number;
|
|
1190
|
+
}) => readonly ["symm", "triggerOrders", {
|
|
1191
|
+
accountAddress?: Address;
|
|
1192
|
+
mainAddress?: Address;
|
|
1193
|
+
status?: string;
|
|
1194
|
+
limit?: number;
|
|
1195
|
+
offset?: number;
|
|
1196
|
+
chainId?: number;
|
|
1197
|
+
} | undefined];
|
|
1198
|
+
triggerConfig: (orderId?: string) => readonly ["symm", "triggerConfig", string | undefined];
|
|
944
1199
|
markets: (chainId?: number, search?: string) => readonly ["symm", "markets", number | undefined, string | undefined];
|
|
1200
|
+
hedgerMarketById: (id?: number, chainId?: number) => readonly ["symm", "hedgerMarketById", number | undefined, number | undefined];
|
|
1201
|
+
hedgerMarketBySymbol: (symbol?: string, chainId?: number) => readonly ["symm", "hedgerMarketBySymbol", string | undefined, number | undefined];
|
|
1202
|
+
lockedParams: (marketName?: string, leverage?: number, chainId?: number) => readonly ["symm", "lockedParams", string | undefined, number | undefined, number | undefined];
|
|
945
1203
|
hedgerMarkets: (request?: GetSymmHedgerMarketsRequest) => readonly ["symm", "hedgerMarkets", GetSymmHedgerMarketsRequest | undefined];
|
|
946
1204
|
fundingRates: (chainId?: number) => readonly ["symm", "fundingRates", number | undefined];
|
|
1205
|
+
fundingPayments: (params?: {
|
|
1206
|
+
address?: Address;
|
|
1207
|
+
positionId?: string;
|
|
1208
|
+
chainId?: number;
|
|
1209
|
+
limit?: number;
|
|
1210
|
+
offset?: number;
|
|
1211
|
+
}) => readonly ["symm", "fundingPayments", {
|
|
1212
|
+
address?: Address;
|
|
1213
|
+
positionId?: string;
|
|
1214
|
+
chainId?: number;
|
|
1215
|
+
limit?: number;
|
|
1216
|
+
offset?: number;
|
|
1217
|
+
} | undefined];
|
|
1218
|
+
fundingHistory: (params?: {
|
|
1219
|
+
chainId?: number;
|
|
1220
|
+
period?: string;
|
|
1221
|
+
longSymbols?: string;
|
|
1222
|
+
shortSymbols?: string;
|
|
1223
|
+
interval?: string;
|
|
1224
|
+
weightMode?: string;
|
|
1225
|
+
includeContributions?: boolean;
|
|
1226
|
+
}) => readonly ["symm", "fundingHistory", {
|
|
1227
|
+
chainId?: number;
|
|
1228
|
+
period?: string;
|
|
1229
|
+
longSymbols?: string;
|
|
1230
|
+
shortSymbols?: string;
|
|
1231
|
+
interval?: string;
|
|
1232
|
+
weightMode?: string;
|
|
1233
|
+
includeContributions?: boolean;
|
|
1234
|
+
} | undefined];
|
|
947
1235
|
portfolio: (address?: Address, chainId?: number) => readonly ["symm", "portfolio", `0x${string}` | undefined, number | undefined];
|
|
948
1236
|
notifications: (address?: Address, chainId?: number) => readonly ["symm", "notifications", `0x${string}` | undefined, number | undefined];
|
|
949
1237
|
unreadCount: (address?: Address, chainId?: number) => readonly ["symm", "unreadCount", `0x${string}` | undefined, number | undefined];
|
|
950
1238
|
availableMargin: (address?: Address, chainId?: number) => readonly ["symm", "availableMargin", `0x${string}` | undefined, number | undefined];
|
|
1239
|
+
pendingIds: (address?: Address, chainId?: number) => readonly ["symm", "pendingIds", `0x${string}` | undefined, number | undefined];
|
|
1240
|
+
pendingInstantOpens: (accountAddress?: Address, chainId?: number) => readonly ["symm", "pendingInstantOpens", `0x${string}` | undefined, number | undefined];
|
|
1241
|
+
twapOrder: (orderId?: string) => readonly ["symm", "twapOrder", string | undefined];
|
|
951
1242
|
delegation: (account?: Address, target?: Address, selectors?: readonly Hex[], chainId?: number) => readonly ["symm", "delegation", `0x${string}` | undefined, `0x${string}` | undefined, readonly `0x${string}`[] | undefined, number | undefined];
|
|
952
1243
|
chartMetadata: (symbolsKey: string, positionKey: string) => readonly ["symm", "chartMetadata", string, string];
|
|
953
1244
|
};
|
|
954
1245
|
|
|
955
1246
|
declare function getSymmErrorMessage(error: unknown): string;
|
|
956
1247
|
|
|
957
|
-
export { type SymmChartSelection, type SymmChartSelectionInput, type SymmChartTokenSelection, type SymmContextValue, type SymmDelegationState, type SymmInstantTradeActionArgs, type SymmInstantTradeRequest, type SymmPerformanceOverlay, SymmProvider, type SymmProviderProps, type SymmQueryConfig, type SymmTokenMetadata, type UseSymmChartCandlesReturn, type UseSymmDelegationParams, type UseSymmHedgerMarketsParams, type UseSymmTokenSelectionMetadataReturn, getSymmErrorMessage, symmKeys, useSymmAccountData, useSymmAccountSummary, useSymmAccounts, useSymmApproval, useSymmAuth, useSymmAvailableMargin, useSymmBalances, useSymmChartCandles, useSymmChartSelection, useSymmCollateral, useSymmContext, useSymmCoreClient, useSymmDelegation, useSymmDeposit, useSymmFunding, useSymmHedgerMarkets, useSymmInstantTrade, useSymmMarkets, useSymmNotifications, useSymmOpenOrders, useSymmPerformanceOverlays, useSymmPortfolio, useSymmPositions, useSymmSignature, useSymmTokenSelectionMetadata, useSymmTpsl, useSymmTrade, useSymmTradeHistory, useSymmTwap, useSymmWithdraw, useSymmWs, useSymmioClient };
|
|
1248
|
+
export { type SymmChartSelection, type SymmChartSelectionInput, type SymmChartTokenSelection, type SymmContextValue, type SymmDelegationState, type SymmInstantTradeActionArgs, type SymmInstantTradeRequest, type SymmPerformanceOverlay, SymmProvider, type SymmProviderProps, type SymmQueryConfig, type SymmTokenMetadata, type UseSymmChartCandlesReturn, type UseSymmDelegationParams, type UseSymmHedgerMarketsParams, type UseSymmTokenSelectionMetadataReturn, type UseSymmTpslOrdersParams, getSymmErrorMessage, symmKeys, useSymmAccountData, useSymmAccountSummary, useSymmAccounts, useSymmAccountsApi, useSymmAccountsLength, useSymmAccountsWithPositions, useSymmApproval, useSymmAuth, useSymmAvailableMargin, useSymmBalances, useSymmCancelClose, useSymmChartCandles, useSymmChartSelection, useSymmCloseOrder, useSymmCollateral, useSymmContext, useSymmCoreClient, useSymmDelegation, useSymmDeposit, useSymmFunding, useSymmFundingHistory, useSymmFundingPayments, useSymmHedgerMarketById, useSymmHedgerMarketBySymbol, useSymmHedgerMarkets, useSymmInstantTrade, useSymmLockedParams, useSymmMarkets, useSymmNotifications, useSymmOpenOrders, useSymmPendingIds, useSymmPendingInstantOpens, useSymmPerformanceOverlays, useSymmPortfolio, useSymmPositions, useSymmSignature, useSymmTokenSelectionMetadata, useSymmTpsl, useSymmTpslOrders, useSymmTrade, useSymmTradeHistory, useSymmTriggerConfig, useSymmTriggerOrders, useSymmTwap, useSymmTwapOrder, useSymmWithdraw, useSymmWs, useSymmioClient };
|