@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.
Files changed (210) hide show
  1. package/dist/{example.js → cjs/example.js} +3 -0
  2. package/dist/cjs/example.js.map +1 -0
  3. package/dist/{index.js → cjs/index.js} +1 -0
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/{src → cjs/src}/api.js +75 -1
  6. package/dist/cjs/src/api.js.map +1 -0
  7. package/dist/{src → cjs/src}/base.js +5 -1
  8. package/dist/cjs/src/base.js.map +1 -0
  9. package/dist/{src → cjs/src}/common.js +1 -0
  10. package/dist/cjs/src/common.js.map +1 -0
  11. package/dist/{src → cjs/src}/configuration.js +1 -0
  12. package/dist/cjs/src/configuration.js.map +1 -0
  13. package/dist/{src → cjs/src}/index.js +1 -0
  14. package/dist/cjs/src/index.js.map +1 -0
  15. package/dist/{src → cjs/src}/request-signer.js +11 -0
  16. package/dist/cjs/src/request-signer.js.map +1 -0
  17. package/dist/{src → cjs/src}/sdk.js +47 -4
  18. package/dist/cjs/src/sdk.js.map +1 -0
  19. package/dist/{src → cjs/src}/utils.js +1 -0
  20. package/dist/cjs/src/utils.js.map +1 -0
  21. package/dist/{src → cjs/src}/websocket.js +1 -0
  22. package/dist/cjs/src/websocket.js.map +1 -0
  23. package/dist/esm/example.js +218 -0
  24. package/dist/esm/example.js.map +1 -0
  25. package/dist/esm/index.js +18 -0
  26. package/dist/esm/index.js.map +1 -0
  27. package/dist/esm/src/api.js +4318 -0
  28. package/dist/esm/src/api.js.map +1 -0
  29. package/dist/esm/src/base.js +69 -0
  30. package/dist/esm/src/base.js.map +1 -0
  31. package/dist/esm/src/common.js +162 -0
  32. package/dist/esm/src/common.js.map +1 -0
  33. package/dist/esm/src/configuration.js +45 -0
  34. package/dist/esm/src/configuration.js.map +1 -0
  35. package/dist/esm/src/index.js +23 -0
  36. package/dist/esm/src/index.js.map +1 -0
  37. package/dist/esm/src/request-signer.js +231 -0
  38. package/dist/esm/src/request-signer.js.map +1 -0
  39. package/dist/esm/src/sdk.js +786 -0
  40. package/dist/esm/src/sdk.js.map +1 -0
  41. package/dist/esm/src/utils.js +10 -0
  42. package/dist/esm/src/utils.js.map +1 -0
  43. package/dist/esm/src/websocket.js +159 -0
  44. package/dist/esm/src/websocket.js.map +1 -0
  45. package/dist/types/example.d.ts +2 -0
  46. package/dist/types/example.d.ts.map +1 -0
  47. package/dist/types/index.d.ts +2 -0
  48. package/dist/types/index.d.ts.map +1 -0
  49. package/dist/{src → types/src}/api.d.ts +126 -47
  50. package/dist/types/src/api.d.ts.map +1 -0
  51. package/dist/{src → types/src}/base.d.ts +1 -0
  52. package/dist/types/src/base.d.ts.map +1 -0
  53. package/dist/{src → types/src}/common.d.ts +1 -0
  54. package/dist/types/src/common.d.ts.map +1 -0
  55. package/dist/{src → types/src}/configuration.d.ts +1 -0
  56. package/dist/types/src/configuration.d.ts.map +1 -0
  57. package/dist/{src → types/src}/index.d.ts +1 -0
  58. package/dist/types/src/index.d.ts.map +1 -0
  59. package/dist/{src → types/src}/request-signer.d.ts +6 -1
  60. package/dist/types/src/request-signer.d.ts.map +1 -0
  61. package/dist/{src → types/src}/sdk.d.ts +12 -1
  62. package/dist/types/src/sdk.d.ts.map +1 -0
  63. package/dist/{src → types/src}/utils.d.ts +1 -0
  64. package/dist/types/src/utils.d.ts.map +1 -0
  65. package/dist/{src → types/src}/websocket.d.ts +1 -0
  66. package/dist/types/src/websocket.d.ts.map +1 -0
  67. package/package.json +21 -7
  68. package/dist/example.d.ts +0 -1
  69. package/dist/index.d.ts +0 -1
  70. package/example.ts +0 -323
  71. package/index.ts +0 -1
  72. package/openapitools.json +0 -24
  73. package/src/.openapi-generator/FILES +0 -128
  74. package/src/.openapi-generator/VERSION +0 -1
  75. package/src/.openapi-generator-ignore +0 -28
  76. package/src/README.md +0 -46
  77. package/src/api.ts +0 -8918
  78. package/src/base.ts +0 -86
  79. package/src/common.ts +0 -150
  80. package/src/configuration.ts +0 -115
  81. package/src/docs/Account.md +0 -64
  82. package/src/docs/AccountAggregatedTradeUpdate.md +0 -21
  83. package/src/docs/AccountAuthorizationRequest.md +0 -24
  84. package/src/docs/AccountAuthorizationRequestSignedFields.md +0 -28
  85. package/src/docs/AccountCommandFailureUpdate.md +0 -29
  86. package/src/docs/AccountDataApi.md +0 -374
  87. package/src/docs/AccountDataStream.md +0 -21
  88. package/src/docs/AccountEventReason.md +0 -25
  89. package/src/docs/AccountEventType.md +0 -21
  90. package/src/docs/AccountFundingRateHistory.md +0 -20
  91. package/src/docs/AccountFundingRateHistoryData.md +0 -30
  92. package/src/docs/AccountMarketPreference.md +0 -22
  93. package/src/docs/AccountOrderUpdate.md +0 -71
  94. package/src/docs/AccountPositionLeverageUpdateRequest.md +0 -22
  95. package/src/docs/AccountPositionLeverageUpdateRequestSignedFields.md +0 -30
  96. package/src/docs/AccountPositionUpdate.md +0 -47
  97. package/src/docs/AccountPreference.md +0 -24
  98. package/src/docs/AccountStreamMessage.md +0 -25
  99. package/src/docs/AccountStreamMessagePayload.md +0 -153
  100. package/src/docs/AccountSubscriptionMessage.md +0 -25
  101. package/src/docs/AccountTradeUpdate.md +0 -21
  102. package/src/docs/AccountTransactionUpdate.md +0 -31
  103. package/src/docs/AccountUpdate.md +0 -61
  104. package/src/docs/ActiveOrderUpdate.md +0 -65
  105. package/src/docs/AdjustIsolatedMarginRequest.md +0 -22
  106. package/src/docs/AdjustIsolatedMarginRequestSignedFields.md +0 -32
  107. package/src/docs/AdjustMarginOperation.md +0 -11
  108. package/src/docs/AffiliateIntervalOverview.md +0 -56
  109. package/src/docs/AffiliateLeaderDashboard.md +0 -38
  110. package/src/docs/AffiliateMetadata.md +0 -36
  111. package/src/docs/AffiliateMetadataFees.md +0 -31
  112. package/src/docs/AffiliateOnboardResponse.md +0 -22
  113. package/src/docs/AffiliateOverview.md +0 -46
  114. package/src/docs/AffiliateSummary.md +0 -30
  115. package/src/docs/Asset.md +0 -29
  116. package/src/docs/AssetConfig.md +0 -28
  117. package/src/docs/AuthApi.md +0 -243
  118. package/src/docs/AuthorizedWallet.md +0 -24
  119. package/src/docs/CampaignMetadata.md +0 -28
  120. package/src/docs/CampaignRewards.md +0 -18
  121. package/src/docs/CancelOrdersRequest.md +0 -23
  122. package/src/docs/CancelOrdersResponse.md +0 -21
  123. package/src/docs/CandlePriceType.md +0 -14
  124. package/src/docs/CandlestickUpdate.md +0 -41
  125. package/src/docs/CommandFailureReasonCode.md +0 -24
  126. package/src/docs/ContractsConfig.md +0 -31
  127. package/src/docs/CreateOrderRequest.md +0 -36
  128. package/src/docs/CreateOrderRequestSignedFields.md +0 -40
  129. package/src/docs/CreateOrderResponse.md +0 -20
  130. package/src/docs/EpochConfigs.md +0 -34
  131. package/src/docs/EpochConfigsResponse.md +0 -24
  132. package/src/docs/EpochMetadata.md +0 -30
  133. package/src/docs/Error.md +0 -22
  134. package/src/docs/ExchangeApi.md +0 -473
  135. package/src/docs/ExchangeInfoResponse.md +0 -30
  136. package/src/docs/FailedCommandType.md +0 -12
  137. package/src/docs/FeeConfigs.md +0 -33
  138. package/src/docs/FundingRateEntry.md +0 -24
  139. package/src/docs/GetAffiliateIntervalOverview200Response.md +0 -26
  140. package/src/docs/GetAffiliateLeaderDashboard200Response.md +0 -26
  141. package/src/docs/GetAffiliateOverview200Response.md +0 -26
  142. package/src/docs/IntervalMetadata.md +0 -28
  143. package/src/docs/IntervalRewards.md +0 -30
  144. package/src/docs/KlineInterval.md +0 -36
  145. package/src/docs/LoginRequest.md +0 -25
  146. package/src/docs/LoginResponse.md +0 -26
  147. package/src/docs/MarginType.md +0 -13
  148. package/src/docs/MarkPriceUpdate.md +0 -26
  149. package/src/docs/Market.md +0 -82
  150. package/src/docs/MarketDataStreamName.md +0 -142
  151. package/src/docs/MarketEventType.md +0 -25
  152. package/src/docs/MarketPriceUpdate.md +0 -26
  153. package/src/docs/MarketStatus.md +0 -16
  154. package/src/docs/MarketStreamMessage.md +0 -23
  155. package/src/docs/MarketStreamMessagePayload.md +0 -123
  156. package/src/docs/MarketSubscriptionMessage.md +0 -23
  157. package/src/docs/MarketSubscriptionStreams.md +0 -23
  158. package/src/docs/OnboardAffiliateRequest.md +0 -26
  159. package/src/docs/OnboardAffiliateRequestSocialUserNames.md +0 -27
  160. package/src/docs/OnboardRefereeRequest.md +0 -20
  161. package/src/docs/OpenOrderResponse.md +0 -64
  162. package/src/docs/Operators.md +0 -28
  163. package/src/docs/OraclePriceUpdate.md +0 -26
  164. package/src/docs/OrderCancelReason.md +0 -65
  165. package/src/docs/OrderCancellationFailureReason.md +0 -19
  166. package/src/docs/OrderCancellationUpdate.md +0 -35
  167. package/src/docs/OrderSide.md +0 -13
  168. package/src/docs/OrderStatus.md +0 -25
  169. package/src/docs/OrderTimeInForce.md +0 -15
  170. package/src/docs/OrderType.md +0 -29
  171. package/src/docs/OrderbookDepthResponse.md +0 -38
  172. package/src/docs/OrderbookDiffDepthUpdate.md +0 -30
  173. package/src/docs/OrderbookPartialDepthUpdate.md +0 -30
  174. package/src/docs/Position.md +0 -52
  175. package/src/docs/PositionSide.md +0 -13
  176. package/src/docs/RecentTradesUpdates.md +0 -20
  177. package/src/docs/RefereeOnboardResponse.md +0 -20
  178. package/src/docs/RefreshTokenRequest.md +0 -20
  179. package/src/docs/RefreshTokenResponse.md +0 -26
  180. package/src/docs/RewardsApi.md +0 -859
  181. package/src/docs/RewardsSummary.md +0 -26
  182. package/src/docs/SelfTradePreventionType.md +0 -15
  183. package/src/docs/StatsEntry.md +0 -26
  184. package/src/docs/StatsInterval.md +0 -14
  185. package/src/docs/StatsResponse.md +0 -20
  186. package/src/docs/StreamsApi.md +0 -126
  187. package/src/docs/SubscriptionResponseMessage.md +0 -23
  188. package/src/docs/SubscriptionType.md +0 -11
  189. package/src/docs/TickerAllUpdate.md +0 -20
  190. package/src/docs/TickerResponse.md +0 -82
  191. package/src/docs/TickerUpdate.md +0 -83
  192. package/src/docs/Trade.md +0 -54
  193. package/src/docs/TradeApi.md +0 -589
  194. package/src/docs/TradeSide.md +0 -13
  195. package/src/docs/TradeType.md +0 -15
  196. package/src/docs/TradingFees.md +0 -24
  197. package/src/docs/Transaction.md +0 -34
  198. package/src/docs/TransactionType.md +0 -25
  199. package/src/docs/UpdateAccountPreferenceRequest.md +0 -24
  200. package/src/docs/UpdateAffiliateFeeConfigRequest.md +0 -20
  201. package/src/docs/UserCampaignRewards.md +0 -48
  202. package/src/docs/WithdrawRequest.md +0 -22
  203. package/src/docs/WithdrawRequestSignedFields.md +0 -30
  204. package/src/git_push.sh +0 -57
  205. package/src/index.ts +0 -6
  206. package/src/request-signer.ts +0 -405
  207. package/src/sdk.ts +0 -982
  208. package/src/utils.ts +0 -6
  209. package/src/websocket.ts +0 -165
  210. package/tsconfig.json +0 -23
@@ -1,47 +0,0 @@
1
- # AccountPositionUpdate
2
-
3
- Details about an account position update.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **symbol** | **string** | The symbol of the market. | [default to undefined]
10
- **avgEntryPriceE9** | **string** | The average entry price for the position. | [default to undefined]
11
- **clientSetLeverageE9** | **string** | The leverage applied to the position. | [default to undefined]
12
- **liquidationPriceE9** | **string** | The liquidation price of the position. | [default to undefined]
13
- **markPriceE9** | **string** | The current mark price of the position. | [default to undefined]
14
- **notionalValueE9** | **string** | The notional value of the position. | [default to undefined]
15
- **sizeE9** | **string** | The size of the position. | [default to undefined]
16
- **unrealizedPnlE9** | **string** | The unrealized profit and loss for the position. | [default to undefined]
17
- **side** | [**PositionSide**](PositionSide.md) | | [default to undefined]
18
- **marginRequiredE9** | **string** | The margin required for the position. | [default to undefined]
19
- **maintenanceMarginE9** | **string** | The maintenance margin required for the position. | [default to undefined]
20
- **isIsolated** | **boolean** | Indicates if the position is isolated. | [default to undefined]
21
- **isolatedMarginE9** | **string** | The isolated margin applied to the position. | [default to undefined]
22
- **updatedAtMillis** | **number** | The last update time for the position in milliseconds. | [default to undefined]
23
-
24
- ## Example
25
-
26
- ```typescript
27
- import { AccountPositionUpdate } from '@bluefin/api-client';
28
-
29
- const instance: AccountPositionUpdate = {
30
- symbol,
31
- avgEntryPriceE9,
32
- clientSetLeverageE9,
33
- liquidationPriceE9,
34
- markPriceE9,
35
- notionalValueE9,
36
- sizeE9,
37
- unrealizedPnlE9,
38
- side,
39
- marginRequiredE9,
40
- maintenanceMarginE9,
41
- isIsolated,
42
- isolatedMarginE9,
43
- updatedAtMillis,
44
- };
45
- ```
46
-
47
- [[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
- # AccountPreference
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **language** | **string** | User preferred language. | [optional] [default to undefined]
9
- **theme** | **string** | User preferred theme. | [optional] [default to undefined]
10
- **market** | [**Array<AccountMarketPreference>**](AccountMarketPreference.md) | | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { AccountPreference } from '@bluefin/api-client';
16
-
17
- const instance: AccountPreference = {
18
- language,
19
- theme,
20
- market,
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,25 +0,0 @@
1
- # AccountStreamMessage
2
-
3
- Account stream message for account-related events. The payload depends on the event type.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **event** | [**AccountEventType**](AccountEventType.md) | | [default to undefined]
10
- **reason** | [**AccountEventReason**](AccountEventReason.md) | | [default to undefined]
11
- **payload** | [**AccountStreamMessagePayload**](AccountStreamMessagePayload.md) | | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { AccountStreamMessage } from '@bluefin/api-client';
17
-
18
- const instance: AccountStreamMessage = {
19
- event,
20
- reason,
21
- payload,
22
- };
23
- ```
24
-
25
- [[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,153 +0,0 @@
1
- # AccountStreamMessagePayload
2
-
3
- The payload of the message, which varies based on the event type.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **tradingFees** | [**TradingFees**](TradingFees.md) | | [optional] [default to undefined]
10
- **canTrade** | **boolean** | If the user can trade. | [default to undefined]
11
- **canDeposit** | **boolean** | If the current user can deposit to the account. | [default to undefined]
12
- **canWithdraw** | **boolean** | If the current user can withdraw from the account. | [default to undefined]
13
- **crossEffectiveBalanceE9** | **string** | Total effective balance in USD (e9 format). | [default to undefined]
14
- **crossMarginRequiredE9** | **string** | The sum of initial margin required across all cross positions (e9 format). | [default to undefined]
15
- **totalOrderMarginRequiredE9** | **string** | The sum of initial margin required across all open orders (e9 format). | [default to undefined]
16
- **marginAvailableE9** | **string** | The amount of margin available to open new positions and orders (e9 format). | [default to undefined]
17
- **crossMaintenanceMarginRequiredE9** | **string** | The sum of maintenance margin required across all cross positions (e9 format). | [default to undefined]
18
- **crossMaintenanceMarginAvailableE9** | **string** | The amount of margin available before liquidation (e9 format). | [default to undefined]
19
- **crossMaintenanceMarginRatioE9** | **string** | The ratio of the maintenance margin required to the account value (e9 format). | [default to undefined]
20
- **crossLeverageE9** | **string** | The leverage of the account (e9 format). | [default to undefined]
21
- **totalUnrealizedPnlE9** | **string** | Total unrealized profit (e9 format). | [default to undefined]
22
- **crossUnrealizedPnlE9** | **string** | Unrealized profit of cross positions (e9 format). | [default to undefined]
23
- **crossUnrealizedLossE9** | **string** | An implicitly negative number that sums only the losses of all cross positions. | [default to undefined]
24
- **crossAccountValueE9** | **string** | The total value of the cross account, combining the cross effective balance and unrealized PnL across all cross positions, and subtracting any pending funding payments on any cross position. | [default to undefined]
25
- **totalAccountValueE9** | **string** | The total value of the account, combining the total effective balance and unrealized PnL across all positions, and subtracting any pending funding payments on any position. | [default to undefined]
26
- **updatedAtMillis** | **number** | The last update time for the position in milliseconds. | [default to undefined]
27
- **assets** | [**Array<Asset>**](Asset.md) | | [default to undefined]
28
- **authorizedAccounts** | **Array<string>** | Deprecated: Replaced with authorizedWallets. | [default to undefined]
29
- **authorizedWallets** | [**Array<AuthorizedWallet>**](AuthorizedWallet.md) | The wallets that are authorized to trade on behalf of the current account. | [default to undefined]
30
- **trade** | [**Trade**](Trade.md) | | [default to undefined]
31
- **orderHash** | **string** | The unique hash of the order. | [default to undefined]
32
- **clientOrderId** | **string** | The client-provided order ID. | [optional] [default to undefined]
33
- **symbol** | **string** | The symbol of the market. | [default to undefined]
34
- **accountAddress** | **string** | The address of the account. | [default to undefined]
35
- **priceE9** | **string** | The price of the order in scientific notation with 9 decimal places. | [default to undefined]
36
- **quantityE9** | **string** | The quantity of the order in scientific notation with 9 decimal places. | [default to undefined]
37
- **filledQuantityE9** | **string** | The filled quantity of the order in scientific notation with 9 decimal places. | [default to undefined]
38
- **side** | [**PositionSide**](PositionSide.md) | | [default to undefined]
39
- **leverageE9** | **string** | The leverage of the order in scientific notation with 9 decimal places. | [default to undefined]
40
- **isIsolated** | **boolean** | Indicates if the position is isolated. | [default to undefined]
41
- **salt** | **string** | A unique salt for the order. | [default to undefined]
42
- **expiresAtMillis** | **number** | The expiration timestamp of the order in milliseconds. | [default to undefined]
43
- **signedAtMillis** | **number** | The signing timestamp of the order in milliseconds. | [default to undefined]
44
- **signerAddress** | **string** | The address of the signer of the order request. | [default to undefined]
45
- **type** | [**OrderType**](OrderType.md) | | [default to undefined]
46
- **reduceOnly** | **boolean** | Indicates if the order is reduce-only. | [default to undefined]
47
- **postOnly** | **boolean** | Indicates if the order is post-only. | [default to undefined]
48
- **timeInForce** | [**OrderTimeInForce**](OrderTimeInForce.md) | | [default to undefined]
49
- **triggerPriceE9** | **string** | The trigger price for stop-limit or stop-market orders. | [optional] [default to undefined]
50
- **status** | [**OrderStatus**](OrderStatus.md) | | [default to undefined]
51
- **selfTradePreventionType** | [**SelfTradePreventionType**](SelfTradePreventionType.md) | | [default to undefined]
52
- **createdAtMillis** | **number** | The timestamp of the order creation in milliseconds. | [default to undefined]
53
- **cancellationReason** | [**OrderCancelReason**](OrderCancelReason.md) | | [default to undefined]
54
- **failureToCancelReason** | [**OrderCancellationFailureReason**](OrderCancellationFailureReason.md) | | [optional] [default to undefined]
55
- **remainingQuantityE9** | **string** | The remaining quantity of the order. | [default to undefined]
56
- **transactionType** | [**TransactionType**](TransactionType.md) | | [default to undefined]
57
- **amountE9** | **string** | The amount of the transaction in scientific notation with 9 decimal places. | [default to undefined]
58
- **assetSymbol** | **string** | The symbol of the asset. | [optional] [default to undefined]
59
- **tradeId** | **string** | The trade ID associated with the transaction. | [optional] [default to undefined]
60
- **executedAtMillis** | **number** | The timestamp when the transaction was executed in milliseconds. | [default to undefined]
61
- **avgEntryPriceE9** | **string** | The average entry price for the position. | [default to undefined]
62
- **clientSetLeverageE9** | **string** | The leverage applied to the position. | [default to undefined]
63
- **liquidationPriceE9** | **string** | The liquidation price of the position. | [default to undefined]
64
- **markPriceE9** | **string** | The current mark price of the position. | [default to undefined]
65
- **notionalValueE9** | **string** | The notional value of the position. | [default to undefined]
66
- **sizeE9** | **string** | The size of the position. | [default to undefined]
67
- **unrealizedPnlE9** | **string** | The unrealized profit and loss for the position. | [default to undefined]
68
- **marginRequiredE9** | **string** | The margin required for the position. | [default to undefined]
69
- **maintenanceMarginE9** | **string** | The maintenance margin required for the position. | [default to undefined]
70
- **isolatedMarginE9** | **string** | The isolated margin applied to the position. | [default to undefined]
71
- **reason** | **string** | The reason for the failure. | [default to undefined]
72
- **reasonCode** | [**CommandFailureReasonCode**](CommandFailureReasonCode.md) | | [optional] [default to undefined]
73
- **failedCommandType** | **string** | The type of command that failed. | [default to undefined]
74
- **failedCommandTypeCode** | [**FailedCommandType**](FailedCommandType.md) | | [optional] [default to undefined]
75
- **failedAtMillis** | **number** | The timestamp when the command failed in milliseconds. | [default to undefined]
76
-
77
- ## Example
78
-
79
- ```typescript
80
- import { AccountStreamMessagePayload } from '@bluefin/api-client';
81
-
82
- const instance: AccountStreamMessagePayload = {
83
- tradingFees,
84
- canTrade,
85
- canDeposit,
86
- canWithdraw,
87
- crossEffectiveBalanceE9,
88
- crossMarginRequiredE9,
89
- totalOrderMarginRequiredE9,
90
- marginAvailableE9,
91
- crossMaintenanceMarginRequiredE9,
92
- crossMaintenanceMarginAvailableE9,
93
- crossMaintenanceMarginRatioE9,
94
- crossLeverageE9,
95
- totalUnrealizedPnlE9,
96
- crossUnrealizedPnlE9,
97
- crossUnrealizedLossE9,
98
- crossAccountValueE9,
99
- totalAccountValueE9,
100
- updatedAtMillis,
101
- assets,
102
- authorizedAccounts,
103
- authorizedWallets,
104
- trade,
105
- orderHash,
106
- clientOrderId,
107
- symbol,
108
- accountAddress,
109
- priceE9,
110
- quantityE9,
111
- filledQuantityE9,
112
- side,
113
- leverageE9,
114
- isIsolated,
115
- salt,
116
- expiresAtMillis,
117
- signedAtMillis,
118
- signerAddress,
119
- type,
120
- reduceOnly,
121
- postOnly,
122
- timeInForce,
123
- triggerPriceE9,
124
- status,
125
- selfTradePreventionType,
126
- createdAtMillis,
127
- cancellationReason,
128
- failureToCancelReason,
129
- remainingQuantityE9,
130
- transactionType,
131
- amountE9,
132
- assetSymbol,
133
- tradeId,
134
- executedAtMillis,
135
- avgEntryPriceE9,
136
- clientSetLeverageE9,
137
- liquidationPriceE9,
138
- markPriceE9,
139
- notionalValueE9,
140
- sizeE9,
141
- unrealizedPnlE9,
142
- marginRequiredE9,
143
- maintenanceMarginE9,
144
- isolatedMarginE9,
145
- reason,
146
- reasonCode,
147
- failedCommandType,
148
- failedCommandTypeCode,
149
- failedAtMillis,
150
- };
151
- ```
152
-
153
- [[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,25 +0,0 @@
1
- # AccountSubscriptionMessage
2
-
3
- Subscription message for account data streams.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **authToken** | **string** | The authentication token for the account. | [optional] [default to undefined]
10
- **method** | [**SubscriptionType**](SubscriptionType.md) | | [default to undefined]
11
- **dataStreams** | [**Array<AccountDataStream>**](AccountDataStream.md) | List of account data streams to subscribe or unsubscribe from. | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { AccountSubscriptionMessage } from '@bluefin/api-client';
17
-
18
- const instance: AccountSubscriptionMessage = {
19
- authToken,
20
- method,
21
- dataStreams,
22
- };
23
- ```
24
-
25
- [[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
- # AccountTradeUpdate
2
-
3
- Details about a trade in the account.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **trade** | [**Trade**](Trade.md) | | [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { AccountTradeUpdate } from '@bluefin/api-client';
15
-
16
- const instance: AccountTradeUpdate = {
17
- trade,
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,31 +0,0 @@
1
- # AccountTransactionUpdate
2
-
3
- Details about a transaction in the account.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **symbol** | **string** | The symbol of the market. | [optional] [default to undefined]
10
- **transactionType** | [**TransactionType**](TransactionType.md) | | [default to undefined]
11
- **amountE9** | **string** | The amount of the transaction in scientific notation with 9 decimal places. | [default to undefined]
12
- **assetSymbol** | **string** | The symbol of the asset. | [optional] [default to undefined]
13
- **tradeId** | **string** | The trade ID associated with the transaction. | [optional] [default to undefined]
14
- **executedAtMillis** | **number** | The timestamp when the transaction was executed in milliseconds. | [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { AccountTransactionUpdate } from '@bluefin/api-client';
20
-
21
- const instance: AccountTransactionUpdate = {
22
- symbol,
23
- transactionType,
24
- amountE9,
25
- assetSymbol,
26
- tradeId,
27
- executedAtMillis,
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,61 +0,0 @@
1
- # AccountUpdate
2
-
3
- Account information for the data stream.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **tradingFees** | [**TradingFees**](TradingFees.md) | | [optional] [default to undefined]
10
- **canTrade** | **boolean** | If the user can trade. | [default to undefined]
11
- **canDeposit** | **boolean** | If the current user can deposit to the account. | [default to undefined]
12
- **canWithdraw** | **boolean** | If the current user can withdraw from the account. | [default to undefined]
13
- **crossEffectiveBalanceE9** | **string** | Total effective balance in USD (e9 format). | [default to undefined]
14
- **crossMarginRequiredE9** | **string** | The sum of initial margin required across all cross positions (e9 format). | [default to undefined]
15
- **totalOrderMarginRequiredE9** | **string** | The sum of initial margin required across all open orders (e9 format). | [default to undefined]
16
- **marginAvailableE9** | **string** | The amount of margin available to open new positions and orders (e9 format). | [default to undefined]
17
- **crossMaintenanceMarginRequiredE9** | **string** | The sum of maintenance margin required across all cross positions (e9 format). | [default to undefined]
18
- **crossMaintenanceMarginAvailableE9** | **string** | The amount of margin available before liquidation (e9 format). | [default to undefined]
19
- **crossMaintenanceMarginRatioE9** | **string** | The ratio of the maintenance margin required to the account value (e9 format). | [default to undefined]
20
- **crossLeverageE9** | **string** | The leverage of the account (e9 format). | [default to undefined]
21
- **totalUnrealizedPnlE9** | **string** | Total unrealized profit (e9 format). | [default to undefined]
22
- **crossUnrealizedPnlE9** | **string** | Unrealized profit of cross positions (e9 format). | [default to undefined]
23
- **crossUnrealizedLossE9** | **string** | An implicitly negative number that sums only the losses of all cross positions. | [default to undefined]
24
- **crossAccountValueE9** | **string** | The total value of the cross account, combining the cross effective balance and unrealized PnL across all cross positions, and subtracting any pending funding payments on any cross position. | [default to undefined]
25
- **totalAccountValueE9** | **string** | The total value of the account, combining the total effective balance and unrealized PnL across all positions, and subtracting any pending funding payments on any position. | [default to undefined]
26
- **updatedAtMillis** | **number** | Last update time in milliseconds since Unix epoch. | [default to undefined]
27
- **assets** | [**Array<Asset>**](Asset.md) | | [default to undefined]
28
- **authorizedAccounts** | **Array<string>** | Deprecated: Replaced with authorizedWallets. | [default to undefined]
29
- **authorizedWallets** | [**Array<AuthorizedWallet>**](AuthorizedWallet.md) | The wallets that are authorized to trade on behalf of the current account. | [default to undefined]
30
-
31
- ## Example
32
-
33
- ```typescript
34
- import { AccountUpdate } from '@bluefin/api-client';
35
-
36
- const instance: AccountUpdate = {
37
- tradingFees,
38
- canTrade,
39
- canDeposit,
40
- canWithdraw,
41
- crossEffectiveBalanceE9,
42
- crossMarginRequiredE9,
43
- totalOrderMarginRequiredE9,
44
- marginAvailableE9,
45
- crossMaintenanceMarginRequiredE9,
46
- crossMaintenanceMarginAvailableE9,
47
- crossMaintenanceMarginRatioE9,
48
- crossLeverageE9,
49
- totalUnrealizedPnlE9,
50
- crossUnrealizedPnlE9,
51
- crossUnrealizedLossE9,
52
- crossAccountValueE9,
53
- totalAccountValueE9,
54
- updatedAtMillis,
55
- assets,
56
- authorizedAccounts,
57
- authorizedWallets,
58
- };
59
- ```
60
-
61
- [[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,65 +0,0 @@
1
- # ActiveOrderUpdate
2
-
3
- Information about an order update.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **orderHash** | **string** | The unique hash of the order. | [default to undefined]
10
- **clientOrderId** | **string** | The client-provided order ID. | [optional] [default to undefined]
11
- **symbol** | **string** | The symbol of the market. | [default to undefined]
12
- **accountAddress** | **string** | The address of the account. | [default to undefined]
13
- **priceE9** | **string** | The price of the order in scientific notation with 9 decimal places. | [default to undefined]
14
- **quantityE9** | **string** | The quantity of the order in scientific notation with 9 decimal places. | [default to undefined]
15
- **filledQuantityE9** | **string** | The filled quantity of the order in scientific notation with 9 decimal places. | [default to undefined]
16
- **side** | [**TradeSide**](TradeSide.md) | | [default to undefined]
17
- **leverageE9** | **string** | The leverage of the order in scientific notation with 9 decimal places. | [default to undefined]
18
- **isIsolated** | **boolean** | Indicates if the order is isolated. | [default to undefined]
19
- **salt** | **string** | A unique salt for the order. | [default to undefined]
20
- **expiresAtMillis** | **number** | The expiration timestamp of the order in milliseconds. | [default to undefined]
21
- **signedAtMillis** | **number** | The signing timestamp of the order in milliseconds. | [default to undefined]
22
- **signerAddress** | **string** | The address of the signer of the order request. | [default to undefined]
23
- **type** | [**OrderType**](OrderType.md) | | [default to undefined]
24
- **reduceOnly** | **boolean** | Indicates if the order is reduce-only. | [default to undefined]
25
- **postOnly** | **boolean** | Indicates if the order is post-only. | [default to undefined]
26
- **timeInForce** | [**OrderTimeInForce**](OrderTimeInForce.md) | | [default to undefined]
27
- **triggerPriceE9** | **string** | The trigger price for stop-limit or stop-market orders. | [optional] [default to undefined]
28
- **status** | [**OrderStatus**](OrderStatus.md) | | [default to undefined]
29
- **selfTradePreventionType** | [**SelfTradePreventionType**](SelfTradePreventionType.md) | | [default to undefined]
30
- **createdAtMillis** | **number** | The timestamp when the order was placed, in milliseconds. | [default to undefined]
31
- **updatedAtMillis** | **number** | The timestamp of the last update of the order in milliseconds. | [default to undefined]
32
-
33
- ## Example
34
-
35
- ```typescript
36
- import { ActiveOrderUpdate } from '@bluefin/api-client';
37
-
38
- const instance: ActiveOrderUpdate = {
39
- orderHash,
40
- clientOrderId,
41
- symbol,
42
- accountAddress,
43
- priceE9,
44
- quantityE9,
45
- filledQuantityE9,
46
- side,
47
- leverageE9,
48
- isIsolated,
49
- salt,
50
- expiresAtMillis,
51
- signedAtMillis,
52
- signerAddress,
53
- type,
54
- reduceOnly,
55
- postOnly,
56
- timeInForce,
57
- triggerPriceE9,
58
- status,
59
- selfTradePreventionType,
60
- createdAtMillis,
61
- updatedAtMillis,
62
- };
63
- ```
64
-
65
- [[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
- # AdjustIsolatedMarginRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **signedFields** | [**AdjustIsolatedMarginRequestSignedFields**](AdjustIsolatedMarginRequestSignedFields.md) | | [default to undefined]
9
- **signature** | **string** | The signature of the request, encoded from the signedFields | [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { AdjustIsolatedMarginRequest } from '@bluefin/api-client';
15
-
16
- const instance: AdjustIsolatedMarginRequest = {
17
- signedFields,
18
- signature,
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,32 +0,0 @@
1
- # AdjustIsolatedMarginRequestSignedFields
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **idsId** | **string** | the ID of the internal datastore for the target network | [default to undefined]
9
- **accountAddress** | **string** | The account address of the account for which to adjust margin | [default to undefined]
10
- **symbol** | **string** | The symbol of the isolated position for which to adjust margin | [default to undefined]
11
- **operation** | [**AdjustMarginOperation**](AdjustMarginOperation.md) | | [default to undefined]
12
- **quantityE9** | **string** | The quantity of margin to adjust for the isolated position | [default to undefined]
13
- **salt** | **string** | The random generated SALT. Should always be a number | [default to undefined]
14
- **signedAtMillis** | **number** | The timestamp in millis at which the request was signed | [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { AdjustIsolatedMarginRequestSignedFields } from '@bluefin/api-client';
20
-
21
- const instance: AdjustIsolatedMarginRequestSignedFields = {
22
- idsId,
23
- accountAddress,
24
- symbol,
25
- operation,
26
- quantityE9,
27
- salt,
28
- signedAtMillis,
29
- };
30
- ```
31
-
32
- [[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,11 +0,0 @@
1
- # AdjustMarginOperation
2
-
3
- The operation to perform on the margin
4
-
5
- ## Enum
6
-
7
- * `Add` (value: `'ADD'`)
8
-
9
- * `Subtract` (value: `'SUBTRACT'`)
10
-
11
- [[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,56 +0,0 @@
1
- # AffiliateIntervalOverview
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
- **intervalNumber** | **number** | The interval number for the affiliate\'s earnings data | [default to undefined]
11
- **intervalStartDate** | **number** | Start date of the interval in seconds | [default to undefined]
12
- **intervalEndDate** | **number** | End date of the interval in seconds | [default to undefined]
13
- **status** | **string** | Status of the interval | [default to undefined]
14
- **referredSince** | **string** | Date when the user was referred | [default to undefined]
15
- **perpsRefereeEarningsE9** | **string** | Referee earnings from perps trading (e9 format) | [default to undefined]
16
- **spotLPRefereeEarningsE9** | **string** | Referee earnings from spot LP (e9 format) | [default to undefined]
17
- **lendingRefereeEarningsE9** | **string** | Referee earnings from lending (e9 format) | [default to undefined]
18
- **perpsReferralEarningsE9** | **string** | Referral earnings from perps trading (e9 format) | [default to undefined]
19
- **spotLPReferralEarningsE9** | **string** | Referral earnings from spot LP (e9 format) | [default to undefined]
20
- **lendingReferralEarningsE9** | **string** | Referral earnings from lending (e9 format) | [default to undefined]
21
- **perpsTotalEarningsE9** | **string** | Total earnings from perps trading (e9 format) | [default to undefined]
22
- **spotLPTotalEarningsE9** | **string** | Total earnings from spot LP (e9 format) | [default to undefined]
23
- **lendingTotalEarningsE9** | **string** | Total earnings from lending (e9 format) | [default to undefined]
24
- **totalReferralEarningsE9** | **string** | Total earnings from referrals (e9 format) | [default to undefined]
25
- **totalRefereeEarningsE9** | **string** | Total earnings from referee activities (e9 format) | [default to undefined]
26
- **totalEarningsE9** | **string** | Total earnings combining referrals and referee activities (e9 format) | [default to undefined]
27
-
28
- ## Example
29
-
30
- ```typescript
31
- import { AffiliateIntervalOverview } from '@bluefin/api-client';
32
-
33
- const instance: AffiliateIntervalOverview = {
34
- userAddress,
35
- name,
36
- intervalNumber,
37
- intervalStartDate,
38
- intervalEndDate,
39
- status,
40
- referredSince,
41
- perpsRefereeEarningsE9,
42
- spotLPRefereeEarningsE9,
43
- lendingRefereeEarningsE9,
44
- perpsReferralEarningsE9,
45
- spotLPReferralEarningsE9,
46
- lendingReferralEarningsE9,
47
- perpsTotalEarningsE9,
48
- spotLPTotalEarningsE9,
49
- lendingTotalEarningsE9,
50
- totalReferralEarningsE9,
51
- totalRefereeEarningsE9,
52
- totalEarningsE9,
53
- };
54
- ```
55
-
56
- [[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,38 +0,0 @@
1
- # AffiliateLeaderDashboard
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
- **parentAddress** | **string** | The parent affiliate\'s wallet address | [default to undefined]
11
- **parentName** | **string** | Name of the parent affiliate | [optional] [default to undefined]
12
- **perpsRank** | **number** | Ranking in perps trading category | [default to undefined]
13
- **spotRank** | **number** | Ranking in spot trading category | [default to undefined]
14
- **lendingRank** | **number** | Ranking in lending category | [default to undefined]
15
- **perpsTotalEarningsE9** | **string** | Total earnings from perps trading (e9 format) | [default to undefined]
16
- **spotTotalEarningsE9** | **string** | Total earnings from spot trading (e9 format) | [default to undefined]
17
- **lendingTotalEarningsE9** | **string** | Total earnings from lending (e9 format) | [default to undefined]
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import { AffiliateLeaderDashboard } from '@bluefin/api-client';
23
-
24
- const instance: AffiliateLeaderDashboard = {
25
- userAddress,
26
- name,
27
- parentAddress,
28
- parentName,
29
- perpsRank,
30
- spotRank,
31
- lendingRank,
32
- perpsTotalEarningsE9,
33
- spotTotalEarningsE9,
34
- lendingTotalEarningsE9,
35
- };
36
- ```
37
-
38
- [[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,36 +0,0 @@
1
- # AffiliateMetadata
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **userAddress** | **string** | The user\'s wallet address | [default to undefined]
9
- **parentReferralCode** | **string** | The referral code of the parent affiliate | [optional] [default to undefined]
10
- **referralCode** | **string** | The user\'s referral code if approved as an affiliate | [optional] [default to undefined]
11
- **name** | **string** | The name of the affiliate | [optional] [default to undefined]
12
- **parentName** | **string** | The name of the parent affiliate | [optional] [default to undefined]
13
- **fees** | [**FeeConfigs**](.md) | | [optional] [default to undefined]
14
- **status** | **string** | Status of the affiliate application | [optional] [default to undefined]
15
- **hasTraded** | **boolean** | Indicates whether the user has traded or not | [default to undefined]
16
- **tier** | **string** | Tier of the affiliate | [optional] [default to undefined]
17
-
18
- ## Example
19
-
20
- ```typescript
21
- import { AffiliateMetadata } from '@bluefin/api-client';
22
-
23
- const instance: AffiliateMetadata = {
24
- userAddress,
25
- parentReferralCode,
26
- referralCode,
27
- name,
28
- parentName,
29
- fees,
30
- status,
31
- hasTraded,
32
- tier,
33
- };
34
- ```
35
-
36
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)