@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
package/src/docs/RewardsApi.md
DELETED
|
@@ -1,859 +0,0 @@
|
|
|
1
|
-
# RewardsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.sui-staging.bluefin.io*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getAffiliateIntervalOverview**](#getaffiliateintervaloverview) | **GET** /v1/rewards/affiliate/intervalOverview | /rewards/affiliate/intervalOverview|
|
|
8
|
-
|[**getAffiliateLeaderDashboard**](#getaffiliateleaderdashboard) | **GET** /v1/rewards/affiliate/leaderDashboard | /rewards/affiliate/leaderDashboard|
|
|
9
|
-
|[**getAffiliateMetadata**](#getaffiliatemetadata) | **GET** /v1/rewards/affiliate | /rewards/affiliate|
|
|
10
|
-
|[**getAffiliateOverview**](#getaffiliateoverview) | **GET** /v1/rewards/affiliate/overview | /rewards/affiliate/overview|
|
|
11
|
-
|[**getAffiliateSummary**](#getaffiliatesummary) | **GET** /v1/rewards/affiliate/summary | /rewards/affiliate/summary|
|
|
12
|
-
|[**getCampaignRewards**](#getcampaignrewards) | **GET** /v1/rewards/campaign | /rewards/campaign|
|
|
13
|
-
|[**getRewards**](#getrewards) | **GET** /v1/rewards | /rewards|
|
|
14
|
-
|[**getRewardsCampaignMetadata**](#getrewardscampaignmetadata) | **GET** /v1/rewards/metadata/campaign | /rewards/metadata/campaign|
|
|
15
|
-
|[**getRewardsEpochConfigMetadata**](#getrewardsepochconfigmetadata) | **GET** /v1/rewards/metadata/epoch/configs | /rewards/metadata/epoch/configs|
|
|
16
|
-
|[**getRewardsEpochMetadata**](#getrewardsepochmetadata) | **GET** /v1/rewards/metadata/epoch | /rewards/metadata/epoch|
|
|
17
|
-
|[**getRewardsIntervalMetadata**](#getrewardsintervalmetadata) | **GET** /v1/rewards/metadata/interval | /rewards/metadata/interval|
|
|
18
|
-
|[**getRewardsSummary**](#getrewardssummary) | **GET** /v1/rewards/summary | /rewards/summary|
|
|
19
|
-
|[**onboardAffiliate**](#onboardaffiliate) | **POST** /v1/rewards/affiliate/onboard | /rewards/affiliate/onboard|
|
|
20
|
-
|[**onboardReferee**](#onboardreferee) | **POST** /v1/rewards/affiliate/onboard/referee | /rewards/affiliate/onboard/referee|
|
|
21
|
-
|[**updateAffiliateFeeConfig**](#updateaffiliatefeeconfig) | **POST** /v1/rewards/affiliate/feeConfig | /rewards/affiliate/feeConfig|
|
|
22
|
-
|
|
23
|
-
# **getAffiliateIntervalOverview**
|
|
24
|
-
> GetAffiliateIntervalOverview200Response getAffiliateIntervalOverview()
|
|
25
|
-
|
|
26
|
-
Returns detailed earnings breakdown for an affiliate by interval, ordered by interval number in descending order.
|
|
27
|
-
|
|
28
|
-
### Example
|
|
29
|
-
|
|
30
|
-
```typescript
|
|
31
|
-
import {
|
|
32
|
-
RewardsApi,
|
|
33
|
-
Configuration
|
|
34
|
-
} from '@bluefin/api-client';
|
|
35
|
-
|
|
36
|
-
const configuration = new Configuration();
|
|
37
|
-
const apiInstance = new RewardsApi(configuration);
|
|
38
|
-
|
|
39
|
-
let userAddress: string; //The address of the user to get interval overview for (default to undefined)
|
|
40
|
-
let page: number; //The page number to retrieve in a paginated response (optional) (default to 1)
|
|
41
|
-
let limit: number; //The page size for pagination (optional) (default to 500)
|
|
42
|
-
|
|
43
|
-
const { status, data } = await apiInstance.getAffiliateIntervalOverview(
|
|
44
|
-
userAddress,
|
|
45
|
-
page,
|
|
46
|
-
limit
|
|
47
|
-
);
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Parameters
|
|
51
|
-
|
|
52
|
-
|Name | Type | Description | Notes|
|
|
53
|
-
|------------- | ------------- | ------------- | -------------|
|
|
54
|
-
| **userAddress** | [**string**] | The address of the user to get interval overview for | defaults to undefined|
|
|
55
|
-
| **page** | [**number**] | The page number to retrieve in a paginated response | (optional) defaults to 1|
|
|
56
|
-
| **limit** | [**number**] | The page size for pagination | (optional) defaults to 500|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Return type
|
|
60
|
-
|
|
61
|
-
**GetAffiliateIntervalOverview200Response**
|
|
62
|
-
|
|
63
|
-
### Authorization
|
|
64
|
-
|
|
65
|
-
No authorization required
|
|
66
|
-
|
|
67
|
-
### HTTP request headers
|
|
68
|
-
|
|
69
|
-
- **Content-Type**: Not defined
|
|
70
|
-
- **Accept**: application/json
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### HTTP response details
|
|
74
|
-
| Status code | Description | Response headers |
|
|
75
|
-
|-------------|-------------|------------------|
|
|
76
|
-
|**200** | Successful response array of affiliate interval overview objects | - |
|
|
77
|
-
|**401** | unauthorized access | - |
|
|
78
|
-
|**404** | address not found | - |
|
|
79
|
-
|**400** | request missing required parameters | - |
|
|
80
|
-
|
|
81
|
-
[[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)
|
|
82
|
-
|
|
83
|
-
# **getAffiliateLeaderDashboard**
|
|
84
|
-
> GetAffiliateLeaderDashboard200Response getAffiliateLeaderDashboard()
|
|
85
|
-
|
|
86
|
-
Returns rankings and earnings for affiliates, sorted by the specified category.
|
|
87
|
-
|
|
88
|
-
### Example
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
import {
|
|
92
|
-
RewardsApi,
|
|
93
|
-
Configuration
|
|
94
|
-
} from '@bluefin/api-client';
|
|
95
|
-
|
|
96
|
-
const configuration = new Configuration();
|
|
97
|
-
const apiInstance = new RewardsApi(configuration);
|
|
98
|
-
|
|
99
|
-
let sortBy: 'perpsRank' | 'lendingRank' | 'spotRank'; //The category to sort rankings by (optional) (default to 'perpsRank')
|
|
100
|
-
let sortOrder: 'asc' | 'desc'; //The order to sort rankings by (optional) (default to undefined)
|
|
101
|
-
let page: number; //The page number to retrieve in a paginated response (optional) (default to 1)
|
|
102
|
-
let limit: number; //The page size for pagination (optional) (default to 500)
|
|
103
|
-
let search: string; //The name/address of the user to filter by (optional) (default to undefined)
|
|
104
|
-
|
|
105
|
-
const { status, data } = await apiInstance.getAffiliateLeaderDashboard(
|
|
106
|
-
sortBy,
|
|
107
|
-
sortOrder,
|
|
108
|
-
page,
|
|
109
|
-
limit,
|
|
110
|
-
search
|
|
111
|
-
);
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Parameters
|
|
115
|
-
|
|
116
|
-
|Name | Type | Description | Notes|
|
|
117
|
-
|------------- | ------------- | ------------- | -------------|
|
|
118
|
-
| **sortBy** | [**'perpsRank' | 'lendingRank' | 'spotRank'**]**Array<'perpsRank' | 'lendingRank' | 'spotRank'>** | The category to sort rankings by | (optional) defaults to 'perpsRank'|
|
|
119
|
-
| **sortOrder** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | The order to sort rankings by | (optional) defaults to undefined|
|
|
120
|
-
| **page** | [**number**] | The page number to retrieve in a paginated response | (optional) defaults to 1|
|
|
121
|
-
| **limit** | [**number**] | The page size for pagination | (optional) defaults to 500|
|
|
122
|
-
| **search** | [**string**] | The name/address of the user to filter by | (optional) defaults to undefined|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
### Return type
|
|
126
|
-
|
|
127
|
-
**GetAffiliateLeaderDashboard200Response**
|
|
128
|
-
|
|
129
|
-
### Authorization
|
|
130
|
-
|
|
131
|
-
No authorization required
|
|
132
|
-
|
|
133
|
-
### HTTP request headers
|
|
134
|
-
|
|
135
|
-
- **Content-Type**: Not defined
|
|
136
|
-
- **Accept**: application/json
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
### HTTP response details
|
|
140
|
-
| Status code | Description | Response headers |
|
|
141
|
-
|-------------|-------------|------------------|
|
|
142
|
-
|**200** | Successful response array of affiliate ranking and earnings objects | - |
|
|
143
|
-
|**401** | unauthorized access | - |
|
|
144
|
-
|**404** | address not found | - |
|
|
145
|
-
|**400** | request missing required parameters | - |
|
|
146
|
-
|
|
147
|
-
[[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)
|
|
148
|
-
|
|
149
|
-
# **getAffiliateMetadata**
|
|
150
|
-
> AffiliateMetadata getAffiliateMetadata()
|
|
151
|
-
|
|
152
|
-
Returns the affiliate metadata.
|
|
153
|
-
|
|
154
|
-
### Example
|
|
155
|
-
|
|
156
|
-
```typescript
|
|
157
|
-
import {
|
|
158
|
-
RewardsApi,
|
|
159
|
-
Configuration
|
|
160
|
-
} from '@bluefin/api-client';
|
|
161
|
-
|
|
162
|
-
const configuration = new Configuration();
|
|
163
|
-
const apiInstance = new RewardsApi(configuration);
|
|
164
|
-
|
|
165
|
-
let userAddress: string; //Specify wallet address. (default to undefined)
|
|
166
|
-
|
|
167
|
-
const { status, data } = await apiInstance.getAffiliateMetadata(
|
|
168
|
-
userAddress
|
|
169
|
-
);
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Parameters
|
|
173
|
-
|
|
174
|
-
|Name | Type | Description | Notes|
|
|
175
|
-
|------------- | ------------- | ------------- | -------------|
|
|
176
|
-
| **userAddress** | [**string**] | Specify wallet address. | defaults to undefined|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### Return type
|
|
180
|
-
|
|
181
|
-
**AffiliateMetadata**
|
|
182
|
-
|
|
183
|
-
### Authorization
|
|
184
|
-
|
|
185
|
-
No authorization required
|
|
186
|
-
|
|
187
|
-
### HTTP request headers
|
|
188
|
-
|
|
189
|
-
- **Content-Type**: Not defined
|
|
190
|
-
- **Accept**: application/json
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### HTTP response details
|
|
194
|
-
| Status code | Description | Response headers |
|
|
195
|
-
|-------------|-------------|------------------|
|
|
196
|
-
|**200** | Successful response | - |
|
|
197
|
-
|**401** | unauthorized access | - |
|
|
198
|
-
|**404** | address not found | - |
|
|
199
|
-
|**400** | request missing required parameters | - |
|
|
200
|
-
|
|
201
|
-
[[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)
|
|
202
|
-
|
|
203
|
-
# **getAffiliateOverview**
|
|
204
|
-
> GetAffiliateOverview200Response getAffiliateOverview()
|
|
205
|
-
|
|
206
|
-
Returns detailed earnings breakdown for an affiliate users earnings (including perps, spot LP, lending), referral earnings, and total earnings.
|
|
207
|
-
|
|
208
|
-
### Example
|
|
209
|
-
|
|
210
|
-
```typescript
|
|
211
|
-
import {
|
|
212
|
-
RewardsApi,
|
|
213
|
-
Configuration
|
|
214
|
-
} from '@bluefin/api-client';
|
|
215
|
-
|
|
216
|
-
const configuration = new Configuration();
|
|
217
|
-
const apiInstance = new RewardsApi(configuration);
|
|
218
|
-
|
|
219
|
-
let userAddress: string; //Specify wallet address. (default to undefined)
|
|
220
|
-
let page: number; //The page number to retrieve in a paginated response (optional) (default to 1)
|
|
221
|
-
let limit: number; //The page size for pagination (optional) (default to 500)
|
|
222
|
-
let sortBy: 'refreeEarnings' | 'referralEarnings' | 'totalEarnings'; //The category to sort earnings by (optional) (default to 'totalEarnings')
|
|
223
|
-
let sortOrder: 'asc' | 'desc'; //The order to sort earnings by (optional) (default to undefined)
|
|
224
|
-
let search: string; //The name/address of the user to filter by (optional) (default to undefined)
|
|
225
|
-
let minEarningsE9: string; //The minimum earnings to filter by (optional) (default to '0')
|
|
226
|
-
|
|
227
|
-
const { status, data } = await apiInstance.getAffiliateOverview(
|
|
228
|
-
userAddress,
|
|
229
|
-
page,
|
|
230
|
-
limit,
|
|
231
|
-
sortBy,
|
|
232
|
-
sortOrder,
|
|
233
|
-
search,
|
|
234
|
-
minEarningsE9
|
|
235
|
-
);
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Parameters
|
|
239
|
-
|
|
240
|
-
|Name | Type | Description | Notes|
|
|
241
|
-
|------------- | ------------- | ------------- | -------------|
|
|
242
|
-
| **userAddress** | [**string**] | Specify wallet address. | defaults to undefined|
|
|
243
|
-
| **page** | [**number**] | The page number to retrieve in a paginated response | (optional) defaults to 1|
|
|
244
|
-
| **limit** | [**number**] | The page size for pagination | (optional) defaults to 500|
|
|
245
|
-
| **sortBy** | [**'refreeEarnings' | 'referralEarnings' | 'totalEarnings'**]**Array<'refreeEarnings' | 'referralEarnings' | 'totalEarnings'>** | The category to sort earnings by | (optional) defaults to 'totalEarnings'|
|
|
246
|
-
| **sortOrder** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | The order to sort earnings by | (optional) defaults to undefined|
|
|
247
|
-
| **search** | [**string**] | The name/address of the user to filter by | (optional) defaults to undefined|
|
|
248
|
-
| **minEarningsE9** | [**string**] | The minimum earnings to filter by | (optional) defaults to '0'|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
### Return type
|
|
252
|
-
|
|
253
|
-
**GetAffiliateOverview200Response**
|
|
254
|
-
|
|
255
|
-
### Authorization
|
|
256
|
-
|
|
257
|
-
No authorization required
|
|
258
|
-
|
|
259
|
-
### HTTP request headers
|
|
260
|
-
|
|
261
|
-
- **Content-Type**: Not defined
|
|
262
|
-
- **Accept**: application/json
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### HTTP response details
|
|
266
|
-
| Status code | Description | Response headers |
|
|
267
|
-
|-------------|-------------|------------------|
|
|
268
|
-
|**200** | Successful response array of affiliate overview objects | - |
|
|
269
|
-
|**401** | unauthorized access | - |
|
|
270
|
-
|**404** | address not found | - |
|
|
271
|
-
|**400** | request missing required parameters | - |
|
|
272
|
-
|
|
273
|
-
[[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)
|
|
274
|
-
|
|
275
|
-
# **getAffiliateSummary**
|
|
276
|
-
> AffiliateSummary getAffiliateSummary()
|
|
277
|
-
|
|
278
|
-
Returns performance summary for an affiliate including total referrals, earnings, and rankings.
|
|
279
|
-
|
|
280
|
-
### Example
|
|
281
|
-
|
|
282
|
-
```typescript
|
|
283
|
-
import {
|
|
284
|
-
RewardsApi,
|
|
285
|
-
Configuration
|
|
286
|
-
} from '@bluefin/api-client';
|
|
287
|
-
|
|
288
|
-
const configuration = new Configuration();
|
|
289
|
-
const apiInstance = new RewardsApi(configuration);
|
|
290
|
-
|
|
291
|
-
let userAddress: string; //Specify wallet address. (default to undefined)
|
|
292
|
-
|
|
293
|
-
const { status, data } = await apiInstance.getAffiliateSummary(
|
|
294
|
-
userAddress
|
|
295
|
-
);
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
### Parameters
|
|
299
|
-
|
|
300
|
-
|Name | Type | Description | Notes|
|
|
301
|
-
|------------- | ------------- | ------------- | -------------|
|
|
302
|
-
| **userAddress** | [**string**] | Specify wallet address. | defaults to undefined|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Return type
|
|
306
|
-
|
|
307
|
-
**AffiliateSummary**
|
|
308
|
-
|
|
309
|
-
### Authorization
|
|
310
|
-
|
|
311
|
-
No authorization required
|
|
312
|
-
|
|
313
|
-
### HTTP request headers
|
|
314
|
-
|
|
315
|
-
- **Content-Type**: Not defined
|
|
316
|
-
- **Accept**: application/json
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### HTTP response details
|
|
320
|
-
| Status code | Description | Response headers |
|
|
321
|
-
|-------------|-------------|------------------|
|
|
322
|
-
|**200** | Successful response of affiliate summary | - |
|
|
323
|
-
|**401** | unauthorized access | - |
|
|
324
|
-
|**404** | address not found | - |
|
|
325
|
-
|**400** | request missing required parameters | - |
|
|
326
|
-
|
|
327
|
-
[[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)
|
|
328
|
-
|
|
329
|
-
# **getCampaignRewards**
|
|
330
|
-
> Array<UserCampaignRewards> getCampaignRewards()
|
|
331
|
-
|
|
332
|
-
Returns the rewards earned by users for a specific campaign.
|
|
333
|
-
|
|
334
|
-
### Example
|
|
335
|
-
|
|
336
|
-
```typescript
|
|
337
|
-
import {
|
|
338
|
-
RewardsApi,
|
|
339
|
-
Configuration
|
|
340
|
-
} from '@bluefin/api-client';
|
|
341
|
-
|
|
342
|
-
const configuration = new Configuration();
|
|
343
|
-
const apiInstance = new RewardsApi(configuration);
|
|
344
|
-
|
|
345
|
-
let campaignName: string; //Specify the campaign name (default to undefined)
|
|
346
|
-
let userAddress: string; //Specify wallet address. (default to undefined)
|
|
347
|
-
let epochNumber: number; //Optionally specify epoch number. (optional) (default to undefined)
|
|
348
|
-
|
|
349
|
-
const { status, data } = await apiInstance.getCampaignRewards(
|
|
350
|
-
campaignName,
|
|
351
|
-
userAddress,
|
|
352
|
-
epochNumber
|
|
353
|
-
);
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
### Parameters
|
|
357
|
-
|
|
358
|
-
|Name | Type | Description | Notes|
|
|
359
|
-
|------------- | ------------- | ------------- | -------------|
|
|
360
|
-
| **campaignName** | [**string**] | Specify the campaign name | defaults to undefined|
|
|
361
|
-
| **userAddress** | [**string**] | Specify wallet address. | defaults to undefined|
|
|
362
|
-
| **epochNumber** | [**number**] | Optionally specify epoch number. | (optional) defaults to undefined|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
### Return type
|
|
366
|
-
|
|
367
|
-
**Array<UserCampaignRewards>**
|
|
368
|
-
|
|
369
|
-
### Authorization
|
|
370
|
-
|
|
371
|
-
No authorization required
|
|
372
|
-
|
|
373
|
-
### HTTP request headers
|
|
374
|
-
|
|
375
|
-
- **Content-Type**: Not defined
|
|
376
|
-
- **Accept**: application/json
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
### HTTP response details
|
|
380
|
-
| Status code | Description | Response headers |
|
|
381
|
-
|-------------|-------------|------------------|
|
|
382
|
-
|**200** | Successful response | - |
|
|
383
|
-
|**400** | request missing required parameters | - |
|
|
384
|
-
|
|
385
|
-
[[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)
|
|
386
|
-
|
|
387
|
-
# **getRewards**
|
|
388
|
-
> Array<IntervalRewards> getRewards()
|
|
389
|
-
|
|
390
|
-
Returns the rewards earned by users for the intervals.
|
|
391
|
-
|
|
392
|
-
### Example
|
|
393
|
-
|
|
394
|
-
```typescript
|
|
395
|
-
import {
|
|
396
|
-
RewardsApi,
|
|
397
|
-
Configuration
|
|
398
|
-
} from '@bluefin/api-client';
|
|
399
|
-
|
|
400
|
-
const configuration = new Configuration();
|
|
401
|
-
const apiInstance = new RewardsApi(configuration);
|
|
402
|
-
|
|
403
|
-
let intervalNumber: number; //Optionally specify interval number. (optional) (default to undefined)
|
|
404
|
-
|
|
405
|
-
const { status, data } = await apiInstance.getRewards(
|
|
406
|
-
intervalNumber
|
|
407
|
-
);
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
### Parameters
|
|
411
|
-
|
|
412
|
-
|Name | Type | Description | Notes|
|
|
413
|
-
|------------- | ------------- | ------------- | -------------|
|
|
414
|
-
| **intervalNumber** | [**number**] | Optionally specify interval number. | (optional) defaults to undefined|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
### Return type
|
|
418
|
-
|
|
419
|
-
**Array<IntervalRewards>**
|
|
420
|
-
|
|
421
|
-
### Authorization
|
|
422
|
-
|
|
423
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
424
|
-
|
|
425
|
-
### HTTP request headers
|
|
426
|
-
|
|
427
|
-
- **Content-Type**: Not defined
|
|
428
|
-
- **Accept**: application/json
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
### HTTP response details
|
|
432
|
-
| Status code | Description | Response headers |
|
|
433
|
-
|-------------|-------------|------------------|
|
|
434
|
-
|**200** | Successful response | - |
|
|
435
|
-
|
|
436
|
-
[[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)
|
|
437
|
-
|
|
438
|
-
# **getRewardsCampaignMetadata**
|
|
439
|
-
> Array<CampaignMetadata> getRewardsCampaignMetadata()
|
|
440
|
-
|
|
441
|
-
Returns the metadata for the rewards campaigns.
|
|
442
|
-
|
|
443
|
-
### Example
|
|
444
|
-
|
|
445
|
-
```typescript
|
|
446
|
-
import {
|
|
447
|
-
RewardsApi,
|
|
448
|
-
Configuration
|
|
449
|
-
} from '@bluefin/api-client';
|
|
450
|
-
|
|
451
|
-
const configuration = new Configuration();
|
|
452
|
-
const apiInstance = new RewardsApi(configuration);
|
|
453
|
-
|
|
454
|
-
let campaignName: string; //Specify the campaign name (optional) (default to undefined)
|
|
455
|
-
let status: 'ACTIVE' | 'INACTIVE'; //Optionally specify the status of the campaigns. (optional) (default to 'ACTIVE')
|
|
456
|
-
|
|
457
|
-
const { status, data } = await apiInstance.getRewardsCampaignMetadata(
|
|
458
|
-
campaignName,
|
|
459
|
-
status
|
|
460
|
-
);
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
### Parameters
|
|
464
|
-
|
|
465
|
-
|Name | Type | Description | Notes|
|
|
466
|
-
|------------- | ------------- | ------------- | -------------|
|
|
467
|
-
| **campaignName** | [**string**] | Specify the campaign name | (optional) defaults to undefined|
|
|
468
|
-
| **status** | [**'ACTIVE' | 'INACTIVE'**]**Array<'ACTIVE' | 'INACTIVE'>** | Optionally specify the status of the campaigns. | (optional) defaults to 'ACTIVE'|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
### Return type
|
|
472
|
-
|
|
473
|
-
**Array<CampaignMetadata>**
|
|
474
|
-
|
|
475
|
-
### Authorization
|
|
476
|
-
|
|
477
|
-
No authorization required
|
|
478
|
-
|
|
479
|
-
### HTTP request headers
|
|
480
|
-
|
|
481
|
-
- **Content-Type**: Not defined
|
|
482
|
-
- **Accept**: application/json
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
### HTTP response details
|
|
486
|
-
| Status code | Description | Response headers |
|
|
487
|
-
|-------------|-------------|------------------|
|
|
488
|
-
|**200** | Successful response | - |
|
|
489
|
-
|
|
490
|
-
[[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)
|
|
491
|
-
|
|
492
|
-
# **getRewardsEpochConfigMetadata**
|
|
493
|
-
> EpochConfigsResponse getRewardsEpochConfigMetadata()
|
|
494
|
-
|
|
495
|
-
Returns the latest epoch configs for the campaigns.
|
|
496
|
-
|
|
497
|
-
### Example
|
|
498
|
-
|
|
499
|
-
```typescript
|
|
500
|
-
import {
|
|
501
|
-
RewardsApi,
|
|
502
|
-
Configuration
|
|
503
|
-
} from '@bluefin/api-client';
|
|
504
|
-
|
|
505
|
-
const configuration = new Configuration();
|
|
506
|
-
const apiInstance = new RewardsApi(configuration);
|
|
507
|
-
|
|
508
|
-
let intervalNumber: number; //Specify the interval number (optional) (default to undefined)
|
|
509
|
-
|
|
510
|
-
const { status, data } = await apiInstance.getRewardsEpochConfigMetadata(
|
|
511
|
-
intervalNumber
|
|
512
|
-
);
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
### Parameters
|
|
516
|
-
|
|
517
|
-
|Name | Type | Description | Notes|
|
|
518
|
-
|------------- | ------------- | ------------- | -------------|
|
|
519
|
-
| **intervalNumber** | [**number**] | Specify the interval number | (optional) defaults to undefined|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
### Return type
|
|
523
|
-
|
|
524
|
-
**EpochConfigsResponse**
|
|
525
|
-
|
|
526
|
-
### Authorization
|
|
527
|
-
|
|
528
|
-
No authorization required
|
|
529
|
-
|
|
530
|
-
### HTTP request headers
|
|
531
|
-
|
|
532
|
-
- **Content-Type**: Not defined
|
|
533
|
-
- **Accept**: application/json
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
### HTTP response details
|
|
537
|
-
| Status code | Description | Response headers |
|
|
538
|
-
|-------------|-------------|------------------|
|
|
539
|
-
|**200** | Successful response | - |
|
|
540
|
-
|
|
541
|
-
[[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)
|
|
542
|
-
|
|
543
|
-
# **getRewardsEpochMetadata**
|
|
544
|
-
> Array<EpochMetadata> getRewardsEpochMetadata()
|
|
545
|
-
|
|
546
|
-
Returns the latest or next epoch epoch for campaign.
|
|
547
|
-
|
|
548
|
-
### Example
|
|
549
|
-
|
|
550
|
-
```typescript
|
|
551
|
-
import {
|
|
552
|
-
RewardsApi,
|
|
553
|
-
Configuration
|
|
554
|
-
} from '@bluefin/api-client';
|
|
555
|
-
|
|
556
|
-
const configuration = new Configuration();
|
|
557
|
-
const apiInstance = new RewardsApi(configuration);
|
|
558
|
-
|
|
559
|
-
let campaignName: string; //Specify the campaign name (optional) (default to undefined)
|
|
560
|
-
let epoch: 'next' | 'latest'; //Specify the string \"next\" or \"latest\". (optional) (default to undefined)
|
|
561
|
-
|
|
562
|
-
const { status, data } = await apiInstance.getRewardsEpochMetadata(
|
|
563
|
-
campaignName,
|
|
564
|
-
epoch
|
|
565
|
-
);
|
|
566
|
-
```
|
|
567
|
-
|
|
568
|
-
### Parameters
|
|
569
|
-
|
|
570
|
-
|Name | Type | Description | Notes|
|
|
571
|
-
|------------- | ------------- | ------------- | -------------|
|
|
572
|
-
| **campaignName** | [**string**] | Specify the campaign name | (optional) defaults to undefined|
|
|
573
|
-
| **epoch** | [**'next' | 'latest'**]**Array<'next' | 'latest'>** | Specify the string \"next\" or \"latest\". | (optional) defaults to undefined|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
### Return type
|
|
577
|
-
|
|
578
|
-
**Array<EpochMetadata>**
|
|
579
|
-
|
|
580
|
-
### Authorization
|
|
581
|
-
|
|
582
|
-
No authorization required
|
|
583
|
-
|
|
584
|
-
### HTTP request headers
|
|
585
|
-
|
|
586
|
-
- **Content-Type**: Not defined
|
|
587
|
-
- **Accept**: application/json
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
### HTTP response details
|
|
591
|
-
| Status code | Description | Response headers |
|
|
592
|
-
|-------------|-------------|------------------|
|
|
593
|
-
|**200** | Successful response | - |
|
|
594
|
-
|
|
595
|
-
[[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)
|
|
596
|
-
|
|
597
|
-
# **getRewardsIntervalMetadata**
|
|
598
|
-
> Array<IntervalMetadata> getRewardsIntervalMetadata()
|
|
599
|
-
|
|
600
|
-
Returns the interval metadata for provided parameters.
|
|
601
|
-
|
|
602
|
-
### Example
|
|
603
|
-
|
|
604
|
-
```typescript
|
|
605
|
-
import {
|
|
606
|
-
RewardsApi,
|
|
607
|
-
Configuration
|
|
608
|
-
} from '@bluefin/api-client';
|
|
609
|
-
|
|
610
|
-
const configuration = new Configuration();
|
|
611
|
-
const apiInstance = new RewardsApi(configuration);
|
|
612
|
-
|
|
613
|
-
let interval: number; //Either specify an interval number or the string \"next\" or \"latest\". (optional) (default to undefined)
|
|
614
|
-
|
|
615
|
-
const { status, data } = await apiInstance.getRewardsIntervalMetadata(
|
|
616
|
-
interval
|
|
617
|
-
);
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
### Parameters
|
|
621
|
-
|
|
622
|
-
|Name | Type | Description | Notes|
|
|
623
|
-
|------------- | ------------- | ------------- | -------------|
|
|
624
|
-
| **interval** | [**number**] | Either specify an interval number or the string \"next\" or \"latest\". | (optional) defaults to undefined|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
### Return type
|
|
628
|
-
|
|
629
|
-
**Array<IntervalMetadata>**
|
|
630
|
-
|
|
631
|
-
### Authorization
|
|
632
|
-
|
|
633
|
-
No authorization required
|
|
634
|
-
|
|
635
|
-
### HTTP request headers
|
|
636
|
-
|
|
637
|
-
- **Content-Type**: Not defined
|
|
638
|
-
- **Accept**: application/json
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
### HTTP response details
|
|
642
|
-
| Status code | Description | Response headers |
|
|
643
|
-
|-------------|-------------|------------------|
|
|
644
|
-
|**200** | Successful response | - |
|
|
645
|
-
|
|
646
|
-
[[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)
|
|
647
|
-
|
|
648
|
-
# **getRewardsSummary**
|
|
649
|
-
> Array<RewardsSummary> getRewardsSummary()
|
|
650
|
-
|
|
651
|
-
Returns the all time rewards earned by users.
|
|
652
|
-
|
|
653
|
-
### Example
|
|
654
|
-
|
|
655
|
-
```typescript
|
|
656
|
-
import {
|
|
657
|
-
RewardsApi,
|
|
658
|
-
Configuration
|
|
659
|
-
} from '@bluefin/api-client';
|
|
660
|
-
|
|
661
|
-
const configuration = new Configuration();
|
|
662
|
-
const apiInstance = new RewardsApi(configuration);
|
|
663
|
-
|
|
664
|
-
const { status, data } = await apiInstance.getRewardsSummary();
|
|
665
|
-
```
|
|
666
|
-
|
|
667
|
-
### Parameters
|
|
668
|
-
This endpoint does not have any parameters.
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
### Return type
|
|
672
|
-
|
|
673
|
-
**Array<RewardsSummary>**
|
|
674
|
-
|
|
675
|
-
### Authorization
|
|
676
|
-
|
|
677
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
678
|
-
|
|
679
|
-
### HTTP request headers
|
|
680
|
-
|
|
681
|
-
- **Content-Type**: Not defined
|
|
682
|
-
- **Accept**: application/json
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
### HTTP response details
|
|
686
|
-
| Status code | Description | Response headers |
|
|
687
|
-
|-------------|-------------|------------------|
|
|
688
|
-
|**200** | Successful response | - |
|
|
689
|
-
|
|
690
|
-
[[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)
|
|
691
|
-
|
|
692
|
-
# **onboardAffiliate**
|
|
693
|
-
> AffiliateOnboardResponse onboardAffiliate(onboardAffiliateRequest)
|
|
694
|
-
|
|
695
|
-
Submit an application to become an affiliate.
|
|
696
|
-
|
|
697
|
-
### Example
|
|
698
|
-
|
|
699
|
-
```typescript
|
|
700
|
-
import {
|
|
701
|
-
RewardsApi,
|
|
702
|
-
Configuration,
|
|
703
|
-
OnboardAffiliateRequest
|
|
704
|
-
} from '@bluefin/api-client';
|
|
705
|
-
|
|
706
|
-
const configuration = new Configuration();
|
|
707
|
-
const apiInstance = new RewardsApi(configuration);
|
|
708
|
-
|
|
709
|
-
let onboardAffiliateRequest: OnboardAffiliateRequest; //
|
|
710
|
-
|
|
711
|
-
const { status, data } = await apiInstance.onboardAffiliate(
|
|
712
|
-
onboardAffiliateRequest
|
|
713
|
-
);
|
|
714
|
-
```
|
|
715
|
-
|
|
716
|
-
### Parameters
|
|
717
|
-
|
|
718
|
-
|Name | Type | Description | Notes|
|
|
719
|
-
|------------- | ------------- | ------------- | -------------|
|
|
720
|
-
| **onboardAffiliateRequest** | **OnboardAffiliateRequest**| | |
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
### Return type
|
|
724
|
-
|
|
725
|
-
**AffiliateOnboardResponse**
|
|
726
|
-
|
|
727
|
-
### Authorization
|
|
728
|
-
|
|
729
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
730
|
-
|
|
731
|
-
### HTTP request headers
|
|
732
|
-
|
|
733
|
-
- **Content-Type**: application/json
|
|
734
|
-
- **Accept**: application/json
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
### HTTP response details
|
|
738
|
-
| Status code | Description | Response headers |
|
|
739
|
-
|-------------|-------------|------------------|
|
|
740
|
-
|**200** | Application submitted successfully | - |
|
|
741
|
-
|**401** | unauthorized access | - |
|
|
742
|
-
|**404** | address not found | - |
|
|
743
|
-
|**400** | request missing required parameters | - |
|
|
744
|
-
|
|
745
|
-
[[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)
|
|
746
|
-
|
|
747
|
-
# **onboardReferee**
|
|
748
|
-
> RefereeOnboardResponse onboardReferee(onboardRefereeRequest)
|
|
749
|
-
|
|
750
|
-
Onboard a referee with a referral code.
|
|
751
|
-
|
|
752
|
-
### Example
|
|
753
|
-
|
|
754
|
-
```typescript
|
|
755
|
-
import {
|
|
756
|
-
RewardsApi,
|
|
757
|
-
Configuration,
|
|
758
|
-
OnboardRefereeRequest
|
|
759
|
-
} from '@bluefin/api-client';
|
|
760
|
-
|
|
761
|
-
const configuration = new Configuration();
|
|
762
|
-
const apiInstance = new RewardsApi(configuration);
|
|
763
|
-
|
|
764
|
-
let onboardRefereeRequest: OnboardRefereeRequest; //
|
|
765
|
-
|
|
766
|
-
const { status, data } = await apiInstance.onboardReferee(
|
|
767
|
-
onboardRefereeRequest
|
|
768
|
-
);
|
|
769
|
-
```
|
|
770
|
-
|
|
771
|
-
### Parameters
|
|
772
|
-
|
|
773
|
-
|Name | Type | Description | Notes|
|
|
774
|
-
|------------- | ------------- | ------------- | -------------|
|
|
775
|
-
| **onboardRefereeRequest** | **OnboardRefereeRequest**| | |
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
### Return type
|
|
779
|
-
|
|
780
|
-
**RefereeOnboardResponse**
|
|
781
|
-
|
|
782
|
-
### Authorization
|
|
783
|
-
|
|
784
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
785
|
-
|
|
786
|
-
### HTTP request headers
|
|
787
|
-
|
|
788
|
-
- **Content-Type**: application/json
|
|
789
|
-
- **Accept**: application/json
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
### HTTP response details
|
|
793
|
-
| Status code | Description | Response headers |
|
|
794
|
-
|-------------|-------------|------------------|
|
|
795
|
-
|**200** | Referee onboarding response | - |
|
|
796
|
-
|**401** | unauthorized access | - |
|
|
797
|
-
|**404** | parent referral code not found | - |
|
|
798
|
-
|**400** | referral code is required | - |
|
|
799
|
-
|**412** | parent affiliate is not active | - |
|
|
800
|
-
|**409** | referee already exists | - |
|
|
801
|
-
|
|
802
|
-
[[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)
|
|
803
|
-
|
|
804
|
-
# **updateAffiliateFeeConfig**
|
|
805
|
-
> AffiliateMetadata updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest)
|
|
806
|
-
|
|
807
|
-
Update the fee config for an affiliate.
|
|
808
|
-
|
|
809
|
-
### Example
|
|
810
|
-
|
|
811
|
-
```typescript
|
|
812
|
-
import {
|
|
813
|
-
RewardsApi,
|
|
814
|
-
Configuration,
|
|
815
|
-
UpdateAffiliateFeeConfigRequest
|
|
816
|
-
} from '@bluefin/api-client';
|
|
817
|
-
|
|
818
|
-
const configuration = new Configuration();
|
|
819
|
-
const apiInstance = new RewardsApi(configuration);
|
|
820
|
-
|
|
821
|
-
let updateAffiliateFeeConfigRequest: UpdateAffiliateFeeConfigRequest; //
|
|
822
|
-
|
|
823
|
-
const { status, data } = await apiInstance.updateAffiliateFeeConfig(
|
|
824
|
-
updateAffiliateFeeConfigRequest
|
|
825
|
-
);
|
|
826
|
-
```
|
|
827
|
-
|
|
828
|
-
### Parameters
|
|
829
|
-
|
|
830
|
-
|Name | Type | Description | Notes|
|
|
831
|
-
|------------- | ------------- | ------------- | -------------|
|
|
832
|
-
| **updateAffiliateFeeConfigRequest** | **UpdateAffiliateFeeConfigRequest**| | |
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
### Return type
|
|
836
|
-
|
|
837
|
-
**AffiliateMetadata**
|
|
838
|
-
|
|
839
|
-
### Authorization
|
|
840
|
-
|
|
841
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
842
|
-
|
|
843
|
-
### HTTP request headers
|
|
844
|
-
|
|
845
|
-
- **Content-Type**: application/json
|
|
846
|
-
- **Accept**: application/json
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
### HTTP response details
|
|
850
|
-
| Status code | Description | Response headers |
|
|
851
|
-
|-------------|-------------|------------------|
|
|
852
|
-
|**200** | Cashback request processed successfully | - |
|
|
853
|
-
|**401** | unauthorized access | - |
|
|
854
|
-
|**404** | address not found | - |
|
|
855
|
-
|**400** | request missing required parameters | - |
|
|
856
|
-
|**500** | internal server error | - |
|
|
857
|
-
|
|
858
|
-
[[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)
|
|
859
|
-
|