@bluefin-exchange/pro-sdk 0.1.16 → 0.1.18
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/example.js +2 -2
- package/dist/src/api.d.ts +89 -314
- package/dist/src/api.js +20 -101
- package/dist/src/sdk.js +1 -1
- package/example.ts +4 -4
- package/package.json +1 -1
- package/src/api.ts +89 -344
- package/src/sdk.ts +4 -4
package/dist/example.js
CHANGED
|
@@ -111,9 +111,9 @@ function main() {
|
|
|
111
111
|
const fundingRateHistory = (yield client.exchangeDataApi.getFundingRateHistory(symbol)).data;
|
|
112
112
|
logger.info(`Funding Rate History: ${JSON.stringify(fundingRateHistory)}`);
|
|
113
113
|
// Account Data API calls
|
|
114
|
-
const accountTrades = (yield client.accountDataApi.getAccountTrades(symbol, Date.now() - 10000000, Date.now(), 1000, index_1.
|
|
114
|
+
const accountTrades = (yield client.accountDataApi.getAccountTrades(symbol, Date.now() - 10000000, Date.now(), 1000, index_1.TradeType.Order, 1)).data;
|
|
115
115
|
logger.info(`Trades History ${JSON.stringify(accountTrades)}`);
|
|
116
|
-
const depositHistory = (yield client.accountDataApi.getAccountTransactionHistory([index_1.
|
|
116
|
+
const depositHistory = (yield client.accountDataApi.getAccountTransactionHistory([index_1.TransactionType.Deposit, index_1.TransactionType.Withdraw], symbol, Date.now() - 10000000, Date.now(), 1000, 1)).data;
|
|
117
117
|
logger.info(`Deposits history: ${JSON.stringify(depositHistory)}`);
|
|
118
118
|
const accountDetails = (yield client.accountDataApi.getAccountDetails())
|
|
119
119
|
.data;
|