coinbase-api 0.3.2 → 1.0.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 (218) hide show
  1. package/README.md +438 -14
  2. package/dist/cjs/CBAdvancedTradeClient.d.ts +559 -0
  3. package/dist/cjs/CBAdvancedTradeClient.js +574 -0
  4. package/dist/cjs/CBAdvancedTradeClient.js.map +1 -0
  5. package/dist/cjs/CBAppClient.d.ts +359 -0
  6. package/dist/cjs/CBAppClient.js +336 -0
  7. package/dist/cjs/CBAppClient.js.map +1 -0
  8. package/dist/cjs/CBCommerceClient.d.ts +110 -0
  9. package/dist/cjs/CBCommerceClient.js +105 -0
  10. package/dist/cjs/CBCommerceClient.js.map +1 -0
  11. package/dist/cjs/CBExchangeClient.d.ts +640 -0
  12. package/dist/cjs/CBExchangeClient.js +751 -0
  13. package/dist/cjs/CBExchangeClient.js.map +1 -0
  14. package/dist/cjs/CBInternationalClient.d.ts +381 -0
  15. package/dist/cjs/CBInternationalClient.js +437 -0
  16. package/dist/cjs/CBInternationalClient.js.map +1 -0
  17. package/dist/cjs/CBPrimeClient.d.ts +363 -0
  18. package/dist/cjs/CBPrimeClient.js +451 -0
  19. package/dist/cjs/CBPrimeClient.js.map +1 -0
  20. package/dist/cjs/WebsocketClient.d.ts +78 -0
  21. package/dist/cjs/WebsocketClient.js +534 -0
  22. package/dist/cjs/WebsocketClient.js.map +1 -0
  23. package/dist/cjs/index.d.ts +13 -0
  24. package/dist/cjs/index.js +30 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/cjs/lib/BaseRestClient.d.ts +66 -0
  27. package/dist/cjs/lib/BaseRestClient.js +436 -0
  28. package/dist/cjs/lib/BaseRestClient.js.map +1 -0
  29. package/dist/cjs/lib/BaseWSClient.d.ts +169 -0
  30. package/dist/cjs/lib/BaseWSClient.js +638 -0
  31. package/dist/cjs/lib/BaseWSClient.js.map +1 -0
  32. package/dist/cjs/lib/jwtNode.d.ts +13 -0
  33. package/dist/cjs/lib/jwtNode.js +52 -0
  34. package/dist/cjs/lib/jwtNode.js.map +1 -0
  35. package/dist/cjs/lib/misc-util.d.ts +1 -0
  36. package/dist/cjs/lib/misc-util.js +7 -0
  37. package/dist/cjs/lib/misc-util.js.map +1 -0
  38. package/dist/cjs/lib/requestUtils.d.ts +98 -0
  39. package/dist/cjs/lib/requestUtils.js +75 -0
  40. package/dist/cjs/lib/requestUtils.js.map +1 -0
  41. package/dist/cjs/lib/webCryptoAPI.d.ts +10 -0
  42. package/dist/cjs/lib/webCryptoAPI.js +83 -0
  43. package/dist/cjs/lib/webCryptoAPI.js.map +1 -0
  44. package/dist/cjs/lib/websocket/WsStore.d.ts +63 -0
  45. package/dist/cjs/lib/websocket/WsStore.js +254 -0
  46. package/dist/cjs/lib/websocket/WsStore.js.map +1 -0
  47. package/dist/cjs/lib/websocket/WsStore.types.d.ts +49 -0
  48. package/dist/cjs/lib/websocket/WsStore.types.js +14 -0
  49. package/dist/cjs/lib/websocket/WsStore.types.js.map +1 -0
  50. package/dist/cjs/lib/websocket/logger.d.ts +6 -0
  51. package/dist/cjs/lib/websocket/logger.js +16 -0
  52. package/dist/cjs/lib/websocket/logger.js.map +1 -0
  53. package/dist/cjs/lib/websocket/typeGuards.d.ts +27 -0
  54. package/dist/cjs/lib/websocket/typeGuards.js +86 -0
  55. package/dist/cjs/lib/websocket/typeGuards.js.map +1 -0
  56. package/dist/cjs/lib/websocket/websocket-util.d.ts +120 -0
  57. package/dist/cjs/lib/websocket/websocket-util.js +173 -0
  58. package/dist/cjs/lib/websocket/websocket-util.js.map +1 -0
  59. package/dist/cjs/package.json +3 -0
  60. package/dist/cjs/types/request/advanced-trade-client.d.ts +194 -0
  61. package/dist/cjs/types/request/advanced-trade-client.js +18 -0
  62. package/dist/cjs/types/request/advanced-trade-client.js.map +1 -0
  63. package/dist/cjs/types/request/coinbase-app-client.d.ts +80 -0
  64. package/dist/cjs/types/request/coinbase-app-client.js +28 -0
  65. package/dist/cjs/types/request/coinbase-app-client.js.map +1 -0
  66. package/dist/cjs/types/request/coinbase-exchange.d.ts +332 -0
  67. package/dist/cjs/types/request/coinbase-exchange.js +3 -0
  68. package/dist/cjs/types/request/coinbase-exchange.js.map +1 -0
  69. package/dist/cjs/types/request/coinbase-international.d.ts +160 -0
  70. package/dist/cjs/types/request/coinbase-international.js +13 -0
  71. package/dist/cjs/types/request/coinbase-international.js.map +1 -0
  72. package/dist/cjs/types/request/coinbase-prime.d.ts +298 -0
  73. package/dist/cjs/types/request/coinbase-prime.js +8 -0
  74. package/dist/cjs/types/request/coinbase-prime.js.map +1 -0
  75. package/dist/cjs/types/response/advanced-trade-client.d.ts +759 -0
  76. package/dist/cjs/types/response/advanced-trade-client.js +8 -0
  77. package/dist/cjs/types/response/advanced-trade-client.js.map +1 -0
  78. package/dist/cjs/types/response/coinbase-app-client.d.ts +168 -0
  79. package/dist/cjs/types/response/coinbase-app-client.js +18 -0
  80. package/dist/cjs/types/response/coinbase-app-client.js.map +1 -0
  81. package/dist/cjs/types/response/coinbase-exchange.d.ts +80 -0
  82. package/dist/cjs/types/response/coinbase-exchange.js +82 -0
  83. package/dist/cjs/types/response/coinbase-exchange.js.map +1 -0
  84. package/dist/cjs/types/response/coinbase-international.d.ts +40 -0
  85. package/dist/cjs/types/response/coinbase-international.js +42 -0
  86. package/dist/cjs/types/response/coinbase-international.js.map +1 -0
  87. package/dist/cjs/types/response/coinbase-prime.d.ts +70 -0
  88. package/dist/cjs/types/response/coinbase-prime.js +72 -0
  89. package/dist/cjs/types/response/coinbase-prime.js.map +1 -0
  90. package/dist/cjs/types/response/ws.d.ts +7 -0
  91. package/dist/cjs/types/response/ws.js +3 -0
  92. package/dist/cjs/types/response/ws.js.map +1 -0
  93. package/dist/cjs/types/shared.types.d.ts +60 -0
  94. package/dist/cjs/types/shared.types.js +3 -0
  95. package/dist/cjs/types/shared.types.js.map +1 -0
  96. package/dist/cjs/types/websockets/client.d.ts +73 -0
  97. package/dist/cjs/types/websockets/client.js +3 -0
  98. package/dist/cjs/types/websockets/client.js.map +1 -0
  99. package/dist/cjs/types/websockets/events.d.ts +40 -0
  100. package/dist/cjs/types/websockets/events.js +3 -0
  101. package/dist/cjs/types/websockets/events.js.map +1 -0
  102. package/dist/cjs/types/websockets/requests.d.ts +76 -0
  103. package/dist/cjs/types/websockets/requests.js +3 -0
  104. package/dist/cjs/types/websockets/requests.js.map +1 -0
  105. package/dist/cjs/types/websockets/wsAPI.d.ts +9 -0
  106. package/dist/cjs/types/websockets/wsAPI.js +3 -0
  107. package/dist/cjs/types/websockets/wsAPI.js.map +1 -0
  108. package/dist/mjs/CBAdvancedTradeClient.d.ts +559 -0
  109. package/dist/mjs/CBAdvancedTradeClient.js +570 -0
  110. package/dist/mjs/CBAdvancedTradeClient.js.map +1 -0
  111. package/dist/mjs/CBAppClient.d.ts +359 -0
  112. package/dist/mjs/CBAppClient.js +332 -0
  113. package/dist/mjs/CBAppClient.js.map +1 -0
  114. package/dist/mjs/CBCommerceClient.d.ts +110 -0
  115. package/dist/mjs/CBCommerceClient.js +101 -0
  116. package/dist/mjs/CBCommerceClient.js.map +1 -0
  117. package/dist/mjs/CBExchangeClient.d.ts +640 -0
  118. package/dist/mjs/CBExchangeClient.js +747 -0
  119. package/dist/mjs/CBExchangeClient.js.map +1 -0
  120. package/dist/mjs/CBInternationalClient.d.ts +381 -0
  121. package/dist/mjs/CBInternationalClient.js +433 -0
  122. package/dist/mjs/CBInternationalClient.js.map +1 -0
  123. package/dist/mjs/CBPrimeClient.d.ts +363 -0
  124. package/dist/mjs/CBPrimeClient.js +447 -0
  125. package/dist/mjs/CBPrimeClient.js.map +1 -0
  126. package/dist/mjs/WebsocketClient.d.ts +78 -0
  127. package/dist/mjs/WebsocketClient.js +530 -0
  128. package/dist/mjs/WebsocketClient.js.map +1 -0
  129. package/dist/mjs/index.d.ts +13 -0
  130. package/dist/mjs/index.js +14 -0
  131. package/dist/mjs/index.js.map +1 -0
  132. package/dist/mjs/lib/BaseRestClient.d.ts +66 -0
  133. package/dist/mjs/lib/BaseRestClient.js +429 -0
  134. package/dist/mjs/lib/BaseRestClient.js.map +1 -0
  135. package/dist/mjs/lib/BaseWSClient.d.ts +169 -0
  136. package/dist/mjs/lib/BaseWSClient.js +631 -0
  137. package/dist/mjs/lib/BaseWSClient.js.map +1 -0
  138. package/dist/mjs/lib/jwtNode.d.ts +13 -0
  139. package/dist/mjs/lib/jwtNode.js +45 -0
  140. package/dist/mjs/lib/jwtNode.js.map +1 -0
  141. package/dist/mjs/lib/misc-util.d.ts +1 -0
  142. package/dist/mjs/lib/misc-util.js +4 -0
  143. package/dist/mjs/lib/misc-util.js.map +1 -0
  144. package/dist/mjs/lib/requestUtils.d.ts +98 -0
  145. package/dist/mjs/lib/requestUtils.js +69 -0
  146. package/dist/mjs/lib/requestUtils.js.map +1 -0
  147. package/dist/mjs/lib/webCryptoAPI.d.ts +10 -0
  148. package/dist/mjs/lib/webCryptoAPI.js +79 -0
  149. package/dist/mjs/lib/webCryptoAPI.js.map +1 -0
  150. package/dist/mjs/lib/websocket/WsStore.d.ts +63 -0
  151. package/dist/mjs/lib/websocket/WsStore.js +249 -0
  152. package/dist/mjs/lib/websocket/WsStore.js.map +1 -0
  153. package/dist/mjs/lib/websocket/WsStore.types.d.ts +49 -0
  154. package/dist/mjs/lib/websocket/WsStore.types.js +11 -0
  155. package/dist/mjs/lib/websocket/WsStore.types.js.map +1 -0
  156. package/dist/mjs/lib/websocket/logger.d.ts +6 -0
  157. package/dist/mjs/lib/websocket/logger.js +13 -0
  158. package/dist/mjs/lib/websocket/logger.js.map +1 -0
  159. package/dist/mjs/lib/websocket/typeGuards.d.ts +27 -0
  160. package/dist/mjs/lib/websocket/typeGuards.js +78 -0
  161. package/dist/mjs/lib/websocket/typeGuards.js.map +1 -0
  162. package/dist/mjs/lib/websocket/websocket-util.d.ts +120 -0
  163. package/dist/mjs/lib/websocket/websocket-util.js +164 -0
  164. package/dist/mjs/lib/websocket/websocket-util.js.map +1 -0
  165. package/dist/mjs/package.json +3 -0
  166. package/dist/mjs/types/request/advanced-trade-client.d.ts +194 -0
  167. package/dist/mjs/types/request/advanced-trade-client.js +17 -0
  168. package/dist/mjs/types/request/advanced-trade-client.js.map +1 -0
  169. package/dist/mjs/types/request/coinbase-app-client.d.ts +80 -0
  170. package/dist/mjs/types/request/coinbase-app-client.js +27 -0
  171. package/dist/mjs/types/request/coinbase-app-client.js.map +1 -0
  172. package/dist/mjs/types/request/coinbase-exchange.d.ts +332 -0
  173. package/dist/mjs/types/request/coinbase-exchange.js +2 -0
  174. package/dist/mjs/types/request/coinbase-exchange.js.map +1 -0
  175. package/dist/mjs/types/request/coinbase-international.d.ts +160 -0
  176. package/dist/mjs/types/request/coinbase-international.js +12 -0
  177. package/dist/mjs/types/request/coinbase-international.js.map +1 -0
  178. package/dist/mjs/types/request/coinbase-prime.d.ts +298 -0
  179. package/dist/mjs/types/request/coinbase-prime.js +7 -0
  180. package/dist/mjs/types/request/coinbase-prime.js.map +1 -0
  181. package/dist/mjs/types/response/advanced-trade-client.d.ts +759 -0
  182. package/dist/mjs/types/response/advanced-trade-client.js +7 -0
  183. package/dist/mjs/types/response/advanced-trade-client.js.map +1 -0
  184. package/dist/mjs/types/response/coinbase-app-client.d.ts +168 -0
  185. package/dist/mjs/types/response/coinbase-app-client.js +17 -0
  186. package/dist/mjs/types/response/coinbase-app-client.js.map +1 -0
  187. package/dist/mjs/types/response/coinbase-exchange.d.ts +80 -0
  188. package/dist/mjs/types/response/coinbase-exchange.js +82 -0
  189. package/dist/mjs/types/response/coinbase-exchange.js.map +1 -0
  190. package/dist/mjs/types/response/coinbase-international.d.ts +40 -0
  191. package/dist/mjs/types/response/coinbase-international.js +42 -0
  192. package/dist/mjs/types/response/coinbase-international.js.map +1 -0
  193. package/dist/mjs/types/response/coinbase-prime.d.ts +70 -0
  194. package/dist/mjs/types/response/coinbase-prime.js +72 -0
  195. package/dist/mjs/types/response/coinbase-prime.js.map +1 -0
  196. package/dist/mjs/types/response/ws.d.ts +7 -0
  197. package/dist/mjs/types/response/ws.js +2 -0
  198. package/dist/mjs/types/response/ws.js.map +1 -0
  199. package/dist/mjs/types/shared.types.d.ts +60 -0
  200. package/dist/mjs/types/shared.types.js +2 -0
  201. package/dist/mjs/types/shared.types.js.map +1 -0
  202. package/dist/mjs/types/websockets/client.d.ts +73 -0
  203. package/dist/mjs/types/websockets/client.js +2 -0
  204. package/dist/mjs/types/websockets/client.js.map +1 -0
  205. package/dist/mjs/types/websockets/events.d.ts +40 -0
  206. package/dist/mjs/types/websockets/events.js +2 -0
  207. package/dist/mjs/types/websockets/events.js.map +1 -0
  208. package/dist/mjs/types/websockets/requests.d.ts +76 -0
  209. package/dist/mjs/types/websockets/requests.js +2 -0
  210. package/dist/mjs/types/websockets/requests.js.map +1 -0
  211. package/dist/mjs/types/websockets/wsAPI.d.ts +9 -0
  212. package/dist/mjs/types/websockets/wsAPI.js +2 -0
  213. package/dist/mjs/types/websockets/wsAPI.js.map +1 -0
  214. package/package.json +42 -30
  215. package/index.js +0 -1
  216. package/lib/index.d.ts +0 -1
  217. package/lib/index.js +0 -16
  218. package/lib/index.js.map +0 -1
@@ -0,0 +1,363 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { BaseRestClient } from './lib/BaseRestClient.js';
3
+ import { RestClientOptions, RestClientType } from './lib/requestUtils.js';
4
+ import { CreatePrimeAddressBookEntryRequest, CreatePrimeConversionRequest, CreatePrimePortfolioAllocationsRequest, CreatePrimePortfolioNetAllocationsRequest, CreatePrimeTransferRequest, CreatePrimeWalletRequest, CreatePrimeWithdrawalRequest, GetPrimeActivitiesRequest, GetPrimeAddressBookRequest, GetPrimeInvoicesRequest, GetPrimeOpenOrdersRequest, GetPrimeOrderFillsRequest, GetPrimeOrderPreviewRequest, GetPrimePortfolioAllocationsRequest, GetPrimePortfolioOrdersRequest, GetPrimePortfolioProductsRequest, GetPrimePortfolioTransactionsRequest, GetPrimePortfolioUsersRequest, GetPrimePortfolioWalletsRequest, GetPrimeUsersRequest, GetPrimeWalletDepositInstructionsRequest, GetPrimeWalletTransactionsRequest, GetPrimeWeb3WalletBalancesRequest, SubmitPrimeOrderRequest } from './types/request/coinbase-prime.js';
5
+ /**
6
+ * REST client for Coinbase Prime API:
7
+ * https://docs.cdp.coinbase.com/prime/docs/welcome
8
+ */
9
+ export declare class CBPrimeClient extends BaseRestClient {
10
+ constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig);
11
+ getClientType(): RestClientType;
12
+ /**
13
+ *
14
+ * Allocation Endpoints
15
+ *
16
+ */
17
+ /**
18
+ * Create Portfolio Allocations
19
+ *
20
+ * Create allocation for a given portfolio.
21
+ */
22
+ createPortfolioAllocations(params: CreatePrimePortfolioAllocationsRequest): Promise<any>;
23
+ /**
24
+ * Create Portfolio Net Allocations
25
+ *
26
+ * Create net allocation for a given portfolio.
27
+ */
28
+ createPortfolioNetAllocations(params: CreatePrimePortfolioNetAllocationsRequest): Promise<any>;
29
+ /**
30
+ * List Portfolio Allocations
31
+ *
32
+ * Retrieve historical allocations for a given portfolio.
33
+ */
34
+ getPortfolioAllocations(params: GetPrimePortfolioAllocationsRequest): Promise<any>;
35
+ /**
36
+ * Get Allocation By ID
37
+ *
38
+ * Retrieve an allocation by allocation ID.
39
+ */
40
+ getAllocationById(params: {
41
+ portfolio_id: string;
42
+ allocation_id: string;
43
+ }): Promise<any>;
44
+ /**
45
+ * Get Net Allocations By Netting ID
46
+ *
47
+ * Retrieve an allocation by netting ID.
48
+ */
49
+ getNetAllocationsByNettingId(params: {
50
+ portfolio_id: string;
51
+ netting_id: string;
52
+ }): Promise<any>;
53
+ /**
54
+ *
55
+ * Invoice Endpoints
56
+ *
57
+ */
58
+ /**
59
+ * List Invoices
60
+ *
61
+ * Retrieve a list of invoices belonging to an entity.
62
+ */
63
+ getInvoices(params: GetPrimeInvoicesRequest): Promise<any>;
64
+ /**
65
+ *
66
+ * Assets Endpoints
67
+ *
68
+ */
69
+ /**
70
+ * List Assets
71
+ *
72
+ * List all assets available for a given entity.
73
+ */
74
+ getAssets(params: {
75
+ entity_id: string;
76
+ }): Promise<any>;
77
+ /**
78
+ *
79
+ * Payment Methods Endpoints
80
+ *
81
+ */
82
+ /**
83
+ * List Entity Payment Methods
84
+ *
85
+ * Retrieve all payment methods for a given entity.
86
+ */
87
+ getEntityPaymentMethods(params: {
88
+ entity_id: string;
89
+ }): Promise<any>;
90
+ /**
91
+ * Get Entity Payment Method
92
+ *
93
+ * Get payment method details by id for a given entity.
94
+ */
95
+ getEntityPaymentMethod(params: {
96
+ entity_id: string;
97
+ payment_method_id: string;
98
+ }): Promise<any>;
99
+ /**
100
+ *
101
+ * Users Endpoints
102
+ *
103
+ */
104
+ /**
105
+ * List Users
106
+ *
107
+ * List all users associated with a given entity.
108
+ */
109
+ getUsers(params: GetPrimeUsersRequest): Promise<any>;
110
+ /**
111
+ * List Portfolio Users
112
+ *
113
+ * List all users associated with a given portfolio.
114
+ */
115
+ getPortfolioUsers(params: GetPrimePortfolioUsersRequest): Promise<any>;
116
+ /**
117
+ *
118
+ * Portfolios Endpoints
119
+ *
120
+ */
121
+ /**
122
+ * List Portfolios
123
+ *
124
+ * List all portfolios for which the current API key has read access.
125
+ */
126
+ getPortfolios(): Promise<any>;
127
+ /**
128
+ * Get Portfolio by Portfolio ID
129
+ *
130
+ * Retrieve a given portfolio by its portfolio ID.
131
+ */
132
+ getPortfolioById(params: {
133
+ portfolio_id: string;
134
+ }): Promise<any>;
135
+ /**
136
+ * Get Portfolio Credit Information
137
+ *
138
+ * Retrieve a portfolio's post-trade credit information.
139
+ */
140
+ getPortfolioCreditInformation(params: {
141
+ portfolio_id: string;
142
+ }): Promise<any>;
143
+ /**
144
+ *
145
+ * Activities Endpoints
146
+ *
147
+ */
148
+ /**
149
+ * List Activities
150
+ *
151
+ * List all activities associated with a given entity.
152
+ */
153
+ getActivities(params: GetPrimeActivitiesRequest): Promise<any>;
154
+ /**
155
+ * Get Activity by Activity ID
156
+ *
157
+ * Retrieve an activity by its activity ID.
158
+ */
159
+ getActivityById(params: {
160
+ portfolio_id: string;
161
+ activity_id: string;
162
+ }): Promise<any>;
163
+ /**
164
+ *
165
+ * Address Book Endpoints
166
+ *
167
+ */
168
+ /**
169
+ * Get Address Book
170
+ *
171
+ * Gets a list of address book addresses.
172
+ */
173
+ getAddressBook(params: GetPrimeAddressBookRequest): Promise<any>;
174
+ /**
175
+ * Create Address Book Entry
176
+ *
177
+ * Creates an entry for a portfolio's trusted addresses.
178
+ */
179
+ createAddressBookEntry(params: CreatePrimeAddressBookEntryRequest): Promise<any>;
180
+ /**
181
+ *
182
+ * Balances Endpoints
183
+ *
184
+ */
185
+ /**
186
+ * List Portfolio Balances
187
+ *
188
+ * List all balances for a specific portfolio.
189
+ */
190
+ getPortfolioBalances(params: {
191
+ portfolio_id: string;
192
+ symbols?: string[];
193
+ balance_type?: 'TRADING_BALANCES' | 'VAULT_BALANCES' | 'TOTAL_BALANCES';
194
+ }): Promise<any>;
195
+ /**
196
+ * Get Wallet Balance
197
+ *
198
+ * Query balance for a specific wallet.
199
+ */
200
+ getWalletBalance(params: {
201
+ portfolio_id: string;
202
+ wallet_id: string;
203
+ }): Promise<any>;
204
+ /**
205
+ * List Web3 Wallet Balances
206
+ *
207
+ * Query balances for a specific web3 wallet.
208
+ */
209
+ getWeb3WalletBalances(params: GetPrimeWeb3WalletBalancesRequest): Promise<any>;
210
+ /**
211
+ *
212
+ * Commission Endpoints
213
+ *
214
+ */
215
+ /**
216
+ * Get Portfolio Commission
217
+ *
218
+ * Retrieve commission associated with a given portfolio.
219
+ */
220
+ getPortfolioCommission(params: {
221
+ portfolio_id: string;
222
+ }): Promise<any>;
223
+ /**
224
+ *
225
+ * Orders Endpoints
226
+ *
227
+ */
228
+ /**
229
+ * List Open Orders
230
+ *
231
+ * List all open orders for a given portfolio.
232
+ */
233
+ getOpenOrders(params: GetPrimeOpenOrdersRequest): Promise<any>;
234
+ /**
235
+ * Create Order
236
+ *
237
+ * Create an order for a given portfolio.
238
+ */
239
+ submitOrder(params: SubmitPrimeOrderRequest): Promise<any>;
240
+ /**
241
+ * Get Order Preview
242
+ *
243
+ * Retrieve an order preview for a given portfolio.
244
+ */
245
+ getOrderPreview(params: GetPrimeOrderPreviewRequest): Promise<any>;
246
+ /**
247
+ * List Portfolio Orders
248
+ *
249
+ * List historical orders for a given portfolio.
250
+ */
251
+ getPortfolioOrders(params: GetPrimePortfolioOrdersRequest): Promise<any>;
252
+ /**
253
+ * Get Order by Order ID
254
+ *
255
+ * Retrieve an order by order ID.
256
+ */
257
+ getOrderById(params: {
258
+ portfolio_id: string;
259
+ order_id: string;
260
+ }): Promise<any>;
261
+ /**
262
+ * Cancel Order
263
+ *
264
+ * Cancel an order. (Filled orders cannot be canceled.)
265
+ */
266
+ cancelOrder(params: {
267
+ portfolio_id: string;
268
+ order_id: string;
269
+ }): Promise<any>;
270
+ /**
271
+ * List Order Fills
272
+ *
273
+ * Retrieve fills on a given order.
274
+ */
275
+ getOrderFills(params: GetPrimeOrderFillsRequest): Promise<any>;
276
+ /**
277
+ *
278
+ * Products Endpoints
279
+ *
280
+ */
281
+ /**
282
+ * List Portfolio Products
283
+ *
284
+ * List tradable products for a given portfolio.
285
+ */
286
+ getPortfolioProducts(params: GetPrimePortfolioProductsRequest): Promise<any>;
287
+ /**
288
+ *
289
+ * Transactions Endpoints
290
+ *
291
+ */
292
+ /**
293
+ * List Portfolio Transactions
294
+ *
295
+ * List transactions for a given portfolio (only transactions that affect balances are accessible).
296
+ */
297
+ getPortfolioTransactions(params: GetPrimePortfolioTransactionsRequest): Promise<any>;
298
+ /**
299
+ * Get Transaction by Transaction ID
300
+ *
301
+ * Retrieve a specific transaction by its transaction ID (only transactions that affect balances are accessible).
302
+ */
303
+ getTransactionById(params: {
304
+ portfolio_id: string;
305
+ transaction_id: string;
306
+ }): Promise<any>;
307
+ /**
308
+ * Create Conversion
309
+ *
310
+ * Perform a conversion between 2 assets.
311
+ */
312
+ createConversion(params: CreatePrimeConversionRequest): Promise<any>;
313
+ /**
314
+ * List Wallet Transactions
315
+ *
316
+ * Retrieve transactions for a given wallet (only transactions that affect balances are accessible).
317
+ */
318
+ getWalletTransactions(params: GetPrimeWalletTransactionsRequest): Promise<any>;
319
+ /**
320
+ * Create Transfer
321
+ *
322
+ * Create a wallet transfer.
323
+ */
324
+ createTransfer(params: CreatePrimeTransferRequest): Promise<any>;
325
+ /**
326
+ * Create Withdrawal
327
+ *
328
+ * Create a withdrawal.
329
+ */
330
+ createWithdrawal(params: CreatePrimeWithdrawalRequest): Promise<any>;
331
+ /**
332
+ *
333
+ * Wallets Endpoints
334
+ *
335
+ */
336
+ /**
337
+ * List Portfolio Wallets
338
+ *
339
+ * List all wallets associated with a given portfolio.
340
+ */
341
+ getPortfolioWallets(params: GetPrimePortfolioWalletsRequest): Promise<any>;
342
+ /**
343
+ * Create Wallet
344
+ *
345
+ * Create a wallet.
346
+ */
347
+ createWallet(params: CreatePrimeWalletRequest): Promise<any>;
348
+ /**
349
+ * Get Wallet by Wallet ID
350
+ *
351
+ * Retrieve a specific wallet by Wallet ID.
352
+ */
353
+ getWalletById(params: {
354
+ portfolio_id: string;
355
+ wallet_id: string;
356
+ }): Promise<any>;
357
+ /**
358
+ * Get Wallet Deposit Instructions
359
+ *
360
+ * Retrieve a specific wallet's deposit instructions.
361
+ */
362
+ getWalletDepositInstructions(params: GetPrimeWalletDepositInstructionsRequest): Promise<any>;
363
+ }