@bluefin-exchange/pro-sdk 0.1.61 → 0.2.0-pre-release.1
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 → cjs/example.js} +3 -0
- package/dist/cjs/example.js.map +1 -0
- package/dist/{index.js → cjs/index.js} +1 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/{src → cjs/src}/api.js +75 -1
- package/dist/cjs/src/api.js.map +1 -0
- package/dist/{src → cjs/src}/base.js +5 -1
- package/dist/cjs/src/base.js.map +1 -0
- package/dist/{src → cjs/src}/common.js +1 -0
- package/dist/cjs/src/common.js.map +1 -0
- package/dist/{src → cjs/src}/configuration.js +1 -0
- package/dist/cjs/src/configuration.js.map +1 -0
- package/dist/{src → cjs/src}/index.js +1 -0
- package/dist/cjs/src/index.js.map +1 -0
- package/dist/{src → cjs/src}/request-signer.js +11 -0
- package/dist/cjs/src/request-signer.js.map +1 -0
- package/dist/{src → cjs/src}/sdk.js +47 -4
- package/dist/cjs/src/sdk.js.map +1 -0
- package/dist/{src → cjs/src}/utils.js +1 -0
- package/dist/cjs/src/utils.js.map +1 -0
- package/dist/{src → cjs/src}/websocket.js +1 -0
- package/dist/cjs/src/websocket.js.map +1 -0
- package/dist/esm/example.js +218 -0
- package/dist/esm/example.js.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/src/api.js +4318 -0
- package/dist/esm/src/api.js.map +1 -0
- package/dist/esm/src/base.js +69 -0
- package/dist/esm/src/base.js.map +1 -0
- package/dist/esm/src/common.js +162 -0
- package/dist/esm/src/common.js.map +1 -0
- package/dist/esm/src/configuration.js +45 -0
- package/dist/esm/src/configuration.js.map +1 -0
- package/dist/esm/src/index.js +23 -0
- package/dist/esm/src/index.js.map +1 -0
- package/dist/esm/src/request-signer.js +231 -0
- package/dist/esm/src/request-signer.js.map +1 -0
- package/dist/esm/src/sdk.js +786 -0
- package/dist/esm/src/sdk.js.map +1 -0
- package/dist/esm/src/utils.js +10 -0
- package/dist/esm/src/utils.js.map +1 -0
- package/dist/esm/src/websocket.js +159 -0
- package/dist/esm/src/websocket.js.map +1 -0
- package/dist/types/example.d.ts +2 -0
- package/dist/types/example.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{src → types/src}/api.d.ts +126 -47
- package/dist/types/src/api.d.ts.map +1 -0
- package/dist/{src → types/src}/base.d.ts +1 -0
- package/dist/types/src/base.d.ts.map +1 -0
- package/dist/{src → types/src}/common.d.ts +1 -0
- package/dist/types/src/common.d.ts.map +1 -0
- package/dist/{src → types/src}/configuration.d.ts +1 -0
- package/dist/types/src/configuration.d.ts.map +1 -0
- package/dist/{src → types/src}/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/{src → types/src}/request-signer.d.ts +6 -1
- package/dist/types/src/request-signer.d.ts.map +1 -0
- package/dist/{src → types/src}/sdk.d.ts +12 -1
- package/dist/types/src/sdk.d.ts.map +1 -0
- package/dist/{src → types/src}/utils.d.ts +1 -0
- package/dist/types/src/utils.d.ts.map +1 -0
- package/dist/{src → types/src}/websocket.d.ts +1 -0
- package/dist/types/src/websocket.d.ts.map +1 -0
- package/package.json +21 -7
- package/dist/example.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/example.ts +0 -323
- package/index.ts +0 -1
- package/openapitools.json +0 -24
- package/src/.openapi-generator/FILES +0 -128
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -28
- package/src/README.md +0 -46
- package/src/api.ts +0 -8918
- package/src/base.ts +0 -86
- package/src/common.ts +0 -150
- package/src/configuration.ts +0 -115
- package/src/docs/Account.md +0 -64
- package/src/docs/AccountAggregatedTradeUpdate.md +0 -21
- package/src/docs/AccountAuthorizationRequest.md +0 -24
- package/src/docs/AccountAuthorizationRequestSignedFields.md +0 -28
- package/src/docs/AccountCommandFailureUpdate.md +0 -29
- package/src/docs/AccountDataApi.md +0 -374
- package/src/docs/AccountDataStream.md +0 -21
- package/src/docs/AccountEventReason.md +0 -25
- package/src/docs/AccountEventType.md +0 -21
- package/src/docs/AccountFundingRateHistory.md +0 -20
- package/src/docs/AccountFundingRateHistoryData.md +0 -30
- package/src/docs/AccountMarketPreference.md +0 -22
- package/src/docs/AccountOrderUpdate.md +0 -71
- package/src/docs/AccountPositionLeverageUpdateRequest.md +0 -22
- package/src/docs/AccountPositionLeverageUpdateRequestSignedFields.md +0 -30
- package/src/docs/AccountPositionUpdate.md +0 -47
- package/src/docs/AccountPreference.md +0 -24
- package/src/docs/AccountStreamMessage.md +0 -25
- package/src/docs/AccountStreamMessagePayload.md +0 -153
- package/src/docs/AccountSubscriptionMessage.md +0 -25
- package/src/docs/AccountTradeUpdate.md +0 -21
- package/src/docs/AccountTransactionUpdate.md +0 -31
- package/src/docs/AccountUpdate.md +0 -61
- package/src/docs/ActiveOrderUpdate.md +0 -65
- package/src/docs/AdjustIsolatedMarginRequest.md +0 -22
- package/src/docs/AdjustIsolatedMarginRequestSignedFields.md +0 -32
- package/src/docs/AdjustMarginOperation.md +0 -11
- package/src/docs/AffiliateIntervalOverview.md +0 -56
- package/src/docs/AffiliateLeaderDashboard.md +0 -38
- package/src/docs/AffiliateMetadata.md +0 -36
- package/src/docs/AffiliateMetadataFees.md +0 -31
- package/src/docs/AffiliateOnboardResponse.md +0 -22
- package/src/docs/AffiliateOverview.md +0 -46
- package/src/docs/AffiliateSummary.md +0 -30
- package/src/docs/Asset.md +0 -29
- package/src/docs/AssetConfig.md +0 -28
- package/src/docs/AuthApi.md +0 -243
- package/src/docs/AuthorizedWallet.md +0 -24
- package/src/docs/CampaignMetadata.md +0 -28
- package/src/docs/CampaignRewards.md +0 -18
- package/src/docs/CancelOrdersRequest.md +0 -23
- package/src/docs/CancelOrdersResponse.md +0 -21
- package/src/docs/CandlePriceType.md +0 -14
- package/src/docs/CandlestickUpdate.md +0 -41
- package/src/docs/CommandFailureReasonCode.md +0 -24
- package/src/docs/ContractsConfig.md +0 -31
- package/src/docs/CreateOrderRequest.md +0 -36
- package/src/docs/CreateOrderRequestSignedFields.md +0 -40
- package/src/docs/CreateOrderResponse.md +0 -20
- package/src/docs/EpochConfigs.md +0 -34
- package/src/docs/EpochConfigsResponse.md +0 -24
- package/src/docs/EpochMetadata.md +0 -30
- package/src/docs/Error.md +0 -22
- package/src/docs/ExchangeApi.md +0 -473
- package/src/docs/ExchangeInfoResponse.md +0 -30
- package/src/docs/FailedCommandType.md +0 -12
- package/src/docs/FeeConfigs.md +0 -33
- package/src/docs/FundingRateEntry.md +0 -24
- package/src/docs/GetAffiliateIntervalOverview200Response.md +0 -26
- package/src/docs/GetAffiliateLeaderDashboard200Response.md +0 -26
- package/src/docs/GetAffiliateOverview200Response.md +0 -26
- package/src/docs/IntervalMetadata.md +0 -28
- package/src/docs/IntervalRewards.md +0 -30
- package/src/docs/KlineInterval.md +0 -36
- package/src/docs/LoginRequest.md +0 -25
- package/src/docs/LoginResponse.md +0 -26
- package/src/docs/MarginType.md +0 -13
- package/src/docs/MarkPriceUpdate.md +0 -26
- package/src/docs/Market.md +0 -82
- package/src/docs/MarketDataStreamName.md +0 -142
- package/src/docs/MarketEventType.md +0 -25
- package/src/docs/MarketPriceUpdate.md +0 -26
- package/src/docs/MarketStatus.md +0 -16
- package/src/docs/MarketStreamMessage.md +0 -23
- package/src/docs/MarketStreamMessagePayload.md +0 -123
- package/src/docs/MarketSubscriptionMessage.md +0 -23
- package/src/docs/MarketSubscriptionStreams.md +0 -23
- package/src/docs/OnboardAffiliateRequest.md +0 -26
- package/src/docs/OnboardAffiliateRequestSocialUserNames.md +0 -27
- package/src/docs/OnboardRefereeRequest.md +0 -20
- package/src/docs/OpenOrderResponse.md +0 -64
- package/src/docs/Operators.md +0 -28
- package/src/docs/OraclePriceUpdate.md +0 -26
- package/src/docs/OrderCancelReason.md +0 -65
- package/src/docs/OrderCancellationFailureReason.md +0 -19
- package/src/docs/OrderCancellationUpdate.md +0 -35
- package/src/docs/OrderSide.md +0 -13
- package/src/docs/OrderStatus.md +0 -25
- package/src/docs/OrderTimeInForce.md +0 -15
- package/src/docs/OrderType.md +0 -29
- package/src/docs/OrderbookDepthResponse.md +0 -38
- package/src/docs/OrderbookDiffDepthUpdate.md +0 -30
- package/src/docs/OrderbookPartialDepthUpdate.md +0 -30
- package/src/docs/Position.md +0 -52
- package/src/docs/PositionSide.md +0 -13
- package/src/docs/RecentTradesUpdates.md +0 -20
- package/src/docs/RefereeOnboardResponse.md +0 -20
- package/src/docs/RefreshTokenRequest.md +0 -20
- package/src/docs/RefreshTokenResponse.md +0 -26
- package/src/docs/RewardsApi.md +0 -859
- package/src/docs/RewardsSummary.md +0 -26
- package/src/docs/SelfTradePreventionType.md +0 -15
- package/src/docs/StatsEntry.md +0 -26
- package/src/docs/StatsInterval.md +0 -14
- package/src/docs/StatsResponse.md +0 -20
- package/src/docs/StreamsApi.md +0 -126
- package/src/docs/SubscriptionResponseMessage.md +0 -23
- package/src/docs/SubscriptionType.md +0 -11
- package/src/docs/TickerAllUpdate.md +0 -20
- package/src/docs/TickerResponse.md +0 -82
- package/src/docs/TickerUpdate.md +0 -83
- package/src/docs/Trade.md +0 -54
- package/src/docs/TradeApi.md +0 -589
- package/src/docs/TradeSide.md +0 -13
- package/src/docs/TradeType.md +0 -15
- package/src/docs/TradingFees.md +0 -24
- package/src/docs/Transaction.md +0 -34
- package/src/docs/TransactionType.md +0 -25
- package/src/docs/UpdateAccountPreferenceRequest.md +0 -24
- package/src/docs/UpdateAffiliateFeeConfigRequest.md +0 -20
- package/src/docs/UserCampaignRewards.md +0 -48
- package/src/docs/WithdrawRequest.md +0 -22
- package/src/docs/WithdrawRequestSignedFields.md +0 -30
- package/src/git_push.sh +0 -57
- package/src/index.ts +0 -6
- package/src/request-signer.ts +0 -405
- package/src/sdk.ts +0 -982
- package/src/utils.ts +0 -6
- package/src/websocket.ts +0 -165
- package/tsconfig.json +0 -23
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# AffiliateMetadataFees
|
|
2
|
-
|
|
3
|
-
Map of various fee-related configurations
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**referralPerpsFee** | **string** | Earnings from referral perps fees (e9 format) | [optional] [default to undefined]
|
|
10
|
-
**subaffiliatePerpsEarnings** | **string** | Earnings from subaffiliate perps (e9 format) | [optional] [default to undefined]
|
|
11
|
-
**spotLPFee** | **string** | Earnings from spot LP fees (e9 format) | [optional] [default to undefined]
|
|
12
|
-
**referralSpotLPFee** | **string** | Earnings from referral spot LP fees (e9 format) | [optional] [default to undefined]
|
|
13
|
-
**referralLendingRewards** | **string** | Earnings from referral lending rewards (e9 format) | [optional] [default to undefined]
|
|
14
|
-
**perpsFeeCashback** | **string** | Cashback from perps fees (e9 format) | [optional] [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { AffiliateMetadataFees } from '@bluefin/api-client';
|
|
20
|
-
|
|
21
|
-
const instance: AffiliateMetadataFees = {
|
|
22
|
-
referralPerpsFee,
|
|
23
|
-
subaffiliatePerpsEarnings,
|
|
24
|
-
spotLPFee,
|
|
25
|
-
referralSpotLPFee,
|
|
26
|
-
referralLendingRewards,
|
|
27
|
-
perpsFeeCashback,
|
|
28
|
-
};
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# AffiliateOnboardResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**status** | **string** | Status of the application | [default to undefined]
|
|
9
|
-
**message** | **string** | Response message including rejection reason if application was rejected | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { AffiliateOnboardResponse } from '@bluefin/api-client';
|
|
15
|
-
|
|
16
|
-
const instance: AffiliateOnboardResponse = {
|
|
17
|
-
status,
|
|
18
|
-
message,
|
|
19
|
-
};
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# AffiliateOverview
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**userAddress** | **string** | The user\'s wallet address | [default to undefined]
|
|
9
|
-
**name** | **string** | Name of the affiliate | [optional] [default to undefined]
|
|
10
|
-
**perpsRefereeEarningsE9** | **string** | Referee earnings from perps trading (e9 format) | [default to undefined]
|
|
11
|
-
**spotLPRefereeEarningsE9** | **string** | Referee earnings from spot LP (e9 format) | [default to undefined]
|
|
12
|
-
**lendingRefereeEarningsE9** | **string** | Referee earnings from lending (e9 format) | [default to undefined]
|
|
13
|
-
**perpsReferralEarningsE9** | **string** | Referral earnings from perps trading (e9 format) | [default to undefined]
|
|
14
|
-
**spotLPReferralEarningsE9** | **string** | Referral earnings from spot LP (e9 format) | [default to undefined]
|
|
15
|
-
**lendingReferralEarningsE9** | **string** | Referral earnings from lending (e9 format) | [default to undefined]
|
|
16
|
-
**perpsTotalEarningsE9** | **string** | Total earnings from perps trading (e9 format) | [default to undefined]
|
|
17
|
-
**spotLPTotalEarningsE9** | **string** | Total earnings from spot LP (e9 format) | [default to undefined]
|
|
18
|
-
**lendingTotalEarningsE9** | **string** | Total earnings from lending (e9 format) | [default to undefined]
|
|
19
|
-
**totalReferralEarningsE9** | **string** | Total earnings from referrals (e9 format) | [default to undefined]
|
|
20
|
-
**totalRefereeEarningsE9** | **string** | Total earnings from referee activities (e9 format) | [default to undefined]
|
|
21
|
-
**totalEarningsE9** | **string** | Total earnings combining referrals and referee activities (e9 format) | [default to undefined]
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { AffiliateOverview } from '@bluefin/api-client';
|
|
27
|
-
|
|
28
|
-
const instance: AffiliateOverview = {
|
|
29
|
-
userAddress,
|
|
30
|
-
name,
|
|
31
|
-
perpsRefereeEarningsE9,
|
|
32
|
-
spotLPRefereeEarningsE9,
|
|
33
|
-
lendingRefereeEarningsE9,
|
|
34
|
-
perpsReferralEarningsE9,
|
|
35
|
-
spotLPReferralEarningsE9,
|
|
36
|
-
lendingReferralEarningsE9,
|
|
37
|
-
perpsTotalEarningsE9,
|
|
38
|
-
spotLPTotalEarningsE9,
|
|
39
|
-
lendingTotalEarningsE9,
|
|
40
|
-
totalReferralEarningsE9,
|
|
41
|
-
totalRefereeEarningsE9,
|
|
42
|
-
totalEarningsE9,
|
|
43
|
-
};
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# AffiliateSummary
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**userAddress** | **string** | The user\'s wallet address | [default to undefined]
|
|
9
|
-
**totalReferredUsers** | **number** | Total number of referees | [default to undefined]
|
|
10
|
-
**totalEarningsE9** | **string** | Total earnings in e9 format | [default to undefined]
|
|
11
|
-
**perpsRanking** | **number** | Ranking in perps trading category | [default to undefined]
|
|
12
|
-
**spotRanking** | **number** | Ranking in spot trading category | [default to undefined]
|
|
13
|
-
**lendRanking** | **number** | Ranking in lending category | [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { AffiliateSummary } from '@bluefin/api-client';
|
|
19
|
-
|
|
20
|
-
const instance: AffiliateSummary = {
|
|
21
|
-
userAddress,
|
|
22
|
-
totalReferredUsers,
|
|
23
|
-
totalEarningsE9,
|
|
24
|
-
perpsRanking,
|
|
25
|
-
spotRanking,
|
|
26
|
-
lendRanking,
|
|
27
|
-
};
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/Asset.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Asset
|
|
2
|
-
|
|
3
|
-
Details about an asset in the account.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**symbol** | **string** | The symbol of the asset. | [default to undefined]
|
|
10
|
-
**quantityE9** | **string** | The quantity of the asset. | [default to undefined]
|
|
11
|
-
**effectiveBalanceE9** | **string** | The effective balance of the asset. | [default to undefined]
|
|
12
|
-
**maxWithdrawQuantityE9** | **string** | The maximum quantity that can be withdrawn. | [default to undefined]
|
|
13
|
-
**updatedAtMillis** | **number** | The timestamp of the last update in milliseconds. | [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { Asset } from '@bluefin/api-client';
|
|
19
|
-
|
|
20
|
-
const instance: Asset = {
|
|
21
|
-
symbol,
|
|
22
|
-
quantityE9,
|
|
23
|
-
effectiveBalanceE9,
|
|
24
|
-
maxWithdrawQuantityE9,
|
|
25
|
-
updatedAtMillis,
|
|
26
|
-
};
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/AssetConfig.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# AssetConfig
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**assetType** | **string** | The bank address of the asset. | [default to undefined]
|
|
9
|
-
**symbol** | **string** | Asset symbol. | [default to undefined]
|
|
10
|
-
**decimals** | **number** | Default precision for rendering this asset. | [default to undefined]
|
|
11
|
-
**weight** | **string** | Weight applied to asset to use as margin in Multi-Assets mode. | [default to undefined]
|
|
12
|
-
**marginAvailable** | **boolean** | Indicates if the asset can be used as margin in Multi-Assets mode. | [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { AssetConfig } from '@bluefin/api-client';
|
|
18
|
-
|
|
19
|
-
const instance: AssetConfig = {
|
|
20
|
-
assetType,
|
|
21
|
-
symbol,
|
|
22
|
-
decimals,
|
|
23
|
-
weight,
|
|
24
|
-
marginAvailable,
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/src/docs/AuthApi.md
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
# AuthApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.sui-staging.bluefin.io*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**authJwksGet**](#authjwksget) | **GET** /auth/jwks | |
|
|
8
|
-
|[**authTokenPost**](#authtokenpost) | **POST** /auth/token | |
|
|
9
|
-
|[**authTokenRefreshPut**](#authtokenrefreshput) | **PUT** /auth/token/refresh | |
|
|
10
|
-
|[**authV2TokenPost**](#authv2tokenpost) | **POST** /auth/v2/token | |
|
|
11
|
-
|
|
12
|
-
# **authJwksGet**
|
|
13
|
-
> { [key: string]: any | undefined; } authJwksGet()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
AuthApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@bluefin/api-client';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new AuthApi(configuration);
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.authJwksGet();
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Parameters
|
|
31
|
-
This endpoint does not have any parameters.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Return type
|
|
35
|
-
|
|
36
|
-
**{ [key: string]: any | undefined; }**
|
|
37
|
-
|
|
38
|
-
### Authorization
|
|
39
|
-
|
|
40
|
-
No authorization required
|
|
41
|
-
|
|
42
|
-
### HTTP request headers
|
|
43
|
-
|
|
44
|
-
- **Content-Type**: Not defined
|
|
45
|
-
- **Accept**: application/json
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### HTTP response details
|
|
49
|
-
| Status code | Description | Response headers |
|
|
50
|
-
|-------------|-------------|------------------|
|
|
51
|
-
|**200** | OK | - |
|
|
52
|
-
|**0** | Unexpected error | - |
|
|
53
|
-
|
|
54
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
55
|
-
|
|
56
|
-
# **authTokenPost**
|
|
57
|
-
> LoginResponse authTokenPost(loginRequest)
|
|
58
|
-
|
|
59
|
-
login with token
|
|
60
|
-
|
|
61
|
-
### Example
|
|
62
|
-
|
|
63
|
-
```typescript
|
|
64
|
-
import {
|
|
65
|
-
AuthApi,
|
|
66
|
-
Configuration,
|
|
67
|
-
LoginRequest
|
|
68
|
-
} from '@bluefin/api-client';
|
|
69
|
-
|
|
70
|
-
const configuration = new Configuration();
|
|
71
|
-
const apiInstance = new AuthApi(configuration);
|
|
72
|
-
|
|
73
|
-
let payloadSignature: string; // (default to undefined)
|
|
74
|
-
let loginRequest: LoginRequest; //
|
|
75
|
-
let refreshTokenValidForSeconds: number; //The number of seconds the refresh token is valid for. If not provided, the default is 30 days. (optional) (default to 2592000)
|
|
76
|
-
let readOnly: boolean; // (optional) (default to false)
|
|
77
|
-
|
|
78
|
-
const { status, data } = await apiInstance.authTokenPost(
|
|
79
|
-
payloadSignature,
|
|
80
|
-
loginRequest,
|
|
81
|
-
refreshTokenValidForSeconds,
|
|
82
|
-
readOnly
|
|
83
|
-
);
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Parameters
|
|
87
|
-
|
|
88
|
-
|Name | Type | Description | Notes|
|
|
89
|
-
|------------- | ------------- | ------------- | -------------|
|
|
90
|
-
| **loginRequest** | **LoginRequest**| | |
|
|
91
|
-
| **payloadSignature** | [**string**] | | defaults to undefined|
|
|
92
|
-
| **refreshTokenValidForSeconds** | [**number**] | The number of seconds the refresh token is valid for. If not provided, the default is 30 days. | (optional) defaults to 2592000|
|
|
93
|
-
| **readOnly** | [**boolean**] | | (optional) defaults to false|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**LoginResponse**
|
|
99
|
-
|
|
100
|
-
### Authorization
|
|
101
|
-
|
|
102
|
-
No authorization required
|
|
103
|
-
|
|
104
|
-
### HTTP request headers
|
|
105
|
-
|
|
106
|
-
- **Content-Type**: Not defined
|
|
107
|
-
- **Accept**: application/json
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### HTTP response details
|
|
111
|
-
| Status code | Description | Response headers |
|
|
112
|
-
|-------------|-------------|------------------|
|
|
113
|
-
|**200** | OK | - |
|
|
114
|
-
|**400** | bad signature | - |
|
|
115
|
-
|**401** | invalid signature | - |
|
|
116
|
-
|**403** | invalid audience | - |
|
|
117
|
-
|**500** | internal server error | - |
|
|
118
|
-
|**0** | Unexpected error | - |
|
|
119
|
-
|
|
120
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
121
|
-
|
|
122
|
-
# **authTokenRefreshPut**
|
|
123
|
-
> RefreshTokenResponse authTokenRefreshPut(refreshTokenRequest)
|
|
124
|
-
|
|
125
|
-
Retrieves a new auth token for an account. Expiry is set to 5 min
|
|
126
|
-
|
|
127
|
-
### Example
|
|
128
|
-
|
|
129
|
-
```typescript
|
|
130
|
-
import {
|
|
131
|
-
AuthApi,
|
|
132
|
-
Configuration,
|
|
133
|
-
RefreshTokenRequest
|
|
134
|
-
} from '@bluefin/api-client';
|
|
135
|
-
|
|
136
|
-
const configuration = new Configuration();
|
|
137
|
-
const apiInstance = new AuthApi(configuration);
|
|
138
|
-
|
|
139
|
-
let refreshTokenRequest: RefreshTokenRequest; //
|
|
140
|
-
|
|
141
|
-
const { status, data } = await apiInstance.authTokenRefreshPut(
|
|
142
|
-
refreshTokenRequest
|
|
143
|
-
);
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Parameters
|
|
147
|
-
|
|
148
|
-
|Name | Type | Description | Notes|
|
|
149
|
-
|------------- | ------------- | ------------- | -------------|
|
|
150
|
-
| **refreshTokenRequest** | **RefreshTokenRequest**| | |
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### Return type
|
|
154
|
-
|
|
155
|
-
**RefreshTokenResponse**
|
|
156
|
-
|
|
157
|
-
### Authorization
|
|
158
|
-
|
|
159
|
-
No authorization required
|
|
160
|
-
|
|
161
|
-
### HTTP request headers
|
|
162
|
-
|
|
163
|
-
- **Content-Type**: application/json
|
|
164
|
-
- **Accept**: application/json
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### HTTP response details
|
|
168
|
-
| Status code | Description | Response headers |
|
|
169
|
-
|-------------|-------------|------------------|
|
|
170
|
-
|**200** | OK | - |
|
|
171
|
-
|**401** | invalid signature | - |
|
|
172
|
-
|**400** | missing refresh token in request | - |
|
|
173
|
-
|**500** | internal server error | - |
|
|
174
|
-
|**0** | Unexpected error | - |
|
|
175
|
-
|
|
176
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
177
|
-
|
|
178
|
-
# **authV2TokenPost**
|
|
179
|
-
> LoginResponse authV2TokenPost(loginRequest)
|
|
180
|
-
|
|
181
|
-
login compatible with BCS payload with intent bytes
|
|
182
|
-
|
|
183
|
-
### Example
|
|
184
|
-
|
|
185
|
-
```typescript
|
|
186
|
-
import {
|
|
187
|
-
AuthApi,
|
|
188
|
-
Configuration,
|
|
189
|
-
LoginRequest
|
|
190
|
-
} from '@bluefin/api-client';
|
|
191
|
-
|
|
192
|
-
const configuration = new Configuration();
|
|
193
|
-
const apiInstance = new AuthApi(configuration);
|
|
194
|
-
|
|
195
|
-
let payloadSignature: string; // (default to undefined)
|
|
196
|
-
let loginRequest: LoginRequest; //
|
|
197
|
-
let refreshTokenValidForSeconds: number; //The number of seconds the refresh token is valid for. If not provided, the default is 30 days. (optional) (default to 2592000)
|
|
198
|
-
let readOnly: boolean; // (optional) (default to false)
|
|
199
|
-
|
|
200
|
-
const { status, data } = await apiInstance.authV2TokenPost(
|
|
201
|
-
payloadSignature,
|
|
202
|
-
loginRequest,
|
|
203
|
-
refreshTokenValidForSeconds,
|
|
204
|
-
readOnly
|
|
205
|
-
);
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### Parameters
|
|
209
|
-
|
|
210
|
-
|Name | Type | Description | Notes|
|
|
211
|
-
|------------- | ------------- | ------------- | -------------|
|
|
212
|
-
| **loginRequest** | **LoginRequest**| | |
|
|
213
|
-
| **payloadSignature** | [**string**] | | defaults to undefined|
|
|
214
|
-
| **refreshTokenValidForSeconds** | [**number**] | The number of seconds the refresh token is valid for. If not provided, the default is 30 days. | (optional) defaults to 2592000|
|
|
215
|
-
| **readOnly** | [**boolean**] | | (optional) defaults to false|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
### Return type
|
|
219
|
-
|
|
220
|
-
**LoginResponse**
|
|
221
|
-
|
|
222
|
-
### Authorization
|
|
223
|
-
|
|
224
|
-
No authorization required
|
|
225
|
-
|
|
226
|
-
### HTTP request headers
|
|
227
|
-
|
|
228
|
-
- **Content-Type**: Not defined
|
|
229
|
-
- **Accept**: application/json
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
### HTTP response details
|
|
233
|
-
| Status code | Description | Response headers |
|
|
234
|
-
|-------------|-------------|------------------|
|
|
235
|
-
|**200** | OK | - |
|
|
236
|
-
|**400** | bad signature | - |
|
|
237
|
-
|**401** | invalid signature | - |
|
|
238
|
-
|**403** | invalid audience | - |
|
|
239
|
-
|**500** | internal server error | - |
|
|
240
|
-
|**0** | Unexpected error | - |
|
|
241
|
-
|
|
242
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
243
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# AuthorizedWallet
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**address** | **string** | The address of the authorized wallet. | [default to undefined]
|
|
9
|
-
**alias** | **string** | The alias of the authorized wallet. | [optional] [default to undefined]
|
|
10
|
-
**authorizedAtMillis** | **number** | The timestamp in milliseconds when the wallet was authorized. | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AuthorizedWallet } from '@bluefin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AuthorizedWallet = {
|
|
18
|
-
address,
|
|
19
|
-
alias,
|
|
20
|
-
authorizedAtMillis,
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# CampaignMetadata
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**status** | **string** | | [default to undefined]
|
|
9
|
-
**campaignName** | **string** | Name of the campaign. | [default to undefined]
|
|
10
|
-
**parentCampaignName** | **string** | Name of the parent campaign. | [default to undefined]
|
|
11
|
-
**startDate** | **number** | Time in seconds for campaign start date. | [default to undefined]
|
|
12
|
-
**endDate** | **number** | Time in seconds for campaign end date. | [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { CampaignMetadata } from '@bluefin/api-client';
|
|
18
|
-
|
|
19
|
-
const instance: CampaignMetadata = {
|
|
20
|
-
status,
|
|
21
|
-
campaignName,
|
|
22
|
-
parentCampaignName,
|
|
23
|
-
startDate,
|
|
24
|
-
endDate,
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# CampaignRewards
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
import { CampaignRewards } from '@bluefin/api-client';
|
|
13
|
-
|
|
14
|
-
const instance: CampaignRewards = {
|
|
15
|
-
};
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# CancelOrdersRequest
|
|
2
|
-
|
|
3
|
-
Cancelling Orders for a specific symbol. If order hashes are not specified, all orders are canceled for this symbol
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**symbol** | **string** | The symbol of the perpetual for which to cancel orders. | [default to undefined]
|
|
10
|
-
**orderHashes** | **Array<string>** | List of order hashes of the orders to be cancelled. All orders must belong to accountAddress. Max 10 order hashes | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { CancelOrdersRequest } from '@bluefin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: CancelOrdersRequest = {
|
|
18
|
-
symbol,
|
|
19
|
-
orderHashes,
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# CancelOrdersResponse
|
|
2
|
-
|
|
3
|
-
Response to a request to cancel orders.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**orderHashes** | **Array<string>** | The order hashes of the cancelled orders. | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { CancelOrdersResponse } from '@bluefin/api-client';
|
|
15
|
-
|
|
16
|
-
const instance: CancelOrdersResponse = {
|
|
17
|
-
orderHashes,
|
|
18
|
-
};
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# CandlePriceType
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Enum
|
|
5
|
-
|
|
6
|
-
* `Last` (value: `'Last'`)
|
|
7
|
-
|
|
8
|
-
* `Market` (value: `'Market'`)
|
|
9
|
-
|
|
10
|
-
* `Oracle` (value: `'Oracle'`)
|
|
11
|
-
|
|
12
|
-
* `Unspecified` (value: `'UNSPECIFIED'`)
|
|
13
|
-
|
|
14
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# CandlestickUpdate
|
|
2
|
-
|
|
3
|
-
Represents a candlestick for a specific market and interval.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**symbol** | **string** | The symbol of the market for this candlestick. | [default to undefined]
|
|
10
|
-
**startTime** | **number** | The start time of the candlestick in milliseconds since epoch. | [default to undefined]
|
|
11
|
-
**endTime** | **number** | The end time of the candlestick in milliseconds since epoch. | [default to undefined]
|
|
12
|
-
**interval** | **string** | The interval of the candlestick (e.g., 1m, 5m, 1h). | [default to undefined]
|
|
13
|
-
**openPriceE9** | **string** | The opening price of the candlestick. | [default to undefined]
|
|
14
|
-
**closePriceE9** | **string** | The closing price of the candlestick. | [default to undefined]
|
|
15
|
-
**highPriceE9** | **string** | The highest price during the candlestick interval. | [default to undefined]
|
|
16
|
-
**lowPriceE9** | **string** | The lowest price during the candlestick interval. | [default to undefined]
|
|
17
|
-
**volumeE9** | **string** | The total trading volume during the candlestick interval. | [default to undefined]
|
|
18
|
-
**quoteVolumeE9** | **string** | The total quote volume traded during the candlestick interval. | [default to undefined]
|
|
19
|
-
**numTrades** | **number** | The number of trades that occurred during the candlestick interval. | [default to undefined]
|
|
20
|
-
|
|
21
|
-
## Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { CandlestickUpdate } from '@bluefin/api-client';
|
|
25
|
-
|
|
26
|
-
const instance: CandlestickUpdate = {
|
|
27
|
-
symbol,
|
|
28
|
-
startTime,
|
|
29
|
-
endTime,
|
|
30
|
-
interval,
|
|
31
|
-
openPriceE9,
|
|
32
|
-
closePriceE9,
|
|
33
|
-
highPriceE9,
|
|
34
|
-
lowPriceE9,
|
|
35
|
-
volumeE9,
|
|
36
|
-
quoteVolumeE9,
|
|
37
|
-
numTrades,
|
|
38
|
-
};
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# CommandFailureReasonCode
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Enum
|
|
5
|
-
|
|
6
|
-
* `Unspecified` (value: `'UNSPECIFIED'`)
|
|
7
|
-
|
|
8
|
-
* `UnknownAddress` (value: `'UNKNOWN_ADDRESS'`)
|
|
9
|
-
|
|
10
|
-
* `UnknownSymbol` (value: `'UNKNOWN_SYMBOL'`)
|
|
11
|
-
|
|
12
|
-
* `NoPosition` (value: `'NO_POSITION'`)
|
|
13
|
-
|
|
14
|
-
* `InsufficientBalance` (value: `'INSUFFICIENT_BALANCE'`)
|
|
15
|
-
|
|
16
|
-
* `DuplicateCommandHash` (value: `'DUPLICATE_COMMAND_HASH'`)
|
|
17
|
-
|
|
18
|
-
* `InvalidLeverage` (value: `'INVALID_LEVERAGE'`)
|
|
19
|
-
|
|
20
|
-
* `UnknownMarket` (value: `'UNKNOWN_MARKET'`)
|
|
21
|
-
|
|
22
|
-
* `Unexpected` (value: `'UNEXPECTED'`)
|
|
23
|
-
|
|
24
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# ContractsConfig
|
|
2
|
-
|
|
3
|
-
Contract configuration for the exchange.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**edsId** | **string** | External Data Store Address | [default to undefined]
|
|
10
|
-
**idsId** | **string** | External Data Store Address | [default to undefined]
|
|
11
|
-
**network** | **string** | Network environment | [default to undefined]
|
|
12
|
-
**baseContractAddress** | **string** | Base contract address | [default to undefined]
|
|
13
|
-
**currentContractAddress** | **string** | Current contract address | [default to undefined]
|
|
14
|
-
**operators** | [**Operators**](Operators.md) | | [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { ContractsConfig } from '@bluefin/api-client';
|
|
20
|
-
|
|
21
|
-
const instance: ContractsConfig = {
|
|
22
|
-
edsId,
|
|
23
|
-
idsId,
|
|
24
|
-
network,
|
|
25
|
-
baseContractAddress,
|
|
26
|
-
currentContractAddress,
|
|
27
|
-
operators,
|
|
28
|
-
};
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|