@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,26 +0,0 @@
1
- # RewardsSummary
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **userAddress** | **string** | User address for the rewards earned data. | [default to undefined]
9
- **blueRewardsE9** | **string** | Total Blue token rewards earned by the user (e9 format). | [default to undefined]
10
- **suiRewardsE9** | **string** | Total Sui token rewards earned by the user (e9 format). | [default to undefined]
11
- **walRewardsE9** | **string** | Total wal rewards earned by the user (e9 format). | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { RewardsSummary } from '@bluefin/api-client';
17
-
18
- const instance: RewardsSummary = {
19
- userAddress,
20
- blueRewardsE9,
21
- suiRewardsE9,
22
- walRewardsE9,
23
- };
24
- ```
25
-
26
- [[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,15 +0,0 @@
1
- # SelfTradePreventionType
2
-
3
- The strategy used to resolve self trades. TAKER: On a self trade, the taker order will be cancelled MAKER: On a self trade, the maker order will be cancelled BOTH: On a self trade, both the taker and the maker order will be cancelled UNSPECIFIED: set to default value
4
-
5
- ## Enum
6
-
7
- * `Taker` (value: `'TAKER'`)
8
-
9
- * `Maker` (value: `'MAKER'`)
10
-
11
- * `Both` (value: `'BOTH'`)
12
-
13
- * `Unspecified` (value: `'UNSPECIFIED'`)
14
-
15
- [[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,26 +0,0 @@
1
- # StatsEntry
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **startTimeAtMillis** | **number** | Timestamp in milliseconds when the statistics period starts. | [default to undefined]
9
- **tvlE9** | **string** | Total value locked in the exchange in e9 format. | [default to undefined]
10
- **totalQuoteAssetVolumeE9** | **string** | Total quote asset volume in the exchange in e9 format. | [default to undefined]
11
- **endTimeAtMillis** | **number** | Timestamp in milliseconds when the statistics period ends. | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { StatsEntry } from '@bluefin/api-client';
17
-
18
- const instance: StatsEntry = {
19
- startTimeAtMillis,
20
- tvlE9,
21
- totalQuoteAssetVolumeE9,
22
- endTimeAtMillis,
23
- };
24
- ```
25
-
26
- [[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
- # StatsInterval
2
-
3
-
4
- ## Enum
5
-
6
- * `_1d` (value: `'1d'`)
7
-
8
- * `_1w` (value: `'1w'`)
9
-
10
- * `_1Mo` (value: `'1Mo'`)
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,20 +0,0 @@
1
- # StatsResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **data** | [**Array<StatsEntry>**](StatsEntry.md) | | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { StatsResponse } from '@bluefin/api-client';
14
-
15
- const instance: StatsResponse = {
16
- data,
17
- };
18
- ```
19
-
20
- [[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,126 +0,0 @@
1
- # StreamsApi
2
-
3
- All URIs are relative to *https://api.sui-staging.bluefin.io*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**webSocketAccountData**](#websocketaccountdata) | **GET** /ws/account | |
8
- |[**webSocketMarketData**](#websocketmarketdata) | **GET** /ws/market | |
9
-
10
- # **webSocketAccountData**
11
- > webSocketAccountData()
12
-
13
- WebSocket Account Streams URL.
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- StreamsApi,
20
- Configuration
21
- } from '@bluefin/api-client';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new StreamsApi(configuration);
25
-
26
- let authorization: string; // (default to undefined)
27
- let upgrade: 'websocket'; // (default to undefined)
28
- let secWebSocketKey: string; //WebSocket key used during the handshake. (default to undefined)
29
- let secWebSocketVersion: '13'; //WebSocket protocol version. (default to undefined)
30
-
31
- const { status, data } = await apiInstance.webSocketAccountData(
32
- authorization,
33
- upgrade,
34
- secWebSocketKey,
35
- secWebSocketVersion
36
- );
37
- ```
38
-
39
- ### Parameters
40
-
41
- |Name | Type | Description | Notes|
42
- |------------- | ------------- | ------------- | -------------|
43
- | **authorization** | [**string**] | | defaults to undefined|
44
- | **upgrade** | [**&#39;websocket&#39;**]**Array<&#39;websocket&#39;>** | | defaults to undefined|
45
- | **secWebSocketKey** | [**string**] | WebSocket key used during the handshake. | defaults to undefined|
46
- | **secWebSocketVersion** | [**&#39;13&#39;**]**Array<&#39;13&#39;>** | WebSocket protocol version. | defaults to undefined|
47
-
48
-
49
- ### Return type
50
-
51
- void (empty response body)
52
-
53
- ### Authorization
54
-
55
- [bearerAuth](../README.md#bearerAuth)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: Not defined
60
- - **Accept**: Not defined
61
-
62
-
63
- ### HTTP response details
64
- | Status code | Description | Response headers |
65
- |-------------|-------------|------------------|
66
- |**101** | Switching Protocols - The client is switching protocols as requested by the server. | * Upgrade - Recognized WebSocket protocol <br> |
67
-
68
- [[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)
69
-
70
- # **webSocketMarketData**
71
- > webSocketMarketData()
72
-
73
- WebSocket Market Streams URL.
74
-
75
- ### Example
76
-
77
- ```typescript
78
- import {
79
- StreamsApi,
80
- Configuration
81
- } from '@bluefin/api-client';
82
-
83
- const configuration = new Configuration();
84
- const apiInstance = new StreamsApi(configuration);
85
-
86
- let upgrade: 'websocket'; // (default to undefined)
87
- let secWebSocketKey: string; //WebSocket key used during the handshake. (default to undefined)
88
- let secWebSocketVersion: '13'; //WebSocket protocol version. (default to undefined)
89
-
90
- const { status, data } = await apiInstance.webSocketMarketData(
91
- upgrade,
92
- secWebSocketKey,
93
- secWebSocketVersion
94
- );
95
- ```
96
-
97
- ### Parameters
98
-
99
- |Name | Type | Description | Notes|
100
- |------------- | ------------- | ------------- | -------------|
101
- | **upgrade** | [**&#39;websocket&#39;**]**Array<&#39;websocket&#39;>** | | defaults to undefined|
102
- | **secWebSocketKey** | [**string**] | WebSocket key used during the handshake. | defaults to undefined|
103
- | **secWebSocketVersion** | [**&#39;13&#39;**]**Array<&#39;13&#39;>** | WebSocket protocol version. | defaults to undefined|
104
-
105
-
106
- ### Return type
107
-
108
- void (empty response body)
109
-
110
- ### Authorization
111
-
112
- No authorization required
113
-
114
- ### HTTP request headers
115
-
116
- - **Content-Type**: Not defined
117
- - **Accept**: Not defined
118
-
119
-
120
- ### HTTP response details
121
- | Status code | Description | Response headers |
122
- |-------------|-------------|------------------|
123
- |**101** | Switching Protocols - The client is switching protocols as requested by the server. | * Upgrade - Recognized WebSocket protocol <br> |
124
-
125
- [[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)
126
-
@@ -1,23 +0,0 @@
1
- # SubscriptionResponseMessage
2
-
3
- Response message indicating the success or failure of a subscription operation.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **success** | **boolean** | Indicates if the subscription operation was successful. | [default to undefined]
10
- **message** | **string** | Additional information about the subscription operation. | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { SubscriptionResponseMessage } from '@bluefin/api-client';
16
-
17
- const instance: SubscriptionResponseMessage = {
18
- success,
19
- message,
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,11 +0,0 @@
1
- # SubscriptionType
2
-
3
- Indicates the type of subscription action.
4
-
5
- ## Enum
6
-
7
- * `Subscribe` (value: `'Subscribe'`)
8
-
9
- * `Unsubscribe` (value: `'Unsubscribe'`)
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,20 +0,0 @@
1
- # TickerAllUpdate
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **tickerAll** | [**Array&lt;TickerUpdate&gt;**](TickerUpdate.md) | Array of detailed market ticker information for all markets. | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { TickerAllUpdate } from '@bluefin/api-client';
14
-
15
- const instance: TickerAllUpdate = {
16
- tickerAll,
17
- };
18
- ```
19
-
20
- [[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,82 +0,0 @@
1
- # TickerResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **symbol** | **string** | Market symbol. | [default to undefined]
9
- **lastQuantityE9** | **string** | Last trade quantity (e9 format). | [default to undefined]
10
- **lastTimeAtMillis** | **number** | Last trade time in milliseconds. | [default to undefined]
11
- **lastPriceE9** | **string** | Last trade price (e9 format). | [default to undefined]
12
- **lastFundingRateE9** | **string** | Funding rate value (e9 format). | [default to undefined]
13
- **nextFundingTimeAtMillis** | **number** | Time in milliseconds of next funding rate update. | [default to undefined]
14
- **avgFundingRate8hrE9** | **string** | 8 hr average funding rate (e9 format). | [default to undefined]
15
- **oraclePriceE9** | **string** | Oracle price of the asset (e9 format). | [default to undefined]
16
- **oraclePriceDirection** | **number** | Direction of oracle price computed by comparing current oracle price to last oracle price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 positive trend (current &gt; last). | [default to undefined]
17
- **markPriceE9** | **string** | Mark price on the exchange (e9 format). | [default to undefined]
18
- **markPriceDirection** | **number** | Direction of mark price computed by comparing current mark price to last mark price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 positive trend (current &gt; last). | [default to undefined]
19
- **marketPriceE9** | **string** | Simple average of bestBid and bestAsk. lastPrice if either is not present (e9 format). | [default to undefined]
20
- **marketPriceDirection** | **number** | Direction of market price computed by comparing current market price to last market price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 positive trend (current &gt; last). | [default to undefined]
21
- **bestBidPriceE9** | **string** | Best bid price (e9 format). | [default to undefined]
22
- **bestBidQuantityE9** | **string** | Best bid quantity (e9 format). | [default to undefined]
23
- **bestAskPriceE9** | **string** | Best ask price (e9 format). | [default to undefined]
24
- **bestAskQuantityE9** | **string** | Best ask quantity (e9 format). | [default to undefined]
25
- **openInterestE9** | **string** | Open interest value (e9 format). | [default to undefined]
26
- **highPrice24hrE9** | **string** | Highest Price in the last 24hrs (e9 format). | [default to undefined]
27
- **lowPrice24hrE9** | **string** | Lowest Price in the last 24hrs (e9 format). | [default to undefined]
28
- **volume24hrE9** | **string** | Total market volume in last 24hrs of asset (e9 format). | [default to undefined]
29
- **quoteVolume24hrE9** | **string** | Total market volume in last 24hrs in USDC (e9 format). | [default to undefined]
30
- **closePrice24hrE9** | **string** | Close price 24hrs ago (e9 format). | [default to undefined]
31
- **openPrice24hrE9** | **string** | Open price in the last 24hrs (e9 format). | [default to undefined]
32
- **closeTime24hrAtMillis** | **number** | 24 hour close time in milliseconds. | [default to undefined]
33
- **openTime24hrAtMillis** | **number** | 24 hour open time in milliseconds. | [default to undefined]
34
- **firstId24hr** | **number** | First trade id in 24hr. | [default to undefined]
35
- **lastId24hr** | **number** | Last trade id in 24hr. | [default to undefined]
36
- **count24hr** | **string** | Total number of trades in 24hr. | [default to undefined]
37
- **priceChange24hrE9** | **string** | 24hr Market price change (e9 format). | [default to undefined]
38
- **priceChangePercent24hrE9** | **string** | 24hr Market price change in percentage (e9 format). | [default to undefined]
39
- **updatedAtMillis** | **number** | Last update time in milliseconds. | [default to undefined]
40
-
41
- ## Example
42
-
43
- ```typescript
44
- import { TickerResponse } from '@bluefin/api-client';
45
-
46
- const instance: TickerResponse = {
47
- symbol,
48
- lastQuantityE9,
49
- lastTimeAtMillis,
50
- lastPriceE9,
51
- lastFundingRateE9,
52
- nextFundingTimeAtMillis,
53
- avgFundingRate8hrE9,
54
- oraclePriceE9,
55
- oraclePriceDirection,
56
- markPriceE9,
57
- markPriceDirection,
58
- marketPriceE9,
59
- marketPriceDirection,
60
- bestBidPriceE9,
61
- bestBidQuantityE9,
62
- bestAskPriceE9,
63
- bestAskQuantityE9,
64
- openInterestE9,
65
- highPrice24hrE9,
66
- lowPrice24hrE9,
67
- volume24hrE9,
68
- quoteVolume24hrE9,
69
- closePrice24hrE9,
70
- openPrice24hrE9,
71
- closeTime24hrAtMillis,
72
- openTime24hrAtMillis,
73
- firstId24hr,
74
- lastId24hr,
75
- count24hr,
76
- priceChange24hrE9,
77
- priceChangePercent24hrE9,
78
- updatedAtMillis,
79
- };
80
- ```
81
-
82
- [[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,83 +0,0 @@
1
- # TickerUpdate
2
-
3
- Represents detailed market ticker information.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **symbol** | **string** | Market symbol. | [default to undefined]
10
- **lastQuantityE9** | **string** | Last trade quantity (e9 format). | [default to undefined]
11
- **lastTimeAtMillis** | **number** | Last trade time in milliseconds. | [default to undefined]
12
- **lastPriceE9** | **string** | Last trade price (e9 format). | [default to undefined]
13
- **lastFundingRateE9** | **string** | Funding rate value (e9 format). | [default to undefined]
14
- **nextFundingTimeAtMillis** | **number** | Time in milliseconds of next funding rate update. | [default to undefined]
15
- **avgFundingRate8hrE9** | **string** | 8 hr average funding rate (e9 format). | [default to undefined]
16
- **oraclePriceE9** | **string** | Oracle price of the asset (e9 format). | [default to undefined]
17
- **oraclePriceDirection** | **number** | Direction of oracle price computed by comparing current oracle price to last oracle price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 &#x3D; positive trend (current &gt; last). | [default to undefined]
18
- **markPriceE9** | **string** | Mark price on the exchange (e9 format). | [default to undefined]
19
- **markPriceDirection** | **number** | Direction of mark price computed by comparing current mark price to last mark price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 &#x3D; positive trend (current &gt; last). | [default to undefined]
20
- **marketPriceE9** | **string** | Simple average of bestBid and bestAsk, or lastPrice if either is not present (e9 format). | [default to undefined]
21
- **marketPriceDirection** | **number** | Direction of market price computed by comparing current market price to last market price. 0 &#x3D; no change, -1 &#x3D; negative trend (current &lt; last), 1 &#x3D; positive trend (current &gt; last). | [default to undefined]
22
- **bestBidPriceE9** | **string** | Best bid price (e9 format). | [default to undefined]
23
- **bestBidQuantityE9** | **string** | Best bid quantity (e9 format). | [default to undefined]
24
- **bestAskPriceE9** | **string** | Best ask price (e9 format). | [default to undefined]
25
- **bestAskQuantityE9** | **string** | Best ask quantity (e9 format). | [default to undefined]
26
- **openInterestE9** | **string** | Open interest value (e9 format). | [default to undefined]
27
- **highPrice24hrE9** | **string** | Highest Price in the last 24 hours (e9 format). | [default to undefined]
28
- **lowPrice24hrE9** | **string** | Lowest Price in the last 24 hours (e9 format). | [default to undefined]
29
- **volume24hrE9** | **string** | Total market volume in last 24 hours of asset (e9 format). | [default to undefined]
30
- **quoteVolume24hrE9** | **string** | Total market volume in last 24 hours in USDC (e9 format). | [default to undefined]
31
- **closePrice24hrE9** | **string** | Close price 24 hours ago (e9 format). | [default to undefined]
32
- **openPrice24hrE9** | **string** | Open price in the last 24 hours (e9 format). | [default to undefined]
33
- **closeTime24hrAtMillis** | **number** | 24 hour close timestamp in milliseconds. | [default to undefined]
34
- **openTime24hrAtMillis** | **number** | 24 hour open timetamp in milliseconds. | [default to undefined]
35
- **firstId24hr** | **number** | First trade ID in the last 24 hours. | [default to undefined]
36
- **lastId24hr** | **number** | Last trade ID in the last 24 hours. | [default to undefined]
37
- **count24hr** | **string** | Total number of trades in the last 24 hours. | [default to undefined]
38
- **priceChange24hrE9** | **string** | 24 hour Market price change (e9 format). | [default to undefined]
39
- **priceChangePercent24hrE9** | **string** | 24 hour Market price change as a percentage (e9 format). | [default to undefined]
40
- **updatedAtMillis** | **number** | Last update timestamp in milliseconds. | [default to undefined]
41
-
42
- ## Example
43
-
44
- ```typescript
45
- import { TickerUpdate } from '@bluefin/api-client';
46
-
47
- const instance: TickerUpdate = {
48
- symbol,
49
- lastQuantityE9,
50
- lastTimeAtMillis,
51
- lastPriceE9,
52
- lastFundingRateE9,
53
- nextFundingTimeAtMillis,
54
- avgFundingRate8hrE9,
55
- oraclePriceE9,
56
- oraclePriceDirection,
57
- markPriceE9,
58
- markPriceDirection,
59
- marketPriceE9,
60
- marketPriceDirection,
61
- bestBidPriceE9,
62
- bestBidQuantityE9,
63
- bestAskPriceE9,
64
- bestAskQuantityE9,
65
- openInterestE9,
66
- highPrice24hrE9,
67
- lowPrice24hrE9,
68
- volume24hrE9,
69
- quoteVolume24hrE9,
70
- closePrice24hrE9,
71
- openPrice24hrE9,
72
- closeTime24hrAtMillis,
73
- openTime24hrAtMillis,
74
- firstId24hr,
75
- lastId24hr,
76
- count24hr,
77
- priceChange24hrE9,
78
- priceChangePercent24hrE9,
79
- updatedAtMillis,
80
- };
81
- ```
82
-
83
- [[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/Trade.md DELETED
@@ -1,54 +0,0 @@
1
- # Trade
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | Trade ID | [default to undefined]
9
- **clientOrderId** | **string** | Client order ID. | [optional] [default to undefined]
10
- **symbol** | **string** | Market address. | [optional] [default to undefined]
11
- **orderHash** | **string** | Order hash. | [optional] [default to undefined]
12
- **orderType** | [**OrderType**](OrderType.md) | | [optional] [default to undefined]
13
- **tradeType** | [**TradeType**](TradeType.md) | | [optional] [default to undefined]
14
- **side** | [**TradeSide**](TradeSide.md) | | [default to undefined]
15
- **isMaker** | **boolean** | Indicates if the user was a maker to the trade. | [optional] [default to undefined]
16
- **priceE9** | **string** | Trade price (e9 format). | [default to undefined]
17
- **quantityE9** | **string** | Trade quantity (e9 format). | [default to undefined]
18
- **quoteQuantityE9** | **string** | Quote quantity (e9 format). | [default to undefined]
19
- **realizedPnlE9** | **string** | Realized profit and loss (e9 format). | [optional] [default to undefined]
20
- **positionSide** | [**PositionSide**](PositionSide.md) | | [optional] [default to undefined]
21
- **tradingFeeE9** | **string** | Trading fee (e9 format). | [optional] [default to undefined]
22
- **tradingFeeAsset** | **string** | Asset used for trading fee. | [optional] [default to undefined]
23
- **gasFeeE9** | **string** | Gas fee. | [optional] [default to undefined]
24
- **gasFeeAsset** | **string** | Asset used for gas fee. | [optional] [default to undefined]
25
- **executedAtMillis** | **number** | Trade timestamp in milliseconds since Unix epoch. | [default to undefined]
26
-
27
- ## Example
28
-
29
- ```typescript
30
- import { Trade } from '@bluefin/api-client';
31
-
32
- const instance: Trade = {
33
- id,
34
- clientOrderId,
35
- symbol,
36
- orderHash,
37
- orderType,
38
- tradeType,
39
- side,
40
- isMaker,
41
- priceE9,
42
- quantityE9,
43
- quoteQuantityE9,
44
- realizedPnlE9,
45
- positionSide,
46
- tradingFeeE9,
47
- tradingFeeAsset,
48
- gasFeeE9,
49
- gasFeeAsset,
50
- executedAtMillis,
51
- };
52
- ```
53
-
54
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)