binance 2.11.5 → 2.12.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/README.md +9 -1
- package/lib/coinm-client.d.ts +23 -2
- package/lib/coinm-client.js +23 -0
- package/lib/coinm-client.js.map +1 -1
- package/lib/main-client.d.ts +709 -16
- package/lib/main-client.js +841 -39
- package/lib/main-client.js.map +1 -1
- package/lib/types/coin.d.ts +20 -0
- package/lib/types/futures.d.ts +68 -0
- package/lib/types/shared.d.ts +1 -1
- package/lib/types/spot.d.ts +2610 -3
- package/lib/usdm-client.d.ts +56 -1
- package/lib/usdm-client.js +67 -0
- package/lib/usdm-client.js.map +1 -1
- package/package.json +1 -1
- package/lib/types/simpleEarn.d.ts +0 -107
- package/lib/types/simpleEarn.js +0 -3
- package/lib/types/simpleEarn.js.map +0 -1
package/lib/types/spot.d.ts
CHANGED
|
@@ -1600,9 +1600,6 @@ export interface AddBSwapLiquidityParams {
|
|
|
1600
1600
|
asset: string;
|
|
1601
1601
|
quantity: number;
|
|
1602
1602
|
}
|
|
1603
|
-
export interface BasicBSwapResp {
|
|
1604
|
-
operationId: number;
|
|
1605
|
-
}
|
|
1606
1603
|
export interface BSwapShare {
|
|
1607
1604
|
shareAmount: number;
|
|
1608
1605
|
sharePercentage: number;
|
|
@@ -1619,3 +1616,2613 @@ export interface BSwapLiquidity {
|
|
|
1619
1616
|
};
|
|
1620
1617
|
share: BSwapShare;
|
|
1621
1618
|
}
|
|
1619
|
+
export interface FundingAsset {
|
|
1620
|
+
asset: string;
|
|
1621
|
+
free: string;
|
|
1622
|
+
locked: string;
|
|
1623
|
+
freeze: string;
|
|
1624
|
+
withdrawing: string;
|
|
1625
|
+
btcValuation: string;
|
|
1626
|
+
}
|
|
1627
|
+
export interface GetAssetParams {
|
|
1628
|
+
asset?: string;
|
|
1629
|
+
needBtcValuation?: boolean;
|
|
1630
|
+
}
|
|
1631
|
+
export interface UserAsset {
|
|
1632
|
+
asset: string;
|
|
1633
|
+
free: string;
|
|
1634
|
+
locked: string;
|
|
1635
|
+
freeze: string;
|
|
1636
|
+
withdrawing: string;
|
|
1637
|
+
ipoable: string;
|
|
1638
|
+
btcValuation: string;
|
|
1639
|
+
}
|
|
1640
|
+
export interface ConvertTransfer {
|
|
1641
|
+
clientTranId: string;
|
|
1642
|
+
asset: string;
|
|
1643
|
+
amount: number;
|
|
1644
|
+
targetAsset: string;
|
|
1645
|
+
accountType?: string;
|
|
1646
|
+
}
|
|
1647
|
+
export interface ConvertTransferResponse {
|
|
1648
|
+
tranId: number;
|
|
1649
|
+
status: string;
|
|
1650
|
+
}
|
|
1651
|
+
export interface GetConvertBUSDHistoryParams {
|
|
1652
|
+
tranId?: number;
|
|
1653
|
+
clientTranId?: string;
|
|
1654
|
+
asset?: string;
|
|
1655
|
+
startTime: number;
|
|
1656
|
+
endTime: number;
|
|
1657
|
+
accountType?: string;
|
|
1658
|
+
current?: number;
|
|
1659
|
+
size?: number;
|
|
1660
|
+
}
|
|
1661
|
+
export interface BUSDConversionRecord {
|
|
1662
|
+
tranId: number;
|
|
1663
|
+
type: number;
|
|
1664
|
+
time: number;
|
|
1665
|
+
deductedAsset: string;
|
|
1666
|
+
deductedAmount: string;
|
|
1667
|
+
targetAsset: string;
|
|
1668
|
+
targetAmount: string;
|
|
1669
|
+
status: string;
|
|
1670
|
+
accountType: string;
|
|
1671
|
+
}
|
|
1672
|
+
export interface CloudMiningHistoryParams {
|
|
1673
|
+
tranId?: number;
|
|
1674
|
+
clientTranId?: string;
|
|
1675
|
+
asset?: string;
|
|
1676
|
+
startTime: number;
|
|
1677
|
+
endTime: number;
|
|
1678
|
+
current?: number;
|
|
1679
|
+
size?: number;
|
|
1680
|
+
}
|
|
1681
|
+
export interface CloudMining {
|
|
1682
|
+
createTime: number;
|
|
1683
|
+
tranId: number;
|
|
1684
|
+
type: number;
|
|
1685
|
+
asset: string;
|
|
1686
|
+
amount: string;
|
|
1687
|
+
status: string;
|
|
1688
|
+
}
|
|
1689
|
+
export interface ConvertibleCoinsResponse {
|
|
1690
|
+
convertEnabled: boolean;
|
|
1691
|
+
coins: string[];
|
|
1692
|
+
exchangeRates: any;
|
|
1693
|
+
}
|
|
1694
|
+
export interface ConvertibleCoinsParams {
|
|
1695
|
+
coin: string;
|
|
1696
|
+
enable: boolean;
|
|
1697
|
+
}
|
|
1698
|
+
export interface SubmitDepositCreditParams {
|
|
1699
|
+
depositId?: number;
|
|
1700
|
+
txId?: string;
|
|
1701
|
+
subAccountId?: number;
|
|
1702
|
+
subUserId?: number;
|
|
1703
|
+
}
|
|
1704
|
+
export interface SubmitDepositCreditResponse {
|
|
1705
|
+
code: string;
|
|
1706
|
+
message: string;
|
|
1707
|
+
data: boolean;
|
|
1708
|
+
success: boolean;
|
|
1709
|
+
}
|
|
1710
|
+
export interface DepositAddressListParams {
|
|
1711
|
+
coin: string;
|
|
1712
|
+
network?: string;
|
|
1713
|
+
timestamp: number;
|
|
1714
|
+
}
|
|
1715
|
+
export interface DepositAddress {
|
|
1716
|
+
coin: string;
|
|
1717
|
+
address: string;
|
|
1718
|
+
tag: string;
|
|
1719
|
+
isDefault: number;
|
|
1720
|
+
}
|
|
1721
|
+
export interface WalletBalance {
|
|
1722
|
+
activate: boolean;
|
|
1723
|
+
balance: string;
|
|
1724
|
+
walletName: string;
|
|
1725
|
+
}
|
|
1726
|
+
export interface DelegationHistoryParams {
|
|
1727
|
+
email: string;
|
|
1728
|
+
startTime: number;
|
|
1729
|
+
endTime: number;
|
|
1730
|
+
type?: 'Delegate' | 'Undelegate';
|
|
1731
|
+
asset?: string;
|
|
1732
|
+
current?: number;
|
|
1733
|
+
size?: number;
|
|
1734
|
+
}
|
|
1735
|
+
export interface DelegationHistory {
|
|
1736
|
+
clientTranId: string;
|
|
1737
|
+
transferType: 'Delegate' | 'Undelegate';
|
|
1738
|
+
asset: string;
|
|
1739
|
+
amount: string;
|
|
1740
|
+
time: number;
|
|
1741
|
+
}
|
|
1742
|
+
export interface DelistScheduleResponse {
|
|
1743
|
+
delistTime: number;
|
|
1744
|
+
symbols: string[];
|
|
1745
|
+
}
|
|
1746
|
+
export interface WithdrawAddress {
|
|
1747
|
+
address: string;
|
|
1748
|
+
addressTag: string;
|
|
1749
|
+
coin: string;
|
|
1750
|
+
name: string;
|
|
1751
|
+
network: string;
|
|
1752
|
+
origin: string;
|
|
1753
|
+
originType: string;
|
|
1754
|
+
whiteStatus: boolean;
|
|
1755
|
+
}
|
|
1756
|
+
export interface AccountInfoResponse {
|
|
1757
|
+
vipLevel: number;
|
|
1758
|
+
isMarginEnabled: boolean;
|
|
1759
|
+
isFutureEnabled: boolean;
|
|
1760
|
+
}
|
|
1761
|
+
export interface ManagedSubAccountSnapshotParams {
|
|
1762
|
+
email: string;
|
|
1763
|
+
type: 'SPOT' | 'MARGIN' | 'FUTURES';
|
|
1764
|
+
startTime?: number;
|
|
1765
|
+
endTime?: number;
|
|
1766
|
+
limit?: number;
|
|
1767
|
+
}
|
|
1768
|
+
export interface SubaccountBalances {
|
|
1769
|
+
asset: string;
|
|
1770
|
+
free: string;
|
|
1771
|
+
locked: string;
|
|
1772
|
+
}
|
|
1773
|
+
export interface SubaccountUserAssets {
|
|
1774
|
+
asset: string;
|
|
1775
|
+
borrowed: string;
|
|
1776
|
+
free: string;
|
|
1777
|
+
interest: string;
|
|
1778
|
+
locked: string;
|
|
1779
|
+
netAsset: string;
|
|
1780
|
+
}
|
|
1781
|
+
export interface SubaccountAssets {
|
|
1782
|
+
asset: string;
|
|
1783
|
+
marginBalance: string;
|
|
1784
|
+
walletBalance: string;
|
|
1785
|
+
}
|
|
1786
|
+
export interface SubaccountPosition {
|
|
1787
|
+
entryPrice: string;
|
|
1788
|
+
markPrice: string;
|
|
1789
|
+
positionAmt: string;
|
|
1790
|
+
symbol: string;
|
|
1791
|
+
unRealizedProfit: string;
|
|
1792
|
+
}
|
|
1793
|
+
export interface ManagedSubAccountSnapshotResponse {
|
|
1794
|
+
code: number;
|
|
1795
|
+
msg: string;
|
|
1796
|
+
snapshotVos: {
|
|
1797
|
+
data: {
|
|
1798
|
+
balances?: SubaccountBalances[];
|
|
1799
|
+
totalAssetOfBtc?: string;
|
|
1800
|
+
marginLevel?: string;
|
|
1801
|
+
totalLiabilityOfBtc?: string;
|
|
1802
|
+
totalNetAssetOfBtc?: string;
|
|
1803
|
+
userAssets?: SubaccountUserAssets[];
|
|
1804
|
+
assets?: SubaccountAssets[];
|
|
1805
|
+
position?: SubaccountPosition[];
|
|
1806
|
+
};
|
|
1807
|
+
type: string;
|
|
1808
|
+
updateTime: number;
|
|
1809
|
+
}[];
|
|
1810
|
+
}
|
|
1811
|
+
export interface ManagedSubAccountTransferLogParams {
|
|
1812
|
+
email: string;
|
|
1813
|
+
startTime: number;
|
|
1814
|
+
endTime: number;
|
|
1815
|
+
page: number;
|
|
1816
|
+
limit: number;
|
|
1817
|
+
transfers?: 'from' | 'to';
|
|
1818
|
+
transferFunctionAccountType?: 'SPOT' | 'MARGIN' | 'ISOLATED_MARGIN' | 'USDT_FUTURE' | 'COIN_FUTURE';
|
|
1819
|
+
}
|
|
1820
|
+
export interface ManagerSubTransferHistoryVos {
|
|
1821
|
+
fromEmail: string;
|
|
1822
|
+
fromAccountType: string;
|
|
1823
|
+
toEmail: string;
|
|
1824
|
+
toAccountType: string;
|
|
1825
|
+
asset: string;
|
|
1826
|
+
amount: string;
|
|
1827
|
+
scheduledData: number;
|
|
1828
|
+
createTime: number;
|
|
1829
|
+
status: string;
|
|
1830
|
+
tranId: number;
|
|
1831
|
+
}
|
|
1832
|
+
export interface ManagedSubAccountFuturesAssetsResponse {
|
|
1833
|
+
code: string;
|
|
1834
|
+
message: string;
|
|
1835
|
+
snapshotVos: {
|
|
1836
|
+
type: string;
|
|
1837
|
+
updateTime: number;
|
|
1838
|
+
data: {
|
|
1839
|
+
assets: SubaccountAssets[];
|
|
1840
|
+
position: SubaccountPosition[];
|
|
1841
|
+
};
|
|
1842
|
+
}[];
|
|
1843
|
+
}
|
|
1844
|
+
export interface ManagedSubAccountMarginAssetsResponse {
|
|
1845
|
+
marginLevel: string;
|
|
1846
|
+
totalAssetOfBtc: string;
|
|
1847
|
+
totalLiabilityOfBtc: string;
|
|
1848
|
+
totalNetAssetOfBtc: string;
|
|
1849
|
+
userAssets: SubaccountUserAssets[];
|
|
1850
|
+
}
|
|
1851
|
+
export interface ManagedSubAccountListParams {
|
|
1852
|
+
email?: string;
|
|
1853
|
+
page?: number;
|
|
1854
|
+
limit?: number;
|
|
1855
|
+
}
|
|
1856
|
+
export interface ManagerSubUserInfoVo {
|
|
1857
|
+
rootUserId: number;
|
|
1858
|
+
managersubUserId: number;
|
|
1859
|
+
bindParentUserId: number;
|
|
1860
|
+
email: string;
|
|
1861
|
+
insertTimeStamp: number;
|
|
1862
|
+
bindParentEmail: string;
|
|
1863
|
+
isSubUserEnabled: boolean;
|
|
1864
|
+
isUserActive: boolean;
|
|
1865
|
+
isMarginEnabled: boolean;
|
|
1866
|
+
isFutureEnabled: boolean;
|
|
1867
|
+
isSignedLVTRiskAgreement: boolean;
|
|
1868
|
+
}
|
|
1869
|
+
export interface SubaccountTradeInfoVos {
|
|
1870
|
+
userId: number;
|
|
1871
|
+
btc: number;
|
|
1872
|
+
btcFutures: number;
|
|
1873
|
+
btcMargin: number;
|
|
1874
|
+
busd: number;
|
|
1875
|
+
busdFutures: number;
|
|
1876
|
+
busdMargin: number;
|
|
1877
|
+
date: number;
|
|
1878
|
+
}
|
|
1879
|
+
export interface SubAccountTransactionStatisticsResponse {
|
|
1880
|
+
recent30BtcTotal: string;
|
|
1881
|
+
recent30BtcFuturesTotal: string;
|
|
1882
|
+
recent30BtcMarginTotal: string;
|
|
1883
|
+
recent30BusdTotal: string;
|
|
1884
|
+
recent30BusdFuturesTotal: string;
|
|
1885
|
+
recent30BusdMarginTotal: string;
|
|
1886
|
+
tradeInfoVos: SubaccountTradeInfoVos[];
|
|
1887
|
+
}
|
|
1888
|
+
export interface ManagedSubAccountDepositAddressParams {
|
|
1889
|
+
email: string;
|
|
1890
|
+
coin: string;
|
|
1891
|
+
network?: string;
|
|
1892
|
+
}
|
|
1893
|
+
export interface ManagedSubAccountDepositAddressResponse {
|
|
1894
|
+
coin: string;
|
|
1895
|
+
address: string;
|
|
1896
|
+
tag: string;
|
|
1897
|
+
url: string;
|
|
1898
|
+
}
|
|
1899
|
+
export interface EnableOptionsForSubAccountResponse {
|
|
1900
|
+
email: string;
|
|
1901
|
+
isEOptionsEnabled: boolean;
|
|
1902
|
+
}
|
|
1903
|
+
export interface ManagedSubAccountTransferTTLogParams {
|
|
1904
|
+
startTime: number;
|
|
1905
|
+
endTime: number;
|
|
1906
|
+
page: number;
|
|
1907
|
+
limit: number;
|
|
1908
|
+
transfers?: string;
|
|
1909
|
+
transferFunctionAccountType?: string;
|
|
1910
|
+
}
|
|
1911
|
+
export interface UIKlinesParams {
|
|
1912
|
+
symbol: string;
|
|
1913
|
+
interval: string;
|
|
1914
|
+
startTime?: number;
|
|
1915
|
+
endTime?: number;
|
|
1916
|
+
timeZone?: string;
|
|
1917
|
+
limit?: number;
|
|
1918
|
+
}
|
|
1919
|
+
export interface TradingDayTickerParams {
|
|
1920
|
+
symbol?: string;
|
|
1921
|
+
symbols?: string[];
|
|
1922
|
+
timeZone?: string;
|
|
1923
|
+
type?: 'FULL' | 'MINI';
|
|
1924
|
+
}
|
|
1925
|
+
export type TradingDayTickerFull = {
|
|
1926
|
+
symbol: string;
|
|
1927
|
+
priceChange: string;
|
|
1928
|
+
priceChangePercent: string;
|
|
1929
|
+
weightedAvgPrice: string;
|
|
1930
|
+
openPrice: string;
|
|
1931
|
+
highPrice: string;
|
|
1932
|
+
lowPrice: string;
|
|
1933
|
+
lastPrice: string;
|
|
1934
|
+
volume: string;
|
|
1935
|
+
quoteVolume: string;
|
|
1936
|
+
openTime: number;
|
|
1937
|
+
closeTime: number;
|
|
1938
|
+
firstId: number;
|
|
1939
|
+
lastId: number;
|
|
1940
|
+
count: number;
|
|
1941
|
+
};
|
|
1942
|
+
export interface TradingDayTickerMini {
|
|
1943
|
+
symbol: string;
|
|
1944
|
+
openPrice: string;
|
|
1945
|
+
highPrice: string;
|
|
1946
|
+
lowPrice: string;
|
|
1947
|
+
lastPrice: string;
|
|
1948
|
+
volume: string;
|
|
1949
|
+
quoteVolume: string;
|
|
1950
|
+
openTime: number;
|
|
1951
|
+
closeTime: number;
|
|
1952
|
+
firstId: number;
|
|
1953
|
+
lastId: number;
|
|
1954
|
+
count: number;
|
|
1955
|
+
}
|
|
1956
|
+
export interface RollingWindowTickerParams {
|
|
1957
|
+
symbol?: string;
|
|
1958
|
+
symbols?: string[];
|
|
1959
|
+
windowSize?: string;
|
|
1960
|
+
type?: 'FULL' | 'MINI';
|
|
1961
|
+
}
|
|
1962
|
+
export interface NewOrderListOTOParams {
|
|
1963
|
+
symbol: string;
|
|
1964
|
+
listClientOrderId?: string;
|
|
1965
|
+
newOrderRespType?: 'ACK' | 'FULL' | 'RESULT';
|
|
1966
|
+
selfTradePreventionMode?: string;
|
|
1967
|
+
workingType: 'LIMIT' | 'LIMIT_MAKER';
|
|
1968
|
+
workingSide: 'BUY' | 'SELL';
|
|
1969
|
+
workingClientOrderId?: string;
|
|
1970
|
+
workingPrice: string;
|
|
1971
|
+
workingQuantity: string;
|
|
1972
|
+
workingIcebergQty?: string;
|
|
1973
|
+
workingTimeInForce?: 'FOK' | 'IOC' | 'GTC';
|
|
1974
|
+
workingStrategyId?: number;
|
|
1975
|
+
workingStrategyType?: number;
|
|
1976
|
+
pendingType: string;
|
|
1977
|
+
pendingSide: 'BUY' | 'SELL';
|
|
1978
|
+
pendingClientOrderId?: string;
|
|
1979
|
+
pendingPrice?: string;
|
|
1980
|
+
pendingStopPrice?: string;
|
|
1981
|
+
pendingTrailingDelta?: string;
|
|
1982
|
+
pendingQuantity: string;
|
|
1983
|
+
pendingIcebergQty?: string;
|
|
1984
|
+
pendingTimeInForce?: 'GTC' | 'FOK' | 'IOC';
|
|
1985
|
+
pendingStrategyId?: number;
|
|
1986
|
+
pendingStrategyType?: number;
|
|
1987
|
+
}
|
|
1988
|
+
export interface NewOrderListOTOResponse {
|
|
1989
|
+
orderListId: number;
|
|
1990
|
+
contingencyType: string;
|
|
1991
|
+
listStatusType: string;
|
|
1992
|
+
listOrderStatus: string;
|
|
1993
|
+
listClientOrderId: string;
|
|
1994
|
+
transactionTime: number;
|
|
1995
|
+
symbol: string;
|
|
1996
|
+
orders: {
|
|
1997
|
+
symbol: string;
|
|
1998
|
+
orderId: number;
|
|
1999
|
+
clientOrderId: string;
|
|
2000
|
+
}[];
|
|
2001
|
+
orderReports: {
|
|
2002
|
+
symbol: string;
|
|
2003
|
+
orderId: number;
|
|
2004
|
+
orderListId: number;
|
|
2005
|
+
clientOrderId: string;
|
|
2006
|
+
transactTime: number;
|
|
2007
|
+
price: string;
|
|
2008
|
+
origQty: string;
|
|
2009
|
+
executedQty: string;
|
|
2010
|
+
cummulativeQuoteQty: string;
|
|
2011
|
+
status: string;
|
|
2012
|
+
timeInForce: string;
|
|
2013
|
+
type: string;
|
|
2014
|
+
side: string;
|
|
2015
|
+
workingTime: number;
|
|
2016
|
+
selfTradePreventionMode: string;
|
|
2017
|
+
}[];
|
|
2018
|
+
}
|
|
2019
|
+
export interface NewOrderListOTOCOParams {
|
|
2020
|
+
symbol: string;
|
|
2021
|
+
listClientOrderId?: string;
|
|
2022
|
+
newOrderRespType?: 'ACK' | 'FULL' | 'RESPONSE';
|
|
2023
|
+
selfTradePreventionMode?: string;
|
|
2024
|
+
workingType: 'LIMIT' | 'LIMIT_MAKER';
|
|
2025
|
+
workingSide: 'BUY' | 'SELL';
|
|
2026
|
+
workingClientOrderId?: string;
|
|
2027
|
+
workingPrice: string;
|
|
2028
|
+
workingQuantity: string;
|
|
2029
|
+
workingIcebergQty?: string;
|
|
2030
|
+
workingTimeInForce?: 'GTC' | 'IOC' | 'FOK';
|
|
2031
|
+
workingStrategyId?: number;
|
|
2032
|
+
workingStrategyType?: number;
|
|
2033
|
+
pendingSide: 'BUY' | 'SELL';
|
|
2034
|
+
pendingQuantity: string;
|
|
2035
|
+
pendingAboveType: 'LIMIT_MAKER' | 'STOP_LOSS' | 'STOP_LOSS_LIMIT';
|
|
2036
|
+
pendingAboveClientOrderId?: string;
|
|
2037
|
+
pendingAbovePrice?: string;
|
|
2038
|
+
pendingAboveStopPrice?: string;
|
|
2039
|
+
pendingAboveTrailingDelta?: string;
|
|
2040
|
+
pendingAboveIcebergQty?: string;
|
|
2041
|
+
pendingAboveTimeInForce?: 'GTC' | 'FOK' | 'IOC';
|
|
2042
|
+
pendingAboveStrategyId?: number;
|
|
2043
|
+
pendingAboveStrategyType?: number;
|
|
2044
|
+
pendingBelowType: 'LIMIT_MAKER' | 'STOP_LOSS' | 'STOP_LOSS_LIMIT';
|
|
2045
|
+
pendingBelowClientOrderId?: string;
|
|
2046
|
+
pendingBelowPrice?: string;
|
|
2047
|
+
pendingBelowStopPrice?: string;
|
|
2048
|
+
pendingBelowTrailingDelta?: string;
|
|
2049
|
+
pendingBelowIcebergQty?: string;
|
|
2050
|
+
pendingBelowTimeInForce?: 'GTC' | 'FOK' | 'IOC';
|
|
2051
|
+
pendingBelowStrategyId?: number;
|
|
2052
|
+
pendingBelowStrategyType?: number;
|
|
2053
|
+
}
|
|
2054
|
+
export interface NewOrderListOTOCOResponse {
|
|
2055
|
+
orderListId: number;
|
|
2056
|
+
contingencyType: string;
|
|
2057
|
+
listStatusType: string;
|
|
2058
|
+
listOrderStatus: string;
|
|
2059
|
+
listClientOrderId: string;
|
|
2060
|
+
transactionTime: number;
|
|
2061
|
+
symbol: string;
|
|
2062
|
+
orders: {
|
|
2063
|
+
symbol: string;
|
|
2064
|
+
orderId: number;
|
|
2065
|
+
clientOrderId: string;
|
|
2066
|
+
}[];
|
|
2067
|
+
orderReports: {
|
|
2068
|
+
symbol: string;
|
|
2069
|
+
orderId: number;
|
|
2070
|
+
orderListId: number;
|
|
2071
|
+
clientOrderId: string;
|
|
2072
|
+
transactTime: number;
|
|
2073
|
+
price: string;
|
|
2074
|
+
origQty: string;
|
|
2075
|
+
executedQty: string;
|
|
2076
|
+
cummulativeQuoteQty: string;
|
|
2077
|
+
status: string;
|
|
2078
|
+
timeInForce: string;
|
|
2079
|
+
type: string;
|
|
2080
|
+
side: string;
|
|
2081
|
+
stopPrice?: string;
|
|
2082
|
+
workingTime: number;
|
|
2083
|
+
selfTradePreventionMode: string;
|
|
2084
|
+
}[];
|
|
2085
|
+
}
|
|
2086
|
+
export interface OrderRateLimitUsage {
|
|
2087
|
+
rateLimitType: string;
|
|
2088
|
+
interval: string;
|
|
2089
|
+
intervalNum: number;
|
|
2090
|
+
limit: number;
|
|
2091
|
+
count: number;
|
|
2092
|
+
}
|
|
2093
|
+
export interface PreventedMatchesParams {
|
|
2094
|
+
symbol: string;
|
|
2095
|
+
preventedMatchId?: number;
|
|
2096
|
+
orderId?: number;
|
|
2097
|
+
fromPreventedMatchId?: number;
|
|
2098
|
+
limit?: number;
|
|
2099
|
+
}
|
|
2100
|
+
export interface PreventedMatch {
|
|
2101
|
+
symbol: string;
|
|
2102
|
+
preventedMatchId: number;
|
|
2103
|
+
takerOrderId: number;
|
|
2104
|
+
makerOrderId: number;
|
|
2105
|
+
tradeGroupId: number;
|
|
2106
|
+
selfTradePreventionMode: string;
|
|
2107
|
+
price: string;
|
|
2108
|
+
makerPreventedQuantity: string;
|
|
2109
|
+
transactTime: number;
|
|
2110
|
+
}
|
|
2111
|
+
export interface AllocationsParams {
|
|
2112
|
+
symbol: string;
|
|
2113
|
+
startTime?: number;
|
|
2114
|
+
endTime?: number;
|
|
2115
|
+
fromAllocationId?: number;
|
|
2116
|
+
limit?: number;
|
|
2117
|
+
orderId?: number;
|
|
2118
|
+
}
|
|
2119
|
+
export interface CommissionRatesResponse {
|
|
2120
|
+
symbol: string;
|
|
2121
|
+
standardCommission: {
|
|
2122
|
+
maker: string;
|
|
2123
|
+
taker: string;
|
|
2124
|
+
buyer: string;
|
|
2125
|
+
seller: string;
|
|
2126
|
+
};
|
|
2127
|
+
taxCommission: {
|
|
2128
|
+
maker: string;
|
|
2129
|
+
taker: string;
|
|
2130
|
+
buyer: string;
|
|
2131
|
+
seller: string;
|
|
2132
|
+
};
|
|
2133
|
+
discount: {
|
|
2134
|
+
enabledForAccount: boolean;
|
|
2135
|
+
enabledForSymbol: boolean;
|
|
2136
|
+
discountAsset: string;
|
|
2137
|
+
discount: string;
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
export interface GetCrossMarginTransferHistoryParams {
|
|
2141
|
+
asset?: string;
|
|
2142
|
+
type?: 'ROLL_IN' | 'ROLL_OUT';
|
|
2143
|
+
startTime?: number;
|
|
2144
|
+
endTime?: number;
|
|
2145
|
+
current?: number;
|
|
2146
|
+
size?: number;
|
|
2147
|
+
isolatedSymbol?: string;
|
|
2148
|
+
}
|
|
2149
|
+
export interface CrossMarginTransferHistory {
|
|
2150
|
+
amount: string;
|
|
2151
|
+
asset: string;
|
|
2152
|
+
status: string;
|
|
2153
|
+
timestamp: number;
|
|
2154
|
+
txId: number;
|
|
2155
|
+
type: 'ROLL_IN' | 'ROLL_OUT';
|
|
2156
|
+
transFrom?: string;
|
|
2157
|
+
transTo?: string;
|
|
2158
|
+
fromSymbol?: string;
|
|
2159
|
+
toSymbol?: string;
|
|
2160
|
+
}
|
|
2161
|
+
export interface GetMarginInterestHistoryParams {
|
|
2162
|
+
asset?: string;
|
|
2163
|
+
isolatedSymbol?: string;
|
|
2164
|
+
startTime?: number;
|
|
2165
|
+
endTime?: number;
|
|
2166
|
+
current?: number;
|
|
2167
|
+
size?: number;
|
|
2168
|
+
}
|
|
2169
|
+
export interface MarginInterestHistory {
|
|
2170
|
+
txId: number;
|
|
2171
|
+
interestAccuredTime: number;
|
|
2172
|
+
asset: string;
|
|
2173
|
+
rawAsset?: string;
|
|
2174
|
+
principal: string;
|
|
2175
|
+
interest: string;
|
|
2176
|
+
interestRate: string;
|
|
2177
|
+
type: 'PERIODIC' | 'ON_BORROW' | 'PERIODIC_CONVERTED' | 'ON_BORROW_CONVERTED' | 'PORTFOLIO';
|
|
2178
|
+
isolatedSymbol?: string;
|
|
2179
|
+
}
|
|
2180
|
+
export interface GetForceLiquidationRecordParams {
|
|
2181
|
+
startTime?: number;
|
|
2182
|
+
endTime?: number;
|
|
2183
|
+
isolatedSymbol?: string;
|
|
2184
|
+
current?: number;
|
|
2185
|
+
size?: number;
|
|
2186
|
+
}
|
|
2187
|
+
export interface ForceLiquidationRecord {
|
|
2188
|
+
avgPrice: string;
|
|
2189
|
+
executedQty: string;
|
|
2190
|
+
orderId: number;
|
|
2191
|
+
price: string;
|
|
2192
|
+
qty: string;
|
|
2193
|
+
side: 'BUY' | 'SELL';
|
|
2194
|
+
symbol: string;
|
|
2195
|
+
timeInForce: string;
|
|
2196
|
+
isIsolated: boolean;
|
|
2197
|
+
updatedTime: number;
|
|
2198
|
+
}
|
|
2199
|
+
export interface QueryMarginAccountAllOCOParams {
|
|
2200
|
+
isIsolated?: 'TRUE' | 'FALSE';
|
|
2201
|
+
symbol?: string;
|
|
2202
|
+
fromId?: number;
|
|
2203
|
+
startTime?: number;
|
|
2204
|
+
endTime?: number;
|
|
2205
|
+
limit?: number;
|
|
2206
|
+
}
|
|
2207
|
+
export interface QueryMarginAccountTradeListParams {
|
|
2208
|
+
symbol: string;
|
|
2209
|
+
isIsolated?: 'TRUE' | 'FALSE';
|
|
2210
|
+
orderId?: number;
|
|
2211
|
+
startTime?: number;
|
|
2212
|
+
endTime?: number;
|
|
2213
|
+
fromId?: number;
|
|
2214
|
+
limit?: number;
|
|
2215
|
+
}
|
|
2216
|
+
export interface IsolatedMarginSymbol {
|
|
2217
|
+
base: string;
|
|
2218
|
+
isBuyAllowed: boolean;
|
|
2219
|
+
isMarginTrade: boolean;
|
|
2220
|
+
isSellAllowed: boolean;
|
|
2221
|
+
quote: string;
|
|
2222
|
+
symbol: string;
|
|
2223
|
+
delistTime?: number;
|
|
2224
|
+
}
|
|
2225
|
+
export interface ToggleBNBBurnParams {
|
|
2226
|
+
spotBNBBurn?: 'true' | 'false';
|
|
2227
|
+
interestBNBBurn?: 'true' | 'false';
|
|
2228
|
+
}
|
|
2229
|
+
export interface BNBBurnResponse {
|
|
2230
|
+
spotBNBBurn: boolean;
|
|
2231
|
+
interestBNBBurn: boolean;
|
|
2232
|
+
}
|
|
2233
|
+
export interface QueryMarginInterestRateHistoryParams {
|
|
2234
|
+
asset: string;
|
|
2235
|
+
vipLevel?: number;
|
|
2236
|
+
startTime?: number;
|
|
2237
|
+
endTime?: number;
|
|
2238
|
+
}
|
|
2239
|
+
export interface MarginInterestRateHistory {
|
|
2240
|
+
asset: string;
|
|
2241
|
+
dailyInterestRate: string;
|
|
2242
|
+
timestamp: number;
|
|
2243
|
+
vipLevel: number;
|
|
2244
|
+
}
|
|
2245
|
+
export interface QueryCrossMarginFeeDataParams {
|
|
2246
|
+
vipLevel?: number;
|
|
2247
|
+
coin?: string;
|
|
2248
|
+
}
|
|
2249
|
+
export interface CrossMarginFeeData {
|
|
2250
|
+
vipLevel: number;
|
|
2251
|
+
coin: string;
|
|
2252
|
+
transferIn: boolean;
|
|
2253
|
+
borrowable: boolean;
|
|
2254
|
+
dailyInterest: string;
|
|
2255
|
+
yearlyInterest: string;
|
|
2256
|
+
borrowLimit: string;
|
|
2257
|
+
marginablePairs: string[];
|
|
2258
|
+
}
|
|
2259
|
+
export interface IsolatedMarginFeeData {
|
|
2260
|
+
vipLevel: number;
|
|
2261
|
+
symbol: string;
|
|
2262
|
+
leverage: string;
|
|
2263
|
+
data: {
|
|
2264
|
+
coin: string;
|
|
2265
|
+
dailyInterest: string;
|
|
2266
|
+
borrowLimit: string;
|
|
2267
|
+
}[];
|
|
2268
|
+
}
|
|
2269
|
+
export interface QueryIsolatedMarginTierDataParams {
|
|
2270
|
+
symbol: string;
|
|
2271
|
+
tier?: number;
|
|
2272
|
+
}
|
|
2273
|
+
export interface IsolatedMarginTierData {
|
|
2274
|
+
symbol: string;
|
|
2275
|
+
tier: number;
|
|
2276
|
+
effectiveMultiple: string;
|
|
2277
|
+
initialRiskRatio: string;
|
|
2278
|
+
liquidationRiskRatio: string;
|
|
2279
|
+
baseAssetMaxBorrowable: string;
|
|
2280
|
+
quoteAssetMaxBorrowable: string;
|
|
2281
|
+
}
|
|
2282
|
+
export interface GetMarginOrderCountUsageParams {
|
|
2283
|
+
isIsolated?: string;
|
|
2284
|
+
symbol?: string;
|
|
2285
|
+
}
|
|
2286
|
+
export interface MarginOrderCountUsageResponse {
|
|
2287
|
+
rateLimitType: string;
|
|
2288
|
+
interval: string;
|
|
2289
|
+
intervalNum: number;
|
|
2290
|
+
limit: number;
|
|
2291
|
+
count: number;
|
|
2292
|
+
}
|
|
2293
|
+
export interface Collateral {
|
|
2294
|
+
minUsdValue: string;
|
|
2295
|
+
maxUsdValue?: string;
|
|
2296
|
+
discountRate: string;
|
|
2297
|
+
}
|
|
2298
|
+
export interface SmallLiabilityExchangeCoin {
|
|
2299
|
+
asset: string;
|
|
2300
|
+
interest: string;
|
|
2301
|
+
principal: string;
|
|
2302
|
+
liabilityAsset: string;
|
|
2303
|
+
liabilityQty: number;
|
|
2304
|
+
}
|
|
2305
|
+
export interface GetSmallLiabilityExchangeHistoryParams {
|
|
2306
|
+
current: number;
|
|
2307
|
+
size: number;
|
|
2308
|
+
startTime?: number;
|
|
2309
|
+
endTime?: number;
|
|
2310
|
+
}
|
|
2311
|
+
export interface SmallLiabilityExchangeHistory {
|
|
2312
|
+
asset: string;
|
|
2313
|
+
amount: string;
|
|
2314
|
+
targetAsset: string;
|
|
2315
|
+
targetAmount: string;
|
|
2316
|
+
bizType: string;
|
|
2317
|
+
timestamp: number;
|
|
2318
|
+
}
|
|
2319
|
+
export interface GetNextHourlyInterestRateParams {
|
|
2320
|
+
assets: string;
|
|
2321
|
+
isIsolated: boolean;
|
|
2322
|
+
}
|
|
2323
|
+
export interface NextHourlyInterestRate {
|
|
2324
|
+
asset: string;
|
|
2325
|
+
nextHourlyInterestRate: string;
|
|
2326
|
+
}
|
|
2327
|
+
export interface GetMarginCapitalFlowParams {
|
|
2328
|
+
asset?: string;
|
|
2329
|
+
symbol?: string;
|
|
2330
|
+
type?: string;
|
|
2331
|
+
startTime?: number;
|
|
2332
|
+
endTime?: number;
|
|
2333
|
+
fromId?: number;
|
|
2334
|
+
limit?: number;
|
|
2335
|
+
}
|
|
2336
|
+
export interface MarginCapitalFlow {
|
|
2337
|
+
id: number;
|
|
2338
|
+
tranId: number;
|
|
2339
|
+
timestamp: number;
|
|
2340
|
+
asset: string;
|
|
2341
|
+
symbol: string;
|
|
2342
|
+
type: string;
|
|
2343
|
+
amount: string;
|
|
2344
|
+
}
|
|
2345
|
+
export interface MarginDelistSchedule {
|
|
2346
|
+
delistTime: number;
|
|
2347
|
+
crossMarginAssets: string[];
|
|
2348
|
+
isolatedMarginSymbols: string[];
|
|
2349
|
+
updateTime: number;
|
|
2350
|
+
}
|
|
2351
|
+
export interface MarginAvailableInventoryResponse {
|
|
2352
|
+
assets: any;
|
|
2353
|
+
updateTime: number;
|
|
2354
|
+
}
|
|
2355
|
+
export interface ManualLiquidationParams {
|
|
2356
|
+
type: string;
|
|
2357
|
+
symbol?: string;
|
|
2358
|
+
}
|
|
2359
|
+
export interface ManualLiquidationResponse {
|
|
2360
|
+
asset: string;
|
|
2361
|
+
interest: string;
|
|
2362
|
+
principal: string;
|
|
2363
|
+
liabilityAsset: string;
|
|
2364
|
+
liabilityQty: number;
|
|
2365
|
+
}
|
|
2366
|
+
export interface LeverageBracket {
|
|
2367
|
+
leverage: number;
|
|
2368
|
+
maxDebt: number;
|
|
2369
|
+
maintenanceMarginRate: number;
|
|
2370
|
+
initialMarginRate: number;
|
|
2371
|
+
fastNum: number;
|
|
2372
|
+
}
|
|
2373
|
+
export interface LiabilityCoinLeverageBracket {
|
|
2374
|
+
assetNames: string[];
|
|
2375
|
+
rank: number;
|
|
2376
|
+
brackets: LeverageBracket[];
|
|
2377
|
+
}
|
|
2378
|
+
export interface GetFlexibleSubscriptionRecordParams {
|
|
2379
|
+
productId?: string;
|
|
2380
|
+
purchaseId?: string;
|
|
2381
|
+
asset?: string;
|
|
2382
|
+
startTime?: number;
|
|
2383
|
+
endTime?: number;
|
|
2384
|
+
current?: number;
|
|
2385
|
+
size?: number;
|
|
2386
|
+
}
|
|
2387
|
+
export interface GetFlexibleSubscriptionRecordResponse {
|
|
2388
|
+
amount: string;
|
|
2389
|
+
asset: string;
|
|
2390
|
+
time: number;
|
|
2391
|
+
purchaseId: number;
|
|
2392
|
+
type: string;
|
|
2393
|
+
sourceAccount: string;
|
|
2394
|
+
amtFromSpot?: string;
|
|
2395
|
+
amtFromFunding?: string;
|
|
2396
|
+
status: string;
|
|
2397
|
+
}
|
|
2398
|
+
export interface GetLockedSubscriptionRecordParams {
|
|
2399
|
+
purchaseId?: string;
|
|
2400
|
+
asset?: string;
|
|
2401
|
+
startTime?: number;
|
|
2402
|
+
endTime?: number;
|
|
2403
|
+
current?: number;
|
|
2404
|
+
size?: number;
|
|
2405
|
+
}
|
|
2406
|
+
export interface LockedSubscriptionRecord {
|
|
2407
|
+
positionId: string;
|
|
2408
|
+
purchaseId: number;
|
|
2409
|
+
time: number;
|
|
2410
|
+
asset: string;
|
|
2411
|
+
amount: string;
|
|
2412
|
+
lockPeriod: string;
|
|
2413
|
+
type: string;
|
|
2414
|
+
sourceAccount: string;
|
|
2415
|
+
amtFromSpot?: string;
|
|
2416
|
+
amtFromFunding?: string;
|
|
2417
|
+
status: string;
|
|
2418
|
+
}
|
|
2419
|
+
export interface GetFlexibleRedemptionRecordParams {
|
|
2420
|
+
productId?: string;
|
|
2421
|
+
redeemId?: string;
|
|
2422
|
+
asset?: string;
|
|
2423
|
+
startTime?: number;
|
|
2424
|
+
endTime?: number;
|
|
2425
|
+
current?: number;
|
|
2426
|
+
size?: number;
|
|
2427
|
+
}
|
|
2428
|
+
export interface FlexibleRedemptionRecord {
|
|
2429
|
+
amount: string;
|
|
2430
|
+
asset: string;
|
|
2431
|
+
time: number;
|
|
2432
|
+
productId: string;
|
|
2433
|
+
redeemId: number;
|
|
2434
|
+
destAccount: string;
|
|
2435
|
+
status: string;
|
|
2436
|
+
}
|
|
2437
|
+
export interface GetLockedRedemptionRecordParams {
|
|
2438
|
+
positionId?: string;
|
|
2439
|
+
redeemId?: string;
|
|
2440
|
+
asset?: string;
|
|
2441
|
+
startTime?: number;
|
|
2442
|
+
endTime?: number;
|
|
2443
|
+
current?: number;
|
|
2444
|
+
size?: number;
|
|
2445
|
+
}
|
|
2446
|
+
export interface LockedRedemptionRecord {
|
|
2447
|
+
positionId: string;
|
|
2448
|
+
redeemId: number;
|
|
2449
|
+
time: number;
|
|
2450
|
+
asset: string;
|
|
2451
|
+
lockPeriod: string;
|
|
2452
|
+
amount: string;
|
|
2453
|
+
type: string;
|
|
2454
|
+
deliverDate: string;
|
|
2455
|
+
status: string;
|
|
2456
|
+
}
|
|
2457
|
+
export interface GetFlexibleRewardsHistoryParams {
|
|
2458
|
+
productId?: string;
|
|
2459
|
+
asset?: string;
|
|
2460
|
+
startTime?: number;
|
|
2461
|
+
endTime?: number;
|
|
2462
|
+
type: 'BONUS' | 'REALTIME' | 'REWARDS';
|
|
2463
|
+
current?: number;
|
|
2464
|
+
size?: number;
|
|
2465
|
+
}
|
|
2466
|
+
export interface FlexibleRewardsHistory {
|
|
2467
|
+
asset: string;
|
|
2468
|
+
rewards: string;
|
|
2469
|
+
projectId: string;
|
|
2470
|
+
type: string;
|
|
2471
|
+
time: number;
|
|
2472
|
+
}
|
|
2473
|
+
export interface GetLockedRewardsHistoryParams {
|
|
2474
|
+
positionId?: string;
|
|
2475
|
+
asset?: string;
|
|
2476
|
+
startTime?: number;
|
|
2477
|
+
endTime?: number;
|
|
2478
|
+
current?: number;
|
|
2479
|
+
size?: number;
|
|
2480
|
+
}
|
|
2481
|
+
export interface GetLockedRewardsHistory {
|
|
2482
|
+
positionId: string;
|
|
2483
|
+
time: number;
|
|
2484
|
+
asset: string;
|
|
2485
|
+
lockPeriod: string;
|
|
2486
|
+
amount: string;
|
|
2487
|
+
}
|
|
2488
|
+
export interface SetAutoSubscribeParams {
|
|
2489
|
+
productId: string;
|
|
2490
|
+
autoSubscribe: boolean;
|
|
2491
|
+
}
|
|
2492
|
+
export interface GetFlexibleSubscriptionPreviewParams {
|
|
2493
|
+
productId: string;
|
|
2494
|
+
amount: number;
|
|
2495
|
+
}
|
|
2496
|
+
export interface FlexibleSubscriptionPreview {
|
|
2497
|
+
totalAmount: string;
|
|
2498
|
+
rewardAsset: string;
|
|
2499
|
+
airDropAsset: string;
|
|
2500
|
+
estDailyBonusRewards: string;
|
|
2501
|
+
estDailyRealTimeRewards: string;
|
|
2502
|
+
estDailyAirdropRewards: string;
|
|
2503
|
+
}
|
|
2504
|
+
export interface GetLockedSubscriptionPreviewParams {
|
|
2505
|
+
projectId: string;
|
|
2506
|
+
amount: number;
|
|
2507
|
+
autoSubscribe?: boolean;
|
|
2508
|
+
}
|
|
2509
|
+
export interface LockedSubscriptionPreview {
|
|
2510
|
+
rewardAsset: string;
|
|
2511
|
+
totalRewardAmt: string;
|
|
2512
|
+
extraRewardAsset: string;
|
|
2513
|
+
estTotalExtraRewardAmt: string;
|
|
2514
|
+
nextPay: string;
|
|
2515
|
+
nextPayDate: string;
|
|
2516
|
+
valueDate: string;
|
|
2517
|
+
rewardsEndDate: string;
|
|
2518
|
+
deliverDate: string;
|
|
2519
|
+
nextSubscriptionDate: string;
|
|
2520
|
+
}
|
|
2521
|
+
export interface GetRateHistoryParams {
|
|
2522
|
+
productId: string;
|
|
2523
|
+
startTime?: number;
|
|
2524
|
+
endTime?: number;
|
|
2525
|
+
current?: number;
|
|
2526
|
+
size?: number;
|
|
2527
|
+
}
|
|
2528
|
+
export interface GetRateHistory {
|
|
2529
|
+
productId: string;
|
|
2530
|
+
asset: string;
|
|
2531
|
+
annualPercentageRate: string;
|
|
2532
|
+
time: number;
|
|
2533
|
+
}
|
|
2534
|
+
export interface GetCollateralRecordParams {
|
|
2535
|
+
productId?: string;
|
|
2536
|
+
startTime?: number;
|
|
2537
|
+
endTime?: number;
|
|
2538
|
+
current?: number;
|
|
2539
|
+
size?: number;
|
|
2540
|
+
}
|
|
2541
|
+
export interface CollateralRecord {
|
|
2542
|
+
amount: string;
|
|
2543
|
+
productId: string;
|
|
2544
|
+
asset: string;
|
|
2545
|
+
createTime: number;
|
|
2546
|
+
type: string;
|
|
2547
|
+
productName: string;
|
|
2548
|
+
orderId: number;
|
|
2549
|
+
}
|
|
2550
|
+
export interface GetDualInvestmentProductListParams {
|
|
2551
|
+
optionType: string;
|
|
2552
|
+
exercisedCoin: string;
|
|
2553
|
+
investCoin: string;
|
|
2554
|
+
pageSize?: number;
|
|
2555
|
+
pageIndex?: number;
|
|
2556
|
+
}
|
|
2557
|
+
export interface DualInvestmentProduct {
|
|
2558
|
+
id: string;
|
|
2559
|
+
investCoin: string;
|
|
2560
|
+
exercisedCoin: string;
|
|
2561
|
+
strikePrice: string;
|
|
2562
|
+
duration: number;
|
|
2563
|
+
settleDate: number;
|
|
2564
|
+
purchaseDecimal: number;
|
|
2565
|
+
purchaseEndTime: number;
|
|
2566
|
+
canPurchase: boolean;
|
|
2567
|
+
apr: string;
|
|
2568
|
+
orderId: number;
|
|
2569
|
+
minAmount: string;
|
|
2570
|
+
maxAmount: string;
|
|
2571
|
+
createTimestamp: number;
|
|
2572
|
+
optionType: string;
|
|
2573
|
+
isAutoCompoundEnable: boolean;
|
|
2574
|
+
autoCompoundPlanList: string[];
|
|
2575
|
+
}
|
|
2576
|
+
export interface SubscribeDualInvestmentProductParams {
|
|
2577
|
+
id: string;
|
|
2578
|
+
orderId: string;
|
|
2579
|
+
depositAmount: number;
|
|
2580
|
+
autoCompoundPlan: 'NONE' | 'STANDARD' | 'ADVANCED';
|
|
2581
|
+
}
|
|
2582
|
+
export interface SubscribeDualInvestmentProductResponse {
|
|
2583
|
+
positionId: number;
|
|
2584
|
+
investCoin: string;
|
|
2585
|
+
exercisedCoin: string;
|
|
2586
|
+
subscriptionAmount: string;
|
|
2587
|
+
duration: number;
|
|
2588
|
+
autoCompoundPlan?: 'STANDARD' | 'ADVANCED';
|
|
2589
|
+
strikePrice: string;
|
|
2590
|
+
settleDate: number;
|
|
2591
|
+
purchaseStatus: string;
|
|
2592
|
+
apr: string;
|
|
2593
|
+
orderId: number;
|
|
2594
|
+
purchaseTime: number;
|
|
2595
|
+
optionType: string;
|
|
2596
|
+
}
|
|
2597
|
+
export interface GetDualInvestmentPositionsParams {
|
|
2598
|
+
status?: 'PENDING' | 'PURCHASE_SUCCESS' | 'SETTLED' | 'PURCHASE_FAIL' | 'REFUNDING' | 'REFUND_SUCCESS' | 'SETTLING';
|
|
2599
|
+
pageSize?: number;
|
|
2600
|
+
pageIndex?: number;
|
|
2601
|
+
}
|
|
2602
|
+
export interface DualInvestmentPosition {
|
|
2603
|
+
id: string;
|
|
2604
|
+
investCoin: string;
|
|
2605
|
+
exercisedCoin: string;
|
|
2606
|
+
subscriptionAmount: string;
|
|
2607
|
+
strikePrice: string;
|
|
2608
|
+
duration: number;
|
|
2609
|
+
settleDate: number;
|
|
2610
|
+
purchaseStatus: string;
|
|
2611
|
+
apr: string;
|
|
2612
|
+
orderId: number;
|
|
2613
|
+
purchaseEndTime: number;
|
|
2614
|
+
optionType: string;
|
|
2615
|
+
autoCompoundPlan: 'STANDARD' | 'ADVANCED' | 'NONE';
|
|
2616
|
+
}
|
|
2617
|
+
export interface CheckDualInvestmentAccountsResponse {
|
|
2618
|
+
totalAmountInBTC: string;
|
|
2619
|
+
totalAmountInUSDT: string;
|
|
2620
|
+
}
|
|
2621
|
+
export interface ChangeAutoCompoundStatusParams {
|
|
2622
|
+
positionId: string;
|
|
2623
|
+
autoCompoundPlan: 'NONE' | 'STANDARD' | 'ADVANCED';
|
|
2624
|
+
}
|
|
2625
|
+
export interface ChangeAutoCompoundStatusResponse {
|
|
2626
|
+
positionId: string;
|
|
2627
|
+
autoCompoundPlan: 'NONE' | 'STANDARD' | 'ADVANCED';
|
|
2628
|
+
}
|
|
2629
|
+
export interface GetTargetAssetListParams {
|
|
2630
|
+
targetAsset?: string;
|
|
2631
|
+
size?: number;
|
|
2632
|
+
current?: number;
|
|
2633
|
+
}
|
|
2634
|
+
export interface RoiAndDimensionType {
|
|
2635
|
+
simulateRoi: string;
|
|
2636
|
+
dimensionValue: string;
|
|
2637
|
+
dimensionUnit: string;
|
|
2638
|
+
}
|
|
2639
|
+
export interface AutoInvestAsset {
|
|
2640
|
+
targetAsset: string;
|
|
2641
|
+
roiAndDimensionTypeList: RoiAndDimensionType[];
|
|
2642
|
+
}
|
|
2643
|
+
export interface GetTargetAssetListResponse {
|
|
2644
|
+
targetAssets: string[];
|
|
2645
|
+
autoInvestAssetList: AutoInvestAsset[];
|
|
2646
|
+
}
|
|
2647
|
+
export interface GetTargetAssetROIParams {
|
|
2648
|
+
targetAsset: string;
|
|
2649
|
+
hisRoiType: 'FIVE_YEAR' | 'THREE_YEAR' | 'ONE_YEAR' | 'SIX_MONTH' | 'THREE_MONTH' | 'SEVEN_DAY';
|
|
2650
|
+
}
|
|
2651
|
+
export interface TargetAssetROI {
|
|
2652
|
+
date: string;
|
|
2653
|
+
simulateRoi: string;
|
|
2654
|
+
}
|
|
2655
|
+
export interface GetSourceAssetListParams {
|
|
2656
|
+
targetAsset?: string[];
|
|
2657
|
+
indexId?: number;
|
|
2658
|
+
usageType: 'RECURRING' | 'ONE_TIME';
|
|
2659
|
+
flexibleAllowedToUse?: boolean;
|
|
2660
|
+
sourceType?: 'MAIN_SITE' | 'TR';
|
|
2661
|
+
}
|
|
2662
|
+
export interface SourceAsset {
|
|
2663
|
+
sourceAsset: string;
|
|
2664
|
+
assetMinAmount: string;
|
|
2665
|
+
assetMaxAmount: string;
|
|
2666
|
+
scale: string;
|
|
2667
|
+
flexibleAmount: string;
|
|
2668
|
+
}
|
|
2669
|
+
export interface GetSourceAssetListResponse {
|
|
2670
|
+
feeRate: string;
|
|
2671
|
+
taxRate: string;
|
|
2672
|
+
sourceAssets: SourceAsset[];
|
|
2673
|
+
}
|
|
2674
|
+
export interface AutoInvestPortfolioDetail {
|
|
2675
|
+
targetAsset: string;
|
|
2676
|
+
percentage: number;
|
|
2677
|
+
}
|
|
2678
|
+
export interface CreateInvestmentPlanParams {
|
|
2679
|
+
sourceType: 'MAIN_SITE' | 'TR';
|
|
2680
|
+
requestId?: string;
|
|
2681
|
+
planType: 'SINGLE' | 'PORTFOLIO' | 'INDEX';
|
|
2682
|
+
indexId?: number;
|
|
2683
|
+
subscriptionAmount: number;
|
|
2684
|
+
subscriptionCycle: 'H1' | 'H4' | 'H8' | 'H12' | 'WEEKLY' | 'DAILY' | 'MONTHLY' | 'BI_WEEKLY';
|
|
2685
|
+
subscriptionStartDay?: number;
|
|
2686
|
+
subscriptionStartWeekday?: 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
|
|
2687
|
+
subscriptionStartTime: number;
|
|
2688
|
+
sourceAsset: string;
|
|
2689
|
+
flexibleAllowedToUse?: boolean;
|
|
2690
|
+
details: AutoInvestPortfolioDetail[];
|
|
2691
|
+
}
|
|
2692
|
+
export interface CreateInvestmentPlanResponse {
|
|
2693
|
+
planId: number;
|
|
2694
|
+
nextExecutionDateTime: number;
|
|
2695
|
+
}
|
|
2696
|
+
export interface EditInvestmentPlanParams {
|
|
2697
|
+
planId: number;
|
|
2698
|
+
subscriptionAmount: number;
|
|
2699
|
+
subscriptionCycle: 'H1' | 'H4' | 'H8' | 'H12' | 'WEEKLY' | 'DAILY' | 'MONTHLY' | 'BI_WEEKLY';
|
|
2700
|
+
subscriptionStartDay?: number;
|
|
2701
|
+
subscriptionStartWeekday?: 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
|
|
2702
|
+
subscriptionStartTime: number;
|
|
2703
|
+
sourceAsset: string;
|
|
2704
|
+
flexibleAllowedToUse?: boolean;
|
|
2705
|
+
details: AutoInvestPortfolioDetail[];
|
|
2706
|
+
}
|
|
2707
|
+
export interface EditInvestmentPlanResponse {
|
|
2708
|
+
planId: number;
|
|
2709
|
+
nextExecutionDateTime: number;
|
|
2710
|
+
}
|
|
2711
|
+
export interface ChangePlanStatusParams {
|
|
2712
|
+
planId: number;
|
|
2713
|
+
status: 'ONGOING' | 'PAUSED' | 'REMOVED';
|
|
2714
|
+
}
|
|
2715
|
+
export interface ChangePlanStatusResponse {
|
|
2716
|
+
planId: number;
|
|
2717
|
+
nextExecutionDateTime: number;
|
|
2718
|
+
status: 'ONGOING' | 'PAUSED' | 'REMOVED';
|
|
2719
|
+
}
|
|
2720
|
+
export interface GetPlanDetailsParams {
|
|
2721
|
+
planId?: number;
|
|
2722
|
+
requestId?: string;
|
|
2723
|
+
}
|
|
2724
|
+
export interface GetSubscriptionTransactionHistoryParams {
|
|
2725
|
+
planId?: number;
|
|
2726
|
+
startTime?: number;
|
|
2727
|
+
endTime?: number;
|
|
2728
|
+
targetAsset?: string;
|
|
2729
|
+
planType?: 'SINGLE' | 'PORTFOLIO' | 'INDEX' | 'ALL';
|
|
2730
|
+
size?: number;
|
|
2731
|
+
current?: number;
|
|
2732
|
+
}
|
|
2733
|
+
export interface AssetAllocation {
|
|
2734
|
+
targetAsset: string;
|
|
2735
|
+
allocation: string;
|
|
2736
|
+
}
|
|
2737
|
+
export interface GetIndexDetailsResponse {
|
|
2738
|
+
indexId: number;
|
|
2739
|
+
indexName: string;
|
|
2740
|
+
status: 'RUNNING' | 'REBALANCING' | 'PAUSED';
|
|
2741
|
+
assetAllocation: AssetAllocation[];
|
|
2742
|
+
}
|
|
2743
|
+
export interface IndexLinkedPlanDetail {
|
|
2744
|
+
targetAsset: string;
|
|
2745
|
+
averagePriceInUSD: string;
|
|
2746
|
+
totalInvestedInUSD: string;
|
|
2747
|
+
currentInvestedInUSD: string;
|
|
2748
|
+
purchasedAmount: string;
|
|
2749
|
+
pnlInUSD: string;
|
|
2750
|
+
roi: string;
|
|
2751
|
+
percentage: string;
|
|
2752
|
+
availableAmount: string;
|
|
2753
|
+
redeemedAmount: string;
|
|
2754
|
+
assetValueInUSD: string;
|
|
2755
|
+
}
|
|
2756
|
+
export interface GetIndexLinkedPlanPositionDetailsResponse {
|
|
2757
|
+
indexId: number;
|
|
2758
|
+
totalInvestedInUSD: string;
|
|
2759
|
+
currentInvestedInUSD: string;
|
|
2760
|
+
pnlInUSD: string;
|
|
2761
|
+
roi: string;
|
|
2762
|
+
assetAllocation: {
|
|
2763
|
+
targetAsset: string;
|
|
2764
|
+
allocation: string;
|
|
2765
|
+
}[];
|
|
2766
|
+
details: IndexLinkedPlanDetail[];
|
|
2767
|
+
}
|
|
2768
|
+
export interface SubmitOneTimeTransactionParams {
|
|
2769
|
+
sourceType: 'MAIN_SITE' | 'TR';
|
|
2770
|
+
requestId?: string;
|
|
2771
|
+
subscriptionAmount: string;
|
|
2772
|
+
sourceAsset: string;
|
|
2773
|
+
flexibleAllowedToUse?: boolean;
|
|
2774
|
+
planId?: number;
|
|
2775
|
+
indexId?: number;
|
|
2776
|
+
details: {
|
|
2777
|
+
targetAsset: string;
|
|
2778
|
+
percentage: number;
|
|
2779
|
+
}[];
|
|
2780
|
+
}
|
|
2781
|
+
export interface SubmitOneTimeTransactionResponse {
|
|
2782
|
+
transactionId: number;
|
|
2783
|
+
waitSecond: number;
|
|
2784
|
+
}
|
|
2785
|
+
export interface GetOneTimeTransactionStatusParams {
|
|
2786
|
+
transactionId: number;
|
|
2787
|
+
requestId?: string;
|
|
2788
|
+
}
|
|
2789
|
+
export interface GetOneTimeTransactionStatusResponse {
|
|
2790
|
+
transactionId: number;
|
|
2791
|
+
status: 'SUCCESS' | 'CONVERTING';
|
|
2792
|
+
}
|
|
2793
|
+
export interface SubmitIndexLinkedPlanRedemptionParams {
|
|
2794
|
+
indexId: number;
|
|
2795
|
+
requestId?: string;
|
|
2796
|
+
redemptionPercentage: number;
|
|
2797
|
+
}
|
|
2798
|
+
export interface GetIndexLinkedPlanRedemptionHistoryParams {
|
|
2799
|
+
requestId: number;
|
|
2800
|
+
startTime?: number;
|
|
2801
|
+
endTime?: number;
|
|
2802
|
+
current?: number;
|
|
2803
|
+
asset?: string;
|
|
2804
|
+
size?: number;
|
|
2805
|
+
}
|
|
2806
|
+
export interface IndexLinkedPlanRedemptionRecord {
|
|
2807
|
+
indexId: number;
|
|
2808
|
+
indexName: string;
|
|
2809
|
+
redemptionId: number;
|
|
2810
|
+
status: 'SUCCESS' | 'FAILED';
|
|
2811
|
+
asset: string;
|
|
2812
|
+
amount: string;
|
|
2813
|
+
redemptionDateTime: number;
|
|
2814
|
+
transactionFee: string;
|
|
2815
|
+
transactionFeeUnit: string;
|
|
2816
|
+
}
|
|
2817
|
+
export interface GetIndexLinkedPlanRebalanceHistoryParams {
|
|
2818
|
+
startTime?: number;
|
|
2819
|
+
endTime?: number;
|
|
2820
|
+
current?: number;
|
|
2821
|
+
size?: number;
|
|
2822
|
+
}
|
|
2823
|
+
export interface RebalanceTransactionDetail {
|
|
2824
|
+
asset: string;
|
|
2825
|
+
transactionDateTime: number;
|
|
2826
|
+
rebalanceDirection: 'BUY' | 'SELL';
|
|
2827
|
+
rebalanceAmount: string;
|
|
2828
|
+
}
|
|
2829
|
+
export interface IndexLinkedPlanRebalanceRecord {
|
|
2830
|
+
indexId: number;
|
|
2831
|
+
indexName: string;
|
|
2832
|
+
rebalanceId: number;
|
|
2833
|
+
status: 'SUCCESS' | 'INIT';
|
|
2834
|
+
rebalanceFee: string;
|
|
2835
|
+
rebalanceFeeUnit: string;
|
|
2836
|
+
transactionDetails: RebalanceTransactionDetail[];
|
|
2837
|
+
}
|
|
2838
|
+
export interface SubscribeEthStakingV2Response {
|
|
2839
|
+
success: boolean;
|
|
2840
|
+
wbethAmount: string;
|
|
2841
|
+
conversionRatio: string;
|
|
2842
|
+
}
|
|
2843
|
+
export interface RedeemEthParams {
|
|
2844
|
+
asset?: string;
|
|
2845
|
+
amount: number;
|
|
2846
|
+
}
|
|
2847
|
+
export interface RedeemEthResponse {
|
|
2848
|
+
success: boolean;
|
|
2849
|
+
arrivalTime: number;
|
|
2850
|
+
ethAmount: string;
|
|
2851
|
+
conversionRatio: string;
|
|
2852
|
+
}
|
|
2853
|
+
export interface GetEthStakingHistoryParams {
|
|
2854
|
+
startTime?: number;
|
|
2855
|
+
endTime?: number;
|
|
2856
|
+
current?: number;
|
|
2857
|
+
size?: number;
|
|
2858
|
+
}
|
|
2859
|
+
export interface EthStakingHistory {
|
|
2860
|
+
time: number;
|
|
2861
|
+
asset: string;
|
|
2862
|
+
amount: string;
|
|
2863
|
+
status: 'PENDING' | 'SUCCESS' | 'FAILED';
|
|
2864
|
+
distributeAmount: string;
|
|
2865
|
+
conversionRatio: string;
|
|
2866
|
+
}
|
|
2867
|
+
export interface GetEthRedemptionHistoryParams {
|
|
2868
|
+
startTime?: number;
|
|
2869
|
+
endTime?: number;
|
|
2870
|
+
current?: number;
|
|
2871
|
+
size?: number;
|
|
2872
|
+
}
|
|
2873
|
+
export interface EthRedemptionHistory {
|
|
2874
|
+
time: number;
|
|
2875
|
+
arrivalTime: number;
|
|
2876
|
+
asset: string;
|
|
2877
|
+
amount: string;
|
|
2878
|
+
status: 'PENDING' | 'SUCCESS' | 'FAILED';
|
|
2879
|
+
distributeAsset: string;
|
|
2880
|
+
distributeAmount: string;
|
|
2881
|
+
conversionRatio: string;
|
|
2882
|
+
}
|
|
2883
|
+
export interface GetBethRewardsHistoryParams {
|
|
2884
|
+
startTime?: number;
|
|
2885
|
+
endTime?: number;
|
|
2886
|
+
current?: number;
|
|
2887
|
+
size?: number;
|
|
2888
|
+
}
|
|
2889
|
+
export interface BethRewardsHistory {
|
|
2890
|
+
time: number;
|
|
2891
|
+
asset: string;
|
|
2892
|
+
holding: string;
|
|
2893
|
+
amount: string;
|
|
2894
|
+
annualPercentageRate: string;
|
|
2895
|
+
status: 'PENDING' | 'SUCCESS' | 'FAILED';
|
|
2896
|
+
}
|
|
2897
|
+
export interface GetEthStakingQuotaResponse {
|
|
2898
|
+
leftStakingPersonalQuota: string;
|
|
2899
|
+
leftRedemptionPersonalQuota: string;
|
|
2900
|
+
}
|
|
2901
|
+
export interface GetETHRateHistoryParams {
|
|
2902
|
+
startTime?: number;
|
|
2903
|
+
endTime?: number;
|
|
2904
|
+
current?: number;
|
|
2905
|
+
size?: number;
|
|
2906
|
+
}
|
|
2907
|
+
export interface ETHRateHistory {
|
|
2908
|
+
annualPercentageRate: string;
|
|
2909
|
+
exchangeRate: string;
|
|
2910
|
+
time: number;
|
|
2911
|
+
}
|
|
2912
|
+
export interface GetEthStakingAccountResponse {
|
|
2913
|
+
cumulativeProfitInBETH: string;
|
|
2914
|
+
lastDayProfitInBETH: string;
|
|
2915
|
+
}
|
|
2916
|
+
export interface GetEthStakingAccountV2Response {
|
|
2917
|
+
holdingInETH: string;
|
|
2918
|
+
holdings: {
|
|
2919
|
+
wbethAmount: string;
|
|
2920
|
+
bethAmount: string;
|
|
2921
|
+
};
|
|
2922
|
+
thirtyDaysProfitInETH: string;
|
|
2923
|
+
profit: {
|
|
2924
|
+
amountFromWBETH: string;
|
|
2925
|
+
amountFromBETH: string;
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
export interface WrapBethResponse {
|
|
2929
|
+
success: boolean;
|
|
2930
|
+
wbethAmount: string;
|
|
2931
|
+
exchangeRate: string;
|
|
2932
|
+
}
|
|
2933
|
+
export interface GetWrapHistoryParams {
|
|
2934
|
+
startTime?: number;
|
|
2935
|
+
endTime?: number;
|
|
2936
|
+
current?: number;
|
|
2937
|
+
size?: number;
|
|
2938
|
+
}
|
|
2939
|
+
export interface WrapHistory {
|
|
2940
|
+
time: number;
|
|
2941
|
+
fromAsset: string;
|
|
2942
|
+
fromAmount: string;
|
|
2943
|
+
toAsset: string;
|
|
2944
|
+
toAmount: string;
|
|
2945
|
+
exchangeRate: string;
|
|
2946
|
+
status: 'PENDING' | 'SUCCESS' | 'FAILED';
|
|
2947
|
+
}
|
|
2948
|
+
export interface WbethRewardsHistory {
|
|
2949
|
+
time: number;
|
|
2950
|
+
amountInETH: string;
|
|
2951
|
+
holding: string;
|
|
2952
|
+
holdingInETH: string;
|
|
2953
|
+
annualPercentageRate: string;
|
|
2954
|
+
}
|
|
2955
|
+
export interface GetWbethRewardsHistoryResponse {
|
|
2956
|
+
estRewardsInETH: string;
|
|
2957
|
+
rows: WbethRewardsHistory[];
|
|
2958
|
+
total: number;
|
|
2959
|
+
}
|
|
2960
|
+
export interface GetMiningAlgoListResponse {
|
|
2961
|
+
algoName: string;
|
|
2962
|
+
algoId: number;
|
|
2963
|
+
poolIndex: number;
|
|
2964
|
+
unit: string;
|
|
2965
|
+
}
|
|
2966
|
+
export interface GetMiningCoinListResponse {
|
|
2967
|
+
coinName: string;
|
|
2968
|
+
coinId: number;
|
|
2969
|
+
poolIndex: number;
|
|
2970
|
+
unit: string;
|
|
2971
|
+
}
|
|
2972
|
+
export interface GetMinerDetailsParams {
|
|
2973
|
+
algo: string;
|
|
2974
|
+
userName: string;
|
|
2975
|
+
workerName: string;
|
|
2976
|
+
}
|
|
2977
|
+
export interface HashrateData {
|
|
2978
|
+
time: number;
|
|
2979
|
+
hashrate: string;
|
|
2980
|
+
reject: number;
|
|
2981
|
+
}
|
|
2982
|
+
export interface MinerDetail {
|
|
2983
|
+
workerName: string;
|
|
2984
|
+
type: string;
|
|
2985
|
+
hashrateDatas: HashrateData[];
|
|
2986
|
+
}
|
|
2987
|
+
export interface GetMinerDetailsResponse {
|
|
2988
|
+
code: number;
|
|
2989
|
+
msg: string;
|
|
2990
|
+
data: MinerDetail[];
|
|
2991
|
+
}
|
|
2992
|
+
export interface GetMinerListParams {
|
|
2993
|
+
algo: string;
|
|
2994
|
+
userName: string;
|
|
2995
|
+
pageIndex?: number;
|
|
2996
|
+
sort?: number;
|
|
2997
|
+
sortColumn?: number;
|
|
2998
|
+
workerStatus?: number;
|
|
2999
|
+
}
|
|
3000
|
+
export interface WorkerData {
|
|
3001
|
+
workerId: string;
|
|
3002
|
+
workerName: string;
|
|
3003
|
+
status: number;
|
|
3004
|
+
hashRate: number;
|
|
3005
|
+
dayHashRate: number;
|
|
3006
|
+
rejectRate: number;
|
|
3007
|
+
lastShareTime: number;
|
|
3008
|
+
}
|
|
3009
|
+
export interface GetMinerListResponse {
|
|
3010
|
+
code: number;
|
|
3011
|
+
msg: string;
|
|
3012
|
+
data: {
|
|
3013
|
+
workerDatas: WorkerData[];
|
|
3014
|
+
totalNum: number;
|
|
3015
|
+
pageSize: number;
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
export interface GetEarningsListParams {
|
|
3019
|
+
algo: string;
|
|
3020
|
+
userName: string;
|
|
3021
|
+
coin?: string;
|
|
3022
|
+
startDate?: number;
|
|
3023
|
+
endDate?: number;
|
|
3024
|
+
pageIndex?: number;
|
|
3025
|
+
pageSize?: number;
|
|
3026
|
+
}
|
|
3027
|
+
export interface AccountEarningsProfit {
|
|
3028
|
+
time: number;
|
|
3029
|
+
type: number;
|
|
3030
|
+
hashTransfer: number | null;
|
|
3031
|
+
transferAmount: number | null;
|
|
3032
|
+
dayHashRate: number;
|
|
3033
|
+
profitAmount: number;
|
|
3034
|
+
coinName: string;
|
|
3035
|
+
status: number;
|
|
3036
|
+
}
|
|
3037
|
+
export interface GetEarningsListResponse {
|
|
3038
|
+
code: number;
|
|
3039
|
+
msg: string;
|
|
3040
|
+
data: {
|
|
3041
|
+
accountProfits: AccountEarningsProfit[];
|
|
3042
|
+
totalNum: number;
|
|
3043
|
+
pageSize: number;
|
|
3044
|
+
};
|
|
3045
|
+
}
|
|
3046
|
+
export interface GetExtraBonusListParams {
|
|
3047
|
+
algo: string;
|
|
3048
|
+
userName: string;
|
|
3049
|
+
coin?: string;
|
|
3050
|
+
startDate?: number;
|
|
3051
|
+
endDate?: number;
|
|
3052
|
+
pageIndex?: number;
|
|
3053
|
+
pageSize?: number;
|
|
3054
|
+
}
|
|
3055
|
+
export interface OtherProfit {
|
|
3056
|
+
time: number;
|
|
3057
|
+
coinName: string;
|
|
3058
|
+
type: number;
|
|
3059
|
+
profitAmount: number;
|
|
3060
|
+
status: number;
|
|
3061
|
+
}
|
|
3062
|
+
export interface GetExtraBonusListResponse {
|
|
3063
|
+
code: number;
|
|
3064
|
+
msg: string;
|
|
3065
|
+
data: {
|
|
3066
|
+
otherProfits: OtherProfit[];
|
|
3067
|
+
totalNum: number;
|
|
3068
|
+
pageSize: number;
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3071
|
+
export interface GetHashrateResaleListParams {
|
|
3072
|
+
pageIndex?: number;
|
|
3073
|
+
pageSize?: number;
|
|
3074
|
+
}
|
|
3075
|
+
export interface ConfigDetail {
|
|
3076
|
+
configId: number;
|
|
3077
|
+
poolUsername: string;
|
|
3078
|
+
toPoolUsername: string;
|
|
3079
|
+
algoName: string;
|
|
3080
|
+
hashRate: number;
|
|
3081
|
+
startDay: number;
|
|
3082
|
+
endDay: number;
|
|
3083
|
+
status: number;
|
|
3084
|
+
}
|
|
3085
|
+
export interface GetHashrateResaleListResponse {
|
|
3086
|
+
code: number;
|
|
3087
|
+
msg: string;
|
|
3088
|
+
data: {
|
|
3089
|
+
configDetails: ConfigDetail[];
|
|
3090
|
+
totalNum: number;
|
|
3091
|
+
pageSize: number;
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
export interface GetHashrateResaleDetailParams {
|
|
3095
|
+
configId: number;
|
|
3096
|
+
userName: string;
|
|
3097
|
+
pageIndex?: number;
|
|
3098
|
+
pageSize?: number;
|
|
3099
|
+
}
|
|
3100
|
+
export interface ProfitTransferDetail {
|
|
3101
|
+
poolUsername: string;
|
|
3102
|
+
toPoolUsername: string;
|
|
3103
|
+
algoName: string;
|
|
3104
|
+
hashRate: number;
|
|
3105
|
+
day: number;
|
|
3106
|
+
amount: number;
|
|
3107
|
+
coinName: string;
|
|
3108
|
+
}
|
|
3109
|
+
export interface GetHashrateResaleDetailResponse {
|
|
3110
|
+
code: number;
|
|
3111
|
+
msg: string;
|
|
3112
|
+
data: {
|
|
3113
|
+
profitTransferDetails: ProfitTransferDetail[];
|
|
3114
|
+
totalNum: number;
|
|
3115
|
+
pageSize: number;
|
|
3116
|
+
};
|
|
3117
|
+
}
|
|
3118
|
+
export interface SubmitHashrateResaleParams {
|
|
3119
|
+
userName: string;
|
|
3120
|
+
algo: string;
|
|
3121
|
+
endDate: number;
|
|
3122
|
+
startDate: number;
|
|
3123
|
+
toPoolUser: string;
|
|
3124
|
+
hashRate: number;
|
|
3125
|
+
}
|
|
3126
|
+
export interface CancelHashrateResaleConfigParams {
|
|
3127
|
+
configId: number;
|
|
3128
|
+
userName: string;
|
|
3129
|
+
}
|
|
3130
|
+
export interface GetStatisticListParams {
|
|
3131
|
+
algo: string;
|
|
3132
|
+
userName: string;
|
|
3133
|
+
}
|
|
3134
|
+
export interface Profit {
|
|
3135
|
+
BTC: string;
|
|
3136
|
+
BSV: string;
|
|
3137
|
+
BCH: string;
|
|
3138
|
+
}
|
|
3139
|
+
export interface GetStatisticListResponse {
|
|
3140
|
+
code: number;
|
|
3141
|
+
msg: string;
|
|
3142
|
+
data: {
|
|
3143
|
+
fifteenMinHashRate: string;
|
|
3144
|
+
dayHashRate: string;
|
|
3145
|
+
validNum: number;
|
|
3146
|
+
invalidNum: number;
|
|
3147
|
+
profitToday: Profit;
|
|
3148
|
+
profitYesterday: Profit;
|
|
3149
|
+
userName: string;
|
|
3150
|
+
unit: string;
|
|
3151
|
+
algo: string;
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
export interface getMiningAccountsListParams {
|
|
3155
|
+
algo: string;
|
|
3156
|
+
userName: string;
|
|
3157
|
+
}
|
|
3158
|
+
export interface MiningHashrateData {
|
|
3159
|
+
time: number;
|
|
3160
|
+
hashrate: string;
|
|
3161
|
+
reject: string;
|
|
3162
|
+
}
|
|
3163
|
+
export interface MiningAccountData {
|
|
3164
|
+
type: string;
|
|
3165
|
+
userName: string;
|
|
3166
|
+
list: MiningHashrateData[];
|
|
3167
|
+
}
|
|
3168
|
+
export interface getMiningAccountsListResponse {
|
|
3169
|
+
code: number;
|
|
3170
|
+
msg: string;
|
|
3171
|
+
data: MiningAccountData[];
|
|
3172
|
+
}
|
|
3173
|
+
export interface GetMiningAccountEarningParams {
|
|
3174
|
+
algo: string;
|
|
3175
|
+
startDate?: number;
|
|
3176
|
+
endDate?: number;
|
|
3177
|
+
pageIndex?: number;
|
|
3178
|
+
pageSize?: number;
|
|
3179
|
+
}
|
|
3180
|
+
export interface AccountMiningProfit {
|
|
3181
|
+
time: number;
|
|
3182
|
+
coinName: string;
|
|
3183
|
+
type: number;
|
|
3184
|
+
puid: number;
|
|
3185
|
+
subName: string;
|
|
3186
|
+
amount: number;
|
|
3187
|
+
}
|
|
3188
|
+
export interface GetMiningAccountEarningResponse {
|
|
3189
|
+
code: number;
|
|
3190
|
+
msg: string;
|
|
3191
|
+
data: {
|
|
3192
|
+
accountProfits: AccountMiningProfit[];
|
|
3193
|
+
totalNum: number;
|
|
3194
|
+
pageSize: number;
|
|
3195
|
+
};
|
|
3196
|
+
}
|
|
3197
|
+
export interface GetFutureTickLevelOrderbookDataLinkParams {
|
|
3198
|
+
symbol: string;
|
|
3199
|
+
dataType: 'T_DEPTH' | 'S_DEPTH';
|
|
3200
|
+
startTime: number;
|
|
3201
|
+
endTime: number;
|
|
3202
|
+
}
|
|
3203
|
+
export interface HistoricalDataLink {
|
|
3204
|
+
day: string;
|
|
3205
|
+
url: string;
|
|
3206
|
+
}
|
|
3207
|
+
export interface SubmitVpNewOrderParams {
|
|
3208
|
+
symbol: string;
|
|
3209
|
+
side: 'BUY' | 'SELL';
|
|
3210
|
+
positionSide?: 'BOTH' | 'LONG' | 'SHORT';
|
|
3211
|
+
quantity: number;
|
|
3212
|
+
urgency: 'LOW' | 'MEDIUM' | 'HIGH';
|
|
3213
|
+
clientAlgoId?: string;
|
|
3214
|
+
reduceOnly?: boolean;
|
|
3215
|
+
limitPrice?: number;
|
|
3216
|
+
}
|
|
3217
|
+
export interface SubmitVpNewOrderResponse {
|
|
3218
|
+
clientAlgoId: string;
|
|
3219
|
+
success: boolean;
|
|
3220
|
+
code: number;
|
|
3221
|
+
msg: string;
|
|
3222
|
+
}
|
|
3223
|
+
export interface SubmitTwapNewOrderParams {
|
|
3224
|
+
symbol: string;
|
|
3225
|
+
side: 'BUY' | 'SELL';
|
|
3226
|
+
positionSide?: 'BOTH' | 'LONG' | 'SHORT';
|
|
3227
|
+
quantity: number;
|
|
3228
|
+
duration: number;
|
|
3229
|
+
clientAlgoId?: string;
|
|
3230
|
+
reduceOnly?: boolean;
|
|
3231
|
+
limitPrice?: number;
|
|
3232
|
+
}
|
|
3233
|
+
export interface SubmitTwapNewOrderResponse {
|
|
3234
|
+
clientAlgoId: string;
|
|
3235
|
+
success: boolean;
|
|
3236
|
+
code: number;
|
|
3237
|
+
msg: string;
|
|
3238
|
+
}
|
|
3239
|
+
export interface CancelAlgoOrderResponse {
|
|
3240
|
+
algoId: number;
|
|
3241
|
+
success: boolean;
|
|
3242
|
+
code: number;
|
|
3243
|
+
msg: string;
|
|
3244
|
+
}
|
|
3245
|
+
export interface AlgoOrder {
|
|
3246
|
+
algoId: number;
|
|
3247
|
+
symbol: string;
|
|
3248
|
+
side: 'BUY' | 'SELL';
|
|
3249
|
+
positionSide: 'BOTH' | 'LONG' | 'SHORT';
|
|
3250
|
+
totalQty: string;
|
|
3251
|
+
executedQty: string;
|
|
3252
|
+
executedAmt: string;
|
|
3253
|
+
avgPrice: string;
|
|
3254
|
+
clientAlgoId: string;
|
|
3255
|
+
bookTime: number;
|
|
3256
|
+
endTime: number;
|
|
3257
|
+
algoStatus: string;
|
|
3258
|
+
algoType: string;
|
|
3259
|
+
urgency: string;
|
|
3260
|
+
}
|
|
3261
|
+
export interface GetAlgoHistoricalOrdersParams {
|
|
3262
|
+
symbol?: string;
|
|
3263
|
+
side?: 'BUY' | 'SELL';
|
|
3264
|
+
startTime?: number;
|
|
3265
|
+
endTime?: number;
|
|
3266
|
+
page?: number;
|
|
3267
|
+
pageSize?: number;
|
|
3268
|
+
}
|
|
3269
|
+
export interface HistoricalAlgoOrder {
|
|
3270
|
+
algoId: number;
|
|
3271
|
+
symbol: string;
|
|
3272
|
+
side: 'BUY' | 'SELL';
|
|
3273
|
+
positionSide: 'BOTH' | 'LONG' | 'SHORT';
|
|
3274
|
+
totalQty: string;
|
|
3275
|
+
executedQty: string;
|
|
3276
|
+
executedAmt: string;
|
|
3277
|
+
avgPrice: string;
|
|
3278
|
+
clientAlgoId: string;
|
|
3279
|
+
bookTime: number;
|
|
3280
|
+
endTime: number;
|
|
3281
|
+
algoStatus: string;
|
|
3282
|
+
algoType: string;
|
|
3283
|
+
urgency: string;
|
|
3284
|
+
}
|
|
3285
|
+
export interface GetAlgoSubOrdersParams {
|
|
3286
|
+
algoId: number;
|
|
3287
|
+
page?: number;
|
|
3288
|
+
pageSize?: number;
|
|
3289
|
+
}
|
|
3290
|
+
export interface SubOrder {
|
|
3291
|
+
algoId: number;
|
|
3292
|
+
orderId: number;
|
|
3293
|
+
orderStatus: string;
|
|
3294
|
+
executedQty: string;
|
|
3295
|
+
executedAmt: string;
|
|
3296
|
+
feeAmt: string;
|
|
3297
|
+
feeAsset: string;
|
|
3298
|
+
bookTime: number;
|
|
3299
|
+
avgPrice: string;
|
|
3300
|
+
side: 'BUY' | 'SELL';
|
|
3301
|
+
symbol: string;
|
|
3302
|
+
subId: number;
|
|
3303
|
+
timeInForce: string;
|
|
3304
|
+
origQty: string;
|
|
3305
|
+
}
|
|
3306
|
+
export interface GetAlgoSubOrdersResponse {
|
|
3307
|
+
total: number;
|
|
3308
|
+
executedQty: string;
|
|
3309
|
+
executedAmt: string;
|
|
3310
|
+
subOrders: SubOrder[];
|
|
3311
|
+
}
|
|
3312
|
+
export interface SubmitSpotTwapNewOrderParams {
|
|
3313
|
+
symbol: string;
|
|
3314
|
+
side: 'BUY' | 'SELL';
|
|
3315
|
+
quantity: number;
|
|
3316
|
+
duration: number;
|
|
3317
|
+
clientAlgoId?: string;
|
|
3318
|
+
limitPrice?: number;
|
|
3319
|
+
stpMode?: 'EXPIRE_TAKER' | 'EXPIRE_MAKER' | 'EXPIRE_BOTH' | 'NONE';
|
|
3320
|
+
}
|
|
3321
|
+
export interface SubmitSpotTwapNewOrderResponse {
|
|
3322
|
+
clientAlgoId: string;
|
|
3323
|
+
success: boolean;
|
|
3324
|
+
code: number;
|
|
3325
|
+
msg: string;
|
|
3326
|
+
}
|
|
3327
|
+
export interface CancelSpotAlgoOrderResponse {
|
|
3328
|
+
algoId: number;
|
|
3329
|
+
success: boolean;
|
|
3330
|
+
code: number;
|
|
3331
|
+
msg: string;
|
|
3332
|
+
}
|
|
3333
|
+
export interface SpotAlgoOrder {
|
|
3334
|
+
algoId: number;
|
|
3335
|
+
symbol: string;
|
|
3336
|
+
side: 'BUY' | 'SELL';
|
|
3337
|
+
totalQty: string;
|
|
3338
|
+
executedQty: string;
|
|
3339
|
+
executedAmt: string;
|
|
3340
|
+
avgPrice: string;
|
|
3341
|
+
clientAlgoId: string;
|
|
3342
|
+
bookTime: number;
|
|
3343
|
+
endTime: number;
|
|
3344
|
+
algoStatus: string;
|
|
3345
|
+
algoType: string;
|
|
3346
|
+
urgency: string;
|
|
3347
|
+
}
|
|
3348
|
+
export interface GetSpotAlgoHistoricalOrdersParams {
|
|
3349
|
+
symbol?: string;
|
|
3350
|
+
side?: 'BUY' | 'SELL';
|
|
3351
|
+
startTime?: number;
|
|
3352
|
+
endTime?: number;
|
|
3353
|
+
page?: number;
|
|
3354
|
+
pageSize?: number;
|
|
3355
|
+
}
|
|
3356
|
+
export interface HistoricalSpotAlgoOrder {
|
|
3357
|
+
algoId: number;
|
|
3358
|
+
symbol: string;
|
|
3359
|
+
side: 'BUY' | 'SELL';
|
|
3360
|
+
totalQty: string;
|
|
3361
|
+
executedQty: string;
|
|
3362
|
+
executedAmt: string;
|
|
3363
|
+
avgPrice: string;
|
|
3364
|
+
clientAlgoId: string;
|
|
3365
|
+
bookTime: number;
|
|
3366
|
+
endTime: number;
|
|
3367
|
+
algoStatus: string;
|
|
3368
|
+
algoType: string;
|
|
3369
|
+
urgency: string;
|
|
3370
|
+
}
|
|
3371
|
+
export interface GetSpotAlgoSubOrdersParams {
|
|
3372
|
+
algoId: number;
|
|
3373
|
+
page?: number;
|
|
3374
|
+
pageSize?: number;
|
|
3375
|
+
}
|
|
3376
|
+
export interface SpotSubOrder {
|
|
3377
|
+
algoId: number;
|
|
3378
|
+
orderId: number;
|
|
3379
|
+
orderStatus: string;
|
|
3380
|
+
executedQty: string;
|
|
3381
|
+
executedAmt: string;
|
|
3382
|
+
feeAmt: string;
|
|
3383
|
+
feeAsset: string;
|
|
3384
|
+
bookTime: number;
|
|
3385
|
+
avgPrice: string;
|
|
3386
|
+
side: 'BUY' | 'SELL';
|
|
3387
|
+
symbol: string;
|
|
3388
|
+
subId: number;
|
|
3389
|
+
timeInForce: string;
|
|
3390
|
+
origQty: string;
|
|
3391
|
+
}
|
|
3392
|
+
export interface GetSpotAlgoSubOrdersResponse {
|
|
3393
|
+
total: number;
|
|
3394
|
+
executedQty: string;
|
|
3395
|
+
executedAmt: string;
|
|
3396
|
+
subOrders: SpotSubOrder[];
|
|
3397
|
+
}
|
|
3398
|
+
export interface GetPortfolioMarginProAccountInfoResponse {
|
|
3399
|
+
uniMMR: string;
|
|
3400
|
+
accountEquity: string;
|
|
3401
|
+
actualEquity: string;
|
|
3402
|
+
accountMaintMargin: string;
|
|
3403
|
+
accountStatus: string;
|
|
3404
|
+
accountType: string;
|
|
3405
|
+
}
|
|
3406
|
+
export interface GetPortfolioMarginProCollateralRateResponse {
|
|
3407
|
+
asset: string;
|
|
3408
|
+
collateralRate: string;
|
|
3409
|
+
}
|
|
3410
|
+
export interface GetPortfolioMarginProBankruptcyLoanAmountResponse {
|
|
3411
|
+
asset: string;
|
|
3412
|
+
amount: string;
|
|
3413
|
+
}
|
|
3414
|
+
export interface GetPortfolioMarginProInterestHistoryParams {
|
|
3415
|
+
asset?: string;
|
|
3416
|
+
startTime?: number;
|
|
3417
|
+
endTime?: number;
|
|
3418
|
+
size?: number;
|
|
3419
|
+
}
|
|
3420
|
+
export interface GetPortfolioMarginProInterestHistoryResponse {
|
|
3421
|
+
asset: string;
|
|
3422
|
+
interest: string;
|
|
3423
|
+
interestAccruedTime: number;
|
|
3424
|
+
interestRate: string;
|
|
3425
|
+
principal: string;
|
|
3426
|
+
}
|
|
3427
|
+
export interface GetPortfolioMarginAssetIndexPriceResponse {
|
|
3428
|
+
asset: string;
|
|
3429
|
+
assetIndexPrice: string;
|
|
3430
|
+
time: number;
|
|
3431
|
+
}
|
|
3432
|
+
export interface BnbTransferParams {
|
|
3433
|
+
amount: number;
|
|
3434
|
+
transferSide: 'TO_UM' | 'FROM_UM';
|
|
3435
|
+
}
|
|
3436
|
+
export interface GetPortfolioMarginAssetLeverageResponse {
|
|
3437
|
+
asset: string;
|
|
3438
|
+
leverage: number;
|
|
3439
|
+
}
|
|
3440
|
+
export interface SubscribeBlvtParams {
|
|
3441
|
+
tokenName: string;
|
|
3442
|
+
cost: number;
|
|
3443
|
+
}
|
|
3444
|
+
export interface SubscribeBlvtResponse {
|
|
3445
|
+
id: number;
|
|
3446
|
+
status: 'S' | 'P' | 'F';
|
|
3447
|
+
tokenName: string;
|
|
3448
|
+
amount: string;
|
|
3449
|
+
cost: string;
|
|
3450
|
+
timestamp: number;
|
|
3451
|
+
}
|
|
3452
|
+
export interface GetBlvtSubscriptionRecordParams {
|
|
3453
|
+
tokenName?: string;
|
|
3454
|
+
id?: number;
|
|
3455
|
+
startTime?: number;
|
|
3456
|
+
endTime?: number;
|
|
3457
|
+
limit?: number;
|
|
3458
|
+
}
|
|
3459
|
+
export interface BlvtSubscriptionRecord {
|
|
3460
|
+
id: number;
|
|
3461
|
+
tokenName: string;
|
|
3462
|
+
amount: string;
|
|
3463
|
+
nav: string;
|
|
3464
|
+
fee: string;
|
|
3465
|
+
totalCharge: string;
|
|
3466
|
+
timestamp: number;
|
|
3467
|
+
}
|
|
3468
|
+
export interface RedeemBlvtParams {
|
|
3469
|
+
tokenName: string;
|
|
3470
|
+
amount: number;
|
|
3471
|
+
}
|
|
3472
|
+
export interface RedeemBlvtResponse {
|
|
3473
|
+
id: number;
|
|
3474
|
+
status: 'S' | 'P' | 'F';
|
|
3475
|
+
tokenName: string;
|
|
3476
|
+
redeemAmount: string;
|
|
3477
|
+
amount: string;
|
|
3478
|
+
timestamp: number;
|
|
3479
|
+
}
|
|
3480
|
+
export interface GetBlvtRedemptionRecordParams {
|
|
3481
|
+
tokenName?: string;
|
|
3482
|
+
id?: number;
|
|
3483
|
+
startTime?: number;
|
|
3484
|
+
endTime?: number;
|
|
3485
|
+
limit?: number;
|
|
3486
|
+
}
|
|
3487
|
+
export interface BlvtRedemptionRecord {
|
|
3488
|
+
id: number;
|
|
3489
|
+
tokenName: string;
|
|
3490
|
+
amount: string;
|
|
3491
|
+
nav: string;
|
|
3492
|
+
fee: string;
|
|
3493
|
+
netProceed: string;
|
|
3494
|
+
timestamp: number;
|
|
3495
|
+
}
|
|
3496
|
+
export interface BlvtUserLimitInfo {
|
|
3497
|
+
tokenName: string;
|
|
3498
|
+
userDailyTotalPurchaseLimit: string;
|
|
3499
|
+
userDailyTotalRedeemLimit: string;
|
|
3500
|
+
}
|
|
3501
|
+
export interface GetFiatOrderHistoryParams {
|
|
3502
|
+
transactionType: string;
|
|
3503
|
+
beginTime?: number;
|
|
3504
|
+
endTime?: number;
|
|
3505
|
+
page?: number;
|
|
3506
|
+
rows?: number;
|
|
3507
|
+
}
|
|
3508
|
+
export interface GetFiatOrderHistoryResponse {
|
|
3509
|
+
code: string;
|
|
3510
|
+
message: string;
|
|
3511
|
+
data: {
|
|
3512
|
+
orderNo: string;
|
|
3513
|
+
fiatCurrency: string;
|
|
3514
|
+
indicatedAmount: string;
|
|
3515
|
+
amount: string;
|
|
3516
|
+
totalFee: string;
|
|
3517
|
+
method: string;
|
|
3518
|
+
status: string;
|
|
3519
|
+
createTime: number;
|
|
3520
|
+
updateTime: number;
|
|
3521
|
+
}[];
|
|
3522
|
+
total: number;
|
|
3523
|
+
success: boolean;
|
|
3524
|
+
}
|
|
3525
|
+
export interface GetFiatPaymentsHistoryResponse {
|
|
3526
|
+
code: string;
|
|
3527
|
+
message: string;
|
|
3528
|
+
data: {
|
|
3529
|
+
orderNo: string;
|
|
3530
|
+
sourceAmount: string;
|
|
3531
|
+
fiatCurrency: string;
|
|
3532
|
+
obtainAmount: string;
|
|
3533
|
+
cryptoCurrency: string;
|
|
3534
|
+
totalFee: string;
|
|
3535
|
+
price: string;
|
|
3536
|
+
status: string;
|
|
3537
|
+
paymentMethod?: string;
|
|
3538
|
+
createTime: number;
|
|
3539
|
+
updateTime: number;
|
|
3540
|
+
}[];
|
|
3541
|
+
total: number;
|
|
3542
|
+
success: boolean;
|
|
3543
|
+
}
|
|
3544
|
+
export interface GetC2CTradeHistoryParams {
|
|
3545
|
+
tradeType: string;
|
|
3546
|
+
startTimestamp?: number;
|
|
3547
|
+
endTimestamp?: number;
|
|
3548
|
+
page?: number;
|
|
3549
|
+
rows?: number;
|
|
3550
|
+
}
|
|
3551
|
+
export interface c2cTradeData {
|
|
3552
|
+
orderNumber: string;
|
|
3553
|
+
advNo: string;
|
|
3554
|
+
tradeType: string;
|
|
3555
|
+
asset: string;
|
|
3556
|
+
fiat: string;
|
|
3557
|
+
fiatSymbol: string;
|
|
3558
|
+
amount: string;
|
|
3559
|
+
totalPrice: string;
|
|
3560
|
+
unitPrice: string;
|
|
3561
|
+
orderStatus: string;
|
|
3562
|
+
createTime: number;
|
|
3563
|
+
commission: string;
|
|
3564
|
+
counterPartNickName: string;
|
|
3565
|
+
advertisementRole: string;
|
|
3566
|
+
}
|
|
3567
|
+
export interface GetC2CTradeHistoryResponse {
|
|
3568
|
+
code: string;
|
|
3569
|
+
message: string;
|
|
3570
|
+
data: c2cTradeData[];
|
|
3571
|
+
total: number;
|
|
3572
|
+
success: boolean;
|
|
3573
|
+
}
|
|
3574
|
+
export interface GetVipLoanOngoingOrdersParams {
|
|
3575
|
+
orderId?: number;
|
|
3576
|
+
collateralAccountId?: number;
|
|
3577
|
+
loanCoin?: string;
|
|
3578
|
+
collateralCoin?: string;
|
|
3579
|
+
current?: number;
|
|
3580
|
+
limit?: number;
|
|
3581
|
+
}
|
|
3582
|
+
export interface VipOngoingOrder {
|
|
3583
|
+
orderId: number;
|
|
3584
|
+
loanCoin: string;
|
|
3585
|
+
totalDebt: string;
|
|
3586
|
+
loanRate: string;
|
|
3587
|
+
residualInterest: string;
|
|
3588
|
+
collateralAccountId: string;
|
|
3589
|
+
collateralCoin: string;
|
|
3590
|
+
totalCollateralValueAfterHaircut: string;
|
|
3591
|
+
lockedCollateralValue: string;
|
|
3592
|
+
currentLTV: string;
|
|
3593
|
+
expirationTime: number;
|
|
3594
|
+
loanDate: string;
|
|
3595
|
+
loanTerm: string;
|
|
3596
|
+
initialLtv: string;
|
|
3597
|
+
marginCallLtv: string;
|
|
3598
|
+
liquidationLtv: string;
|
|
3599
|
+
}
|
|
3600
|
+
export interface VipLoanRepayParams {
|
|
3601
|
+
orderId: number;
|
|
3602
|
+
amount: number;
|
|
3603
|
+
}
|
|
3604
|
+
export interface VipLoanRepayResponse {
|
|
3605
|
+
loanCoin: string;
|
|
3606
|
+
repayAmount: string;
|
|
3607
|
+
remainingPrincipal: string;
|
|
3608
|
+
remainingInterest: string;
|
|
3609
|
+
collateralCoin: string;
|
|
3610
|
+
currentLTV: string;
|
|
3611
|
+
repayStatus: string;
|
|
3612
|
+
}
|
|
3613
|
+
export interface GetVipLoanRepaymentHistoryParams {
|
|
3614
|
+
orderId?: number;
|
|
3615
|
+
loanCoin?: string;
|
|
3616
|
+
startTime?: number;
|
|
3617
|
+
endTime?: number;
|
|
3618
|
+
current?: number;
|
|
3619
|
+
limit?: number;
|
|
3620
|
+
}
|
|
3621
|
+
export interface VipLoanRepaymentHistory {
|
|
3622
|
+
loanCoin: string;
|
|
3623
|
+
repayAmount: string;
|
|
3624
|
+
collateralCoin: string;
|
|
3625
|
+
repayStatus: string;
|
|
3626
|
+
loanDate: string;
|
|
3627
|
+
repayTime: string;
|
|
3628
|
+
orderId: string;
|
|
3629
|
+
}
|
|
3630
|
+
export interface VipLoanRenewParams {
|
|
3631
|
+
orderId: number;
|
|
3632
|
+
loanTerm?: number;
|
|
3633
|
+
}
|
|
3634
|
+
export interface VipLoanRenewResponse {
|
|
3635
|
+
loanAccountId: string;
|
|
3636
|
+
loanCoin: string;
|
|
3637
|
+
loanAmount: string;
|
|
3638
|
+
collateralAccountId: string;
|
|
3639
|
+
collateralCoin: string;
|
|
3640
|
+
loanTerm: string;
|
|
3641
|
+
}
|
|
3642
|
+
export interface CheckVipCollateralAccountParams {
|
|
3643
|
+
orderId?: number;
|
|
3644
|
+
collateralAccountId?: number;
|
|
3645
|
+
}
|
|
3646
|
+
export interface VipCollateralAccount {
|
|
3647
|
+
collateralAccountId: string;
|
|
3648
|
+
collateralCoin: string;
|
|
3649
|
+
}
|
|
3650
|
+
export interface VipLoanBorrowParams {
|
|
3651
|
+
loanAccountId: number;
|
|
3652
|
+
loanCoin: string;
|
|
3653
|
+
loanAmount: number;
|
|
3654
|
+
collateralAccountId: string;
|
|
3655
|
+
collateralCoin: string;
|
|
3656
|
+
isFlexibleRate: boolean;
|
|
3657
|
+
loanTerm?: number;
|
|
3658
|
+
}
|
|
3659
|
+
export interface VipLoanBorrowResponse {
|
|
3660
|
+
loanAccountId: string;
|
|
3661
|
+
requestId: string;
|
|
3662
|
+
loanCoin: string;
|
|
3663
|
+
isFlexibleRate: string;
|
|
3664
|
+
loanAmount: string;
|
|
3665
|
+
collateralAccountId: string;
|
|
3666
|
+
collateralCoin: string;
|
|
3667
|
+
loanTerm?: string;
|
|
3668
|
+
}
|
|
3669
|
+
export interface GetLoanableAssetsDataParams {
|
|
3670
|
+
loanCoin?: string;
|
|
3671
|
+
vipLevel?: number;
|
|
3672
|
+
}
|
|
3673
|
+
export interface GetApplicationStatusParams {
|
|
3674
|
+
current?: number;
|
|
3675
|
+
limit?: number;
|
|
3676
|
+
}
|
|
3677
|
+
export interface ApplicationStatus {
|
|
3678
|
+
loanAccountId: string;
|
|
3679
|
+
orderId: string;
|
|
3680
|
+
requestId: string;
|
|
3681
|
+
loanCoin: string;
|
|
3682
|
+
loanAmount: string;
|
|
3683
|
+
collateralAccountId: string;
|
|
3684
|
+
collateralCoin: string;
|
|
3685
|
+
loanTerm: string;
|
|
3686
|
+
status: string;
|
|
3687
|
+
loanDate: string;
|
|
3688
|
+
}
|
|
3689
|
+
export interface BorrowInterestRate {
|
|
3690
|
+
asset: string;
|
|
3691
|
+
flexibleDailyInterestRate: string;
|
|
3692
|
+
flexibleYearlyInterestRate: string;
|
|
3693
|
+
time: number;
|
|
3694
|
+
}
|
|
3695
|
+
export interface GetCryptoLoansIncomeHistoryParams {
|
|
3696
|
+
asset?: string;
|
|
3697
|
+
type?: string;
|
|
3698
|
+
startTime?: number;
|
|
3699
|
+
endTime?: number;
|
|
3700
|
+
limit?: number;
|
|
3701
|
+
}
|
|
3702
|
+
export interface GetCryptoLoansIncomeHistoryResponse {
|
|
3703
|
+
asset: string;
|
|
3704
|
+
type: string;
|
|
3705
|
+
amount: string;
|
|
3706
|
+
timestamp: number;
|
|
3707
|
+
tranId: string;
|
|
3708
|
+
}
|
|
3709
|
+
export interface BorrowCryptoLoanParams {
|
|
3710
|
+
loanCoin: string;
|
|
3711
|
+
loanAmount?: number;
|
|
3712
|
+
collateralCoin: string;
|
|
3713
|
+
collateralAmount?: number;
|
|
3714
|
+
loanTerm: number;
|
|
3715
|
+
}
|
|
3716
|
+
export interface BorrowCryptoLoanResponse {
|
|
3717
|
+
loanCoin: string;
|
|
3718
|
+
loanAmount: string;
|
|
3719
|
+
collateralCoin: string;
|
|
3720
|
+
collateralAmount: string;
|
|
3721
|
+
hourlyInterestRate: string;
|
|
3722
|
+
orderId: string;
|
|
3723
|
+
}
|
|
3724
|
+
export interface GetLoanBorrowHistoryParams {
|
|
3725
|
+
orderId?: number;
|
|
3726
|
+
loanCoin?: string;
|
|
3727
|
+
collateralCoin?: string;
|
|
3728
|
+
startTime?: number;
|
|
3729
|
+
endTime?: number;
|
|
3730
|
+
current?: number;
|
|
3731
|
+
limit?: number;
|
|
3732
|
+
}
|
|
3733
|
+
export interface LoanBorrowHistory {
|
|
3734
|
+
orderId: number;
|
|
3735
|
+
loanCoin: string;
|
|
3736
|
+
initialLoanAmount: string;
|
|
3737
|
+
hourlyInterestRate: string;
|
|
3738
|
+
loanTerm: string;
|
|
3739
|
+
collateralCoin: string;
|
|
3740
|
+
initialCollateralAmount: string;
|
|
3741
|
+
borrowTime: number;
|
|
3742
|
+
status: string;
|
|
3743
|
+
}
|
|
3744
|
+
export interface GetLoanOngoingOrdersParams {
|
|
3745
|
+
orderId?: number;
|
|
3746
|
+
loanCoin?: string;
|
|
3747
|
+
collateralCoin?: string;
|
|
3748
|
+
current?: number;
|
|
3749
|
+
limit?: number;
|
|
3750
|
+
}
|
|
3751
|
+
export interface LoanOngoingOrder {
|
|
3752
|
+
orderId: number;
|
|
3753
|
+
loanCoin: string;
|
|
3754
|
+
totalDebt: string;
|
|
3755
|
+
residualInterest: string;
|
|
3756
|
+
collateralCoin: string;
|
|
3757
|
+
collateralAmount: string;
|
|
3758
|
+
currentLTV: string;
|
|
3759
|
+
expirationTime: number;
|
|
3760
|
+
}
|
|
3761
|
+
export interface RepayCryptoLoanParams {
|
|
3762
|
+
orderId: number;
|
|
3763
|
+
amount: number;
|
|
3764
|
+
type?: number;
|
|
3765
|
+
collateralReturn?: boolean;
|
|
3766
|
+
}
|
|
3767
|
+
export interface RepayCryptoLoanResponse {
|
|
3768
|
+
loanCoin: string;
|
|
3769
|
+
remainingPrincipal?: string;
|
|
3770
|
+
remainingInterest?: string;
|
|
3771
|
+
collateralCoin: string;
|
|
3772
|
+
remainingCollateral?: string;
|
|
3773
|
+
currentLTV?: string;
|
|
3774
|
+
repayStatus: string;
|
|
3775
|
+
}
|
|
3776
|
+
export interface GetLoanRepaymentHistoryParams {
|
|
3777
|
+
orderId?: number;
|
|
3778
|
+
loanCoin?: string;
|
|
3779
|
+
collateralCoin?: string;
|
|
3780
|
+
startTime?: number;
|
|
3781
|
+
endTime?: number;
|
|
3782
|
+
current?: number;
|
|
3783
|
+
limit?: number;
|
|
3784
|
+
}
|
|
3785
|
+
export interface LoanRepaymentHistory {
|
|
3786
|
+
loanCoin: string;
|
|
3787
|
+
repayAmount: string;
|
|
3788
|
+
collateralCoin: string;
|
|
3789
|
+
collateralUsed: string;
|
|
3790
|
+
collateralReturn: string;
|
|
3791
|
+
repayType: string;
|
|
3792
|
+
repayStatus: string;
|
|
3793
|
+
repayTime: number;
|
|
3794
|
+
orderId: number;
|
|
3795
|
+
}
|
|
3796
|
+
export interface AdjustCryptoLoanLTVParams {
|
|
3797
|
+
orderId: number;
|
|
3798
|
+
amount: number;
|
|
3799
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3800
|
+
}
|
|
3801
|
+
export interface AdjustCryptoLoanLTVResponse {
|
|
3802
|
+
loanCoin: string;
|
|
3803
|
+
collateralCoin: string;
|
|
3804
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3805
|
+
amount: string;
|
|
3806
|
+
currentLTV: string;
|
|
3807
|
+
}
|
|
3808
|
+
export interface GetLoanLTVAdjustmentHistoryParams {
|
|
3809
|
+
orderId?: number;
|
|
3810
|
+
loanCoin?: string;
|
|
3811
|
+
collateralCoin?: string;
|
|
3812
|
+
startTime?: number;
|
|
3813
|
+
endTime?: number;
|
|
3814
|
+
current?: number;
|
|
3815
|
+
limit?: number;
|
|
3816
|
+
}
|
|
3817
|
+
export interface LoanLTVAdjustmentHistory {
|
|
3818
|
+
loanCoin: string;
|
|
3819
|
+
collateralCoin: string;
|
|
3820
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3821
|
+
amount: string;
|
|
3822
|
+
preLTV: string;
|
|
3823
|
+
afterLTV: string;
|
|
3824
|
+
adjustTime: number;
|
|
3825
|
+
orderId: number;
|
|
3826
|
+
}
|
|
3827
|
+
export interface LoanableAssetData {
|
|
3828
|
+
loanCoin: string;
|
|
3829
|
+
_7dHourlyInterestRate: string;
|
|
3830
|
+
_7dDailyInterestRate: string;
|
|
3831
|
+
_14dHourlyInterestRate: string;
|
|
3832
|
+
_14dDailyInterestRate: string;
|
|
3833
|
+
_30dHourlyInterestRate: string;
|
|
3834
|
+
_30dDailyInterestRate: string;
|
|
3835
|
+
_90dHourlyInterestRate: string;
|
|
3836
|
+
_90dDailyInterestRate: string;
|
|
3837
|
+
_180dHourlyInterestRate: string;
|
|
3838
|
+
_180dDailyInterestRate: string;
|
|
3839
|
+
minLimit: string;
|
|
3840
|
+
maxLimit: string;
|
|
3841
|
+
vipLevel: number;
|
|
3842
|
+
}
|
|
3843
|
+
export interface GetCollateralAssetDataParams {
|
|
3844
|
+
collateralCoin?: string;
|
|
3845
|
+
vipLevel?: number;
|
|
3846
|
+
}
|
|
3847
|
+
export interface CollateralAssetData {
|
|
3848
|
+
collateralCoin: string;
|
|
3849
|
+
initialLTV: string;
|
|
3850
|
+
marginCallLTV: string;
|
|
3851
|
+
liquidationLTV: string;
|
|
3852
|
+
maxLimit: string;
|
|
3853
|
+
vipLevel: number;
|
|
3854
|
+
}
|
|
3855
|
+
export interface CheckCollateralRepayRateParams {
|
|
3856
|
+
loanCoin: string;
|
|
3857
|
+
collateralCoin: string;
|
|
3858
|
+
repayAmount: number;
|
|
3859
|
+
}
|
|
3860
|
+
export interface CheckCollateralRepayRateResponse {
|
|
3861
|
+
loanCoin: string;
|
|
3862
|
+
collateralCoin: string;
|
|
3863
|
+
repayAmount: string;
|
|
3864
|
+
rate: string;
|
|
3865
|
+
}
|
|
3866
|
+
export interface CustomizeMarginCallParams {
|
|
3867
|
+
orderId?: number;
|
|
3868
|
+
collateralCoin?: string;
|
|
3869
|
+
marginCall: number;
|
|
3870
|
+
}
|
|
3871
|
+
export interface CustomizeMarginCall {
|
|
3872
|
+
orderId: string;
|
|
3873
|
+
collateralCoin: string;
|
|
3874
|
+
preMarginCall: string;
|
|
3875
|
+
afterMarginCall: string;
|
|
3876
|
+
customizeTime: number;
|
|
3877
|
+
}
|
|
3878
|
+
export interface BorrowFlexibleLoanParams {
|
|
3879
|
+
loanCoin: string;
|
|
3880
|
+
loanAmount?: number;
|
|
3881
|
+
collateralCoin: string;
|
|
3882
|
+
collateralAmount?: number;
|
|
3883
|
+
}
|
|
3884
|
+
export interface BorrowFlexibleLoanResponse {
|
|
3885
|
+
loanCoin: string;
|
|
3886
|
+
loanAmount: string;
|
|
3887
|
+
collateralCoin: string;
|
|
3888
|
+
collateralAmount: string;
|
|
3889
|
+
status: 'Succeeds' | 'Failed' | 'Processing';
|
|
3890
|
+
}
|
|
3891
|
+
export interface GetFlexibleLoanOngoingOrdersParams {
|
|
3892
|
+
loanCoin?: string;
|
|
3893
|
+
collateralCoin?: string;
|
|
3894
|
+
current?: number;
|
|
3895
|
+
limit?: number;
|
|
3896
|
+
}
|
|
3897
|
+
export interface FlexibleLoanOngoingOrder {
|
|
3898
|
+
loanCoin: string;
|
|
3899
|
+
totalDebt: string;
|
|
3900
|
+
collateralCoin: string;
|
|
3901
|
+
collateralAmount: string;
|
|
3902
|
+
currentLTV: string;
|
|
3903
|
+
}
|
|
3904
|
+
export interface GetFlexibleCryptoLoanBorrowHistoryParams {
|
|
3905
|
+
loanCoin?: string;
|
|
3906
|
+
collateralCoin?: string;
|
|
3907
|
+
startTime?: number;
|
|
3908
|
+
endTime?: number;
|
|
3909
|
+
current?: number;
|
|
3910
|
+
limit?: number;
|
|
3911
|
+
}
|
|
3912
|
+
export interface FlexibleCryptoLoanBorrowHistory {
|
|
3913
|
+
loanCoin: string;
|
|
3914
|
+
initialLoanAmount: string;
|
|
3915
|
+
collateralCoin: string;
|
|
3916
|
+
initialCollateralAmount: string;
|
|
3917
|
+
borrowTime: number;
|
|
3918
|
+
status: 'Succeeds' | 'Failed' | 'Processing';
|
|
3919
|
+
}
|
|
3920
|
+
export interface RepayCryptoFlexibleLoanParams {
|
|
3921
|
+
loanCoin: string;
|
|
3922
|
+
collateralCoin: string;
|
|
3923
|
+
repayAmount: number;
|
|
3924
|
+
collateralReturn?: boolean;
|
|
3925
|
+
fullRepayment?: boolean;
|
|
3926
|
+
}
|
|
3927
|
+
export interface RepayCryptoFlexibleLoanResponse {
|
|
3928
|
+
loanCoin: string;
|
|
3929
|
+
collateralCoin: string;
|
|
3930
|
+
remainingDebt: string;
|
|
3931
|
+
remainingCollateral: string;
|
|
3932
|
+
fullRepayment: boolean;
|
|
3933
|
+
currentLTV: string;
|
|
3934
|
+
repayStatus: 'Repaid' | 'Repaying' | 'Failed';
|
|
3935
|
+
}
|
|
3936
|
+
export interface GetFlexibleCryptoLoanRepaymentHistoryParams {
|
|
3937
|
+
loanCoin?: string;
|
|
3938
|
+
collateralCoin?: string;
|
|
3939
|
+
startTime?: number;
|
|
3940
|
+
endTime?: number;
|
|
3941
|
+
current?: number;
|
|
3942
|
+
limit?: number;
|
|
3943
|
+
}
|
|
3944
|
+
export interface FlexibleCryptoLoanRepaymentHistory {
|
|
3945
|
+
loanCoin: string;
|
|
3946
|
+
repayAmount: string;
|
|
3947
|
+
collateralCoin: string;
|
|
3948
|
+
collateralReturn: string;
|
|
3949
|
+
repayStatus: 'Repaid' | 'Repaying' | 'Failed';
|
|
3950
|
+
repayTime: number;
|
|
3951
|
+
}
|
|
3952
|
+
export interface AdjustFlexibleCryptoLoanLTVParams {
|
|
3953
|
+
loanCoin: string;
|
|
3954
|
+
collateralCoin: string;
|
|
3955
|
+
adjustmentAmount: number;
|
|
3956
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3957
|
+
}
|
|
3958
|
+
export interface AdjustFlexibleCryptoLoanLTVResponse {
|
|
3959
|
+
loanCoin: string;
|
|
3960
|
+
collateralCoin: string;
|
|
3961
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3962
|
+
adjustmentAmount: string;
|
|
3963
|
+
currentLTV: string;
|
|
3964
|
+
}
|
|
3965
|
+
export interface GetFlexibleLoanLTVAdjustmentHistoryParams {
|
|
3966
|
+
loanCoin?: string;
|
|
3967
|
+
collateralCoin?: string;
|
|
3968
|
+
startTime?: number;
|
|
3969
|
+
endTime?: number;
|
|
3970
|
+
current?: number;
|
|
3971
|
+
limit?: number;
|
|
3972
|
+
}
|
|
3973
|
+
export interface FlexibleLoanLTVAdjustmentHistory {
|
|
3974
|
+
loanCoin: string;
|
|
3975
|
+
collateralCoin: string;
|
|
3976
|
+
direction: 'ADDITIONAL' | 'REDUCED';
|
|
3977
|
+
collateralAmount: string;
|
|
3978
|
+
preLTV: string;
|
|
3979
|
+
afterLTV: string;
|
|
3980
|
+
adjustTime: number;
|
|
3981
|
+
}
|
|
3982
|
+
export interface FlexibleLoanAssetData {
|
|
3983
|
+
loanCoin: string;
|
|
3984
|
+
flexibleInterestRate: string;
|
|
3985
|
+
flexibleMinLimit: string;
|
|
3986
|
+
flexibleMaxLimit: string;
|
|
3987
|
+
}
|
|
3988
|
+
export interface FlexibleLoanCollateralAssetData {
|
|
3989
|
+
collateralCoin: string;
|
|
3990
|
+
initialLTV: string;
|
|
3991
|
+
marginCallLTV: string;
|
|
3992
|
+
liquidationLTV: string;
|
|
3993
|
+
maxLimit: string;
|
|
3994
|
+
}
|
|
3995
|
+
export interface GetFuturesLeadTraderStatusResponse {
|
|
3996
|
+
code: string;
|
|
3997
|
+
message: string;
|
|
3998
|
+
data: {
|
|
3999
|
+
isLeadTrader: boolean;
|
|
4000
|
+
time: number;
|
|
4001
|
+
};
|
|
4002
|
+
success: boolean;
|
|
4003
|
+
}
|
|
4004
|
+
export interface GetFuturesLeadTradingSymbolWhitelistResponse {
|
|
4005
|
+
code: string;
|
|
4006
|
+
message: string;
|
|
4007
|
+
data: {
|
|
4008
|
+
symbol: string;
|
|
4009
|
+
baseAsset: string;
|
|
4010
|
+
quoteAsset: string;
|
|
4011
|
+
}[];
|
|
4012
|
+
}
|
|
4013
|
+
export interface GetPayTradeHistoryParams {
|
|
4014
|
+
startTime?: number;
|
|
4015
|
+
endTime?: number;
|
|
4016
|
+
limit?: number;
|
|
4017
|
+
}
|
|
4018
|
+
export interface GetAllConvertPairsParams {
|
|
4019
|
+
fromAsset?: string;
|
|
4020
|
+
toAsset?: string;
|
|
4021
|
+
}
|
|
4022
|
+
export interface SubmitConvertLimitOrderParams {
|
|
4023
|
+
baseAsset: string;
|
|
4024
|
+
quoteAsset: string;
|
|
4025
|
+
limitPrice: number;
|
|
4026
|
+
baseAmount?: number;
|
|
4027
|
+
quoteAmount?: number;
|
|
4028
|
+
side: 'BUY' | 'SELL';
|
|
4029
|
+
walletType?: 'SPOT' | 'FUNDING' | 'SPOT_FUNDING';
|
|
4030
|
+
expiredType: '1_D' | '3_D' | '7_D' | '30_D';
|
|
4031
|
+
}
|
|
4032
|
+
export interface ConvertLimitOpenOrder {
|
|
4033
|
+
quoteId: string;
|
|
4034
|
+
orderId: number;
|
|
4035
|
+
orderStatus: string;
|
|
4036
|
+
fromAsset: string;
|
|
4037
|
+
fromAmount: string;
|
|
4038
|
+
toAsset: string;
|
|
4039
|
+
toAmount: string;
|
|
4040
|
+
ratio: string;
|
|
4041
|
+
inverseRatio: string;
|
|
4042
|
+
createTime: number;
|
|
4043
|
+
expiredTimestamp: number;
|
|
4044
|
+
}
|
|
4045
|
+
export interface GetSpotRebateHistoryRecordsParams {
|
|
4046
|
+
startTime?: number;
|
|
4047
|
+
endTime?: number;
|
|
4048
|
+
page?: number;
|
|
4049
|
+
}
|
|
4050
|
+
export interface SpotRebateHistoryRecord {
|
|
4051
|
+
asset: string;
|
|
4052
|
+
type: number;
|
|
4053
|
+
amount: string;
|
|
4054
|
+
updateTime: number;
|
|
4055
|
+
}
|
|
4056
|
+
export interface GetSpotRebateHistoryRecordsResponse {
|
|
4057
|
+
status: string;
|
|
4058
|
+
type: string;
|
|
4059
|
+
code: string;
|
|
4060
|
+
data: {
|
|
4061
|
+
page: number;
|
|
4062
|
+
totalRecords: number;
|
|
4063
|
+
totalPageNum: number;
|
|
4064
|
+
data: SpotRebateHistoryRecord[];
|
|
4065
|
+
};
|
|
4066
|
+
}
|
|
4067
|
+
export interface GetNftTransactionHistoryParams {
|
|
4068
|
+
orderType: number;
|
|
4069
|
+
startTime?: number;
|
|
4070
|
+
endTime?: number;
|
|
4071
|
+
limit?: number;
|
|
4072
|
+
page?: number;
|
|
4073
|
+
}
|
|
4074
|
+
export interface NftToken {
|
|
4075
|
+
network: string;
|
|
4076
|
+
tokenId: string;
|
|
4077
|
+
contractAddress: string;
|
|
4078
|
+
}
|
|
4079
|
+
export interface NftTransaction {
|
|
4080
|
+
orderNo: string;
|
|
4081
|
+
tokens: NftToken[];
|
|
4082
|
+
tradeTime: number;
|
|
4083
|
+
tradeAmount: string;
|
|
4084
|
+
tradeCurrency: string;
|
|
4085
|
+
}
|
|
4086
|
+
export interface GetNftDepositHistoryParams {
|
|
4087
|
+
startTime?: number;
|
|
4088
|
+
endTime?: number;
|
|
4089
|
+
limit?: number;
|
|
4090
|
+
page?: number;
|
|
4091
|
+
}
|
|
4092
|
+
export interface NftDeposit {
|
|
4093
|
+
network: string;
|
|
4094
|
+
txID: string | null;
|
|
4095
|
+
contractAdrress: string;
|
|
4096
|
+
tokenId: string;
|
|
4097
|
+
timestamp: number;
|
|
4098
|
+
}
|
|
4099
|
+
export interface GetNftWithdrawHistoryParams {
|
|
4100
|
+
startTime?: number;
|
|
4101
|
+
endTime?: number;
|
|
4102
|
+
limit?: number;
|
|
4103
|
+
page?: number;
|
|
4104
|
+
}
|
|
4105
|
+
export interface NftWithdraw {
|
|
4106
|
+
network: string;
|
|
4107
|
+
txID: string;
|
|
4108
|
+
contractAdrress: string;
|
|
4109
|
+
tokenId: string;
|
|
4110
|
+
timestamp: number;
|
|
4111
|
+
fee: number;
|
|
4112
|
+
feeAsset: string;
|
|
4113
|
+
}
|
|
4114
|
+
export interface GetNftAssetParams {
|
|
4115
|
+
limit?: number;
|
|
4116
|
+
page?: number;
|
|
4117
|
+
}
|
|
4118
|
+
export interface NftAsset {
|
|
4119
|
+
network: string;
|
|
4120
|
+
contractAddress: string;
|
|
4121
|
+
tokenId: string;
|
|
4122
|
+
}
|
|
4123
|
+
export interface CreateGiftCardParams {
|
|
4124
|
+
token: string;
|
|
4125
|
+
amount: number;
|
|
4126
|
+
}
|
|
4127
|
+
export interface CreateDualTokenGiftCardParams {
|
|
4128
|
+
baseToken: string;
|
|
4129
|
+
faceToken: string;
|
|
4130
|
+
baseTokenAmount: number;
|
|
4131
|
+
discount?: number;
|
|
4132
|
+
}
|
|
4133
|
+
export interface RedeemGiftCardParams {
|
|
4134
|
+
code: string;
|
|
4135
|
+
externalUid?: string;
|
|
4136
|
+
}
|
|
4137
|
+
export interface SimpleEarnProductListParams {
|
|
4138
|
+
asset?: string;
|
|
4139
|
+
current?: number;
|
|
4140
|
+
size?: number;
|
|
4141
|
+
}
|
|
4142
|
+
export interface SimpleEarnFlexibleProduct {
|
|
4143
|
+
asset: string;
|
|
4144
|
+
latestAnnualInterestRate: string;
|
|
4145
|
+
tierAnnualPercentageRate: Record<string, number>;
|
|
4146
|
+
airDropPercentageRate: string;
|
|
4147
|
+
canPurchase: boolean;
|
|
4148
|
+
canRedeem: boolean;
|
|
4149
|
+
isSoldOut: boolean;
|
|
4150
|
+
hot: boolean;
|
|
4151
|
+
minPurchaseAmount: string;
|
|
4152
|
+
productId: string;
|
|
4153
|
+
subscriptionStartTime: number;
|
|
4154
|
+
status: string;
|
|
4155
|
+
}
|
|
4156
|
+
export interface SimpleEarnLockedProduct {
|
|
4157
|
+
projectId: string;
|
|
4158
|
+
detail: {
|
|
4159
|
+
asset: string;
|
|
4160
|
+
rewardAsset: string;
|
|
4161
|
+
duration: number;
|
|
4162
|
+
renewable: boolean;
|
|
4163
|
+
isSoldOut: boolean;
|
|
4164
|
+
apr: string;
|
|
4165
|
+
status: string;
|
|
4166
|
+
subscriptionStartTime: number;
|
|
4167
|
+
extraRewardAsset: string;
|
|
4168
|
+
extraRewardAPR: string;
|
|
4169
|
+
};
|
|
4170
|
+
quota: {
|
|
4171
|
+
totalPersonalQuota: string;
|
|
4172
|
+
minimum: string;
|
|
4173
|
+
};
|
|
4174
|
+
}
|
|
4175
|
+
export interface SimpleEarnSubscribeProductParams {
|
|
4176
|
+
productId: string;
|
|
4177
|
+
amount: number;
|
|
4178
|
+
autoSubscribe?: boolean;
|
|
4179
|
+
sourceAccount?: 'SPOT' | 'FUND' | 'ALL';
|
|
4180
|
+
}
|
|
4181
|
+
export interface SimpleEarnSubscribeFlexibleProductResponse {
|
|
4182
|
+
purchaseId: string;
|
|
4183
|
+
success: boolean;
|
|
4184
|
+
}
|
|
4185
|
+
export interface SimpleEarnSubscribeLockedProductResponse {
|
|
4186
|
+
purchaseId: string;
|
|
4187
|
+
positionId: string;
|
|
4188
|
+
success: boolean;
|
|
4189
|
+
}
|
|
4190
|
+
export interface SimpleEarnRedeemResponse {
|
|
4191
|
+
success: boolean;
|
|
4192
|
+
redeemId: string;
|
|
4193
|
+
}
|
|
4194
|
+
export interface SimpleEarnFlexibleProductPositionParams {
|
|
4195
|
+
asset?: string;
|
|
4196
|
+
productId?: string;
|
|
4197
|
+
current?: number;
|
|
4198
|
+
size?: number;
|
|
4199
|
+
}
|
|
4200
|
+
export interface SimpleEarnLockedProductPositionParams {
|
|
4201
|
+
asset?: string;
|
|
4202
|
+
productId?: string;
|
|
4203
|
+
current?: number;
|
|
4204
|
+
size?: number;
|
|
4205
|
+
positionId?: string;
|
|
4206
|
+
}
|
|
4207
|
+
export interface SimpleEarnLockedProductPosition {
|
|
4208
|
+
positionId: string;
|
|
4209
|
+
projectId: string;
|
|
4210
|
+
asset: string;
|
|
4211
|
+
amount: string;
|
|
4212
|
+
purchaseTime: string;
|
|
4213
|
+
duration: string;
|
|
4214
|
+
accrualDays: string;
|
|
4215
|
+
rewardAsset: string;
|
|
4216
|
+
APY: string;
|
|
4217
|
+
isRenewable: boolean;
|
|
4218
|
+
isAutoRenew: boolean;
|
|
4219
|
+
redeemDate: string;
|
|
4220
|
+
}
|
|
4221
|
+
export interface SimpleEarnAccountResponse {
|
|
4222
|
+
totalAmountInBTC: string;
|
|
4223
|
+
totalAmountInUSDT: string;
|
|
4224
|
+
totalFlexibleAmountInBTC: string;
|
|
4225
|
+
totalFlexibleAmountInUSDT: string;
|
|
4226
|
+
totalLockedinBTC: string;
|
|
4227
|
+
totalLockedinUSDT: string;
|
|
4228
|
+
}
|