@coinbase-sample/advanced-trade-sdk-ts 0.2.0

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 (608) hide show
  1. package/README.md +134 -0
  2. package/dist/constants.d.ts +7 -0
  3. package/dist/constants.js +10 -0
  4. package/dist/index.d.ts +28 -0
  5. package/dist/index.js +44 -0
  6. package/dist/model/Account.d.ts +80 -0
  7. package/dist/model/Account.js +21 -0
  8. package/dist/model/Address.d.ts +27 -0
  9. package/dist/model/Address.js +21 -0
  10. package/dist/model/AllocatePortfolioRequest.d.ts +37 -0
  11. package/dist/model/AllocatePortfolioRequest.js +21 -0
  12. package/dist/model/Allocation.d.ts +25 -0
  13. package/dist/model/Allocation.js +21 -0
  14. package/dist/model/AllocationLeg.d.ts +25 -0
  15. package/dist/model/AllocationLeg.js +21 -0
  16. package/dist/model/Amount.d.ts +29 -0
  17. package/dist/model/Amount.js +21 -0
  18. package/dist/model/ApplePay.d.ts +40 -0
  19. package/dist/model/ApplePay.js +21 -0
  20. package/dist/model/ApplePayBraintreeData.d.ts +23 -0
  21. package/dist/model/ApplePayBraintreeData.js +21 -0
  22. package/dist/model/Asset.d.ts +30 -0
  23. package/dist/model/Asset.js +21 -0
  24. package/dist/model/Balance.d.ts +32 -0
  25. package/dist/model/Balance.js +21 -0
  26. package/dist/model/BalancePair.d.ts +24 -0
  27. package/dist/model/BalancePair.js +21 -0
  28. package/dist/model/BankAccount.d.ts +25 -0
  29. package/dist/model/BankAccount.js +21 -0
  30. package/dist/model/BestBidAskGetProductBookConfig.d.ts +25 -0
  31. package/dist/model/BestBidAskGetProductBookConfig.js +21 -0
  32. package/dist/model/BlockchainAddress.d.ts +23 -0
  33. package/dist/model/BlockchainAddress.js +21 -0
  34. package/dist/model/BlockchainTransaction.d.ts +23 -0
  35. package/dist/model/BlockchainTransaction.js +21 -0
  36. package/dist/model/CTN.d.ts +22 -0
  37. package/dist/model/CTN.js +21 -0
  38. package/dist/model/CancelFCMSweepResponse.d.ts +22 -0
  39. package/dist/model/CancelFCMSweepResponse.js +21 -0
  40. package/dist/model/CancelOrderResponse.d.ts +34 -0
  41. package/dist/model/CancelOrderResponse.js +21 -0
  42. package/dist/model/CancelOrdersRequest.d.ts +25 -0
  43. package/dist/model/CancelOrdersRequest.js +21 -0
  44. package/dist/model/CancelOrdersResponse.d.ts +26 -0
  45. package/dist/model/CancelOrdersResponse.js +21 -0
  46. package/dist/model/Candle.d.ts +45 -0
  47. package/dist/model/Candle.js +21 -0
  48. package/dist/model/Candles.d.ts +23 -0
  49. package/dist/model/Candles.js +21 -0
  50. package/dist/model/Card.d.ts +46 -0
  51. package/dist/model/Card.js +21 -0
  52. package/dist/model/CardDob.d.ts +24 -0
  53. package/dist/model/CardDob.js +21 -0
  54. package/dist/model/Cbit.d.ts +22 -0
  55. package/dist/model/Cbit.js +21 -0
  56. package/dist/model/CheckoutPaymentLink.d.ts +22 -0
  57. package/dist/model/CheckoutPaymentLink.js +21 -0
  58. package/dist/model/ClosePositionRequest.d.ts +33 -0
  59. package/dist/model/ClosePositionRequest.js +21 -0
  60. package/dist/model/ClosePositionResponse.d.ts +34 -0
  61. package/dist/model/ClosePositionResponse.js +21 -0
  62. package/dist/model/CoinbaseAccount.d.ts +22 -0
  63. package/dist/model/CoinbaseAccount.js +21 -0
  64. package/dist/model/CommitConvertTradeRequest.d.ts +29 -0
  65. package/dist/model/CommitConvertTradeRequest.js +21 -0
  66. package/dist/model/CommitConvertTradeResponse.d.ts +23 -0
  67. package/dist/model/CommitConvertTradeResponse.js +21 -0
  68. package/dist/model/CreateConvertQuoteRequest.d.ts +38 -0
  69. package/dist/model/CreateConvertQuoteRequest.js +21 -0
  70. package/dist/model/CreateConvertQuoteResponse.d.ts +23 -0
  71. package/dist/model/CreateConvertQuoteResponse.js +21 -0
  72. package/dist/model/CreatePortfolioRequest.d.ts +25 -0
  73. package/dist/model/CreatePortfolioRequest.js +21 -0
  74. package/dist/model/CreatePortfolioResponse.d.ts +23 -0
  75. package/dist/model/CreatePortfolioResponse.js +21 -0
  76. package/dist/model/CustodialPool.d.ts +24 -0
  77. package/dist/model/CustodialPool.js +21 -0
  78. package/dist/model/DAppWalletAccount.d.ts +24 -0
  79. package/dist/model/DAppWalletAccount.js +21 -0
  80. package/dist/model/DAppWalletBlockchainAddress.d.ts +24 -0
  81. package/dist/model/DAppWalletBlockchainAddress.js +21 -0
  82. package/dist/model/DefaultAccount.d.ts +23 -0
  83. package/dist/model/DefaultAccount.js +21 -0
  84. package/dist/model/DenebIMPS.d.ts +30 -0
  85. package/dist/model/DenebIMPS.js +21 -0
  86. package/dist/model/DenebUPI.d.ts +29 -0
  87. package/dist/model/DenebUPI.js +21 -0
  88. package/dist/model/DerivativeSettlement.d.ts +25 -0
  89. package/dist/model/DerivativeSettlement.js +21 -0
  90. package/dist/model/DerivativeSettlementAccountSettlement.d.ts +33 -0
  91. package/dist/model/DerivativeSettlementAccountSettlement.js +21 -0
  92. package/dist/model/DerivativeSettlementEquityReset.d.ts +25 -0
  93. package/dist/model/DerivativeSettlementEquityReset.js +21 -0
  94. package/dist/model/DigitalWalletDetails.d.ts +23 -0
  95. package/dist/model/DigitalWalletDetails.js +21 -0
  96. package/dist/model/DirectDeposit.d.ts +22 -0
  97. package/dist/model/DirectDeposit.js +21 -0
  98. package/dist/model/Disclosure.d.ts +25 -0
  99. package/dist/model/Disclosure.js +21 -0
  100. package/dist/model/Edit.d.ts +30 -0
  101. package/dist/model/Edit.js +21 -0
  102. package/dist/model/EditOrderError.d.ts +25 -0
  103. package/dist/model/EditOrderError.js +21 -0
  104. package/dist/model/EditOrderErrorResponse.d.ts +30 -0
  105. package/dist/model/EditOrderErrorResponse.js +21 -0
  106. package/dist/model/EditOrderRequest.d.ts +33 -0
  107. package/dist/model/EditOrderRequest.js +21 -0
  108. package/dist/model/EditOrderResponse.d.ts +27 -0
  109. package/dist/model/EditOrderResponse.js +21 -0
  110. package/dist/model/EditOrderSuccessResponse.d.ts +25 -0
  111. package/dist/model/EditOrderSuccessResponse.js +21 -0
  112. package/dist/model/EditPortfolioRequest.d.ts +25 -0
  113. package/dist/model/EditPortfolioRequest.js +21 -0
  114. package/dist/model/EditPortfolioResponse.d.ts +23 -0
  115. package/dist/model/EditPortfolioResponse.js +21 -0
  116. package/dist/model/EmailAddress.d.ts +22 -0
  117. package/dist/model/EmailAddress.js +21 -0
  118. package/dist/model/Error.d.ts +30 -0
  119. package/dist/model/Error.js +21 -0
  120. package/dist/model/ExpiryDate.d.ts +23 -0
  121. package/dist/model/ExpiryDate.js +21 -0
  122. package/dist/model/ExtendedTimestamp.d.ts +33 -0
  123. package/dist/model/ExtendedTimestamp.js +21 -0
  124. package/dist/model/ExternalPaymentMethod.d.ts +22 -0
  125. package/dist/model/ExternalPaymentMethod.js +21 -0
  126. package/dist/model/FCMBalanceSummary.d.ts +73 -0
  127. package/dist/model/FCMBalanceSummary.js +21 -0
  128. package/dist/model/FCMPosition.d.ts +54 -0
  129. package/dist/model/FCMPosition.js +21 -0
  130. package/dist/model/FCMSweep.d.ts +43 -0
  131. package/dist/model/FCMSweep.js +21 -0
  132. package/dist/model/FcmMarginWindowMeasure.d.ts +51 -0
  133. package/dist/model/FcmMarginWindowMeasure.js +21 -0
  134. package/dist/model/FcmScheduledMaintenance.d.ts +26 -0
  135. package/dist/model/FcmScheduledMaintenance.js +21 -0
  136. package/dist/model/FcmTradingSessionDetails.d.ts +31 -0
  137. package/dist/model/FcmTradingSessionDetails.js +21 -0
  138. package/dist/model/Fedwire.d.ts +27 -0
  139. package/dist/model/Fedwire.js +21 -0
  140. package/dist/model/FedwireAccount.d.ts +25 -0
  141. package/dist/model/FedwireAccount.js +21 -0
  142. package/dist/model/FedwireAddress.d.ts +26 -0
  143. package/dist/model/FedwireAddress.js +21 -0
  144. package/dist/model/FedwireInstitution.d.ts +31 -0
  145. package/dist/model/FedwireInstitution.js +21 -0
  146. package/dist/model/Fee.d.ts +31 -0
  147. package/dist/model/Fee.js +21 -0
  148. package/dist/model/FeeTier.d.ts +49 -0
  149. package/dist/model/FeeTier.js +21 -0
  150. package/dist/model/Fill.d.ts +83 -0
  151. package/dist/model/Fill.js +21 -0
  152. package/dist/model/FirstDataToken.d.ts +23 -0
  153. package/dist/model/FirstDataToken.js +21 -0
  154. package/dist/model/FundMovement.d.ts +27 -0
  155. package/dist/model/FundMovement.js +21 -0
  156. package/dist/model/FutureProductDetails.d.ts +43 -0
  157. package/dist/model/FutureProductDetails.js +21 -0
  158. package/dist/model/FuturesPosition.d.ts +35 -0
  159. package/dist/model/FuturesPosition.js +21 -0
  160. package/dist/model/GetAccountResponse.d.ts +23 -0
  161. package/dist/model/GetAccountResponse.js +21 -0
  162. package/dist/model/GetAccountsResponse.d.ts +35 -0
  163. package/dist/model/GetAccountsResponse.js +21 -0
  164. package/dist/model/GetApiKeyPermissionsResponse.d.ts +42 -0
  165. package/dist/model/GetApiKeyPermissionsResponse.js +21 -0
  166. package/dist/model/GetBalanceSummaryResponse.d.ts +23 -0
  167. package/dist/model/GetBalanceSummaryResponse.js +21 -0
  168. package/dist/model/GetBestBidAskResponse.d.ts +23 -0
  169. package/dist/model/GetBestBidAskResponse.js +21 -0
  170. package/dist/model/GetCandlesResponse.d.ts +23 -0
  171. package/dist/model/GetCandlesResponse.js +21 -0
  172. package/dist/model/GetConvertTradeResponse.d.ts +23 -0
  173. package/dist/model/GetConvertTradeResponse.js +21 -0
  174. package/dist/model/GetCurrentMarginWindowResponse.d.ts +31 -0
  175. package/dist/model/GetCurrentMarginWindowResponse.js +21 -0
  176. package/dist/model/GetFCMBalanceSummaryResponse.d.ts +23 -0
  177. package/dist/model/GetFCMBalanceSummaryResponse.js +21 -0
  178. package/dist/model/GetFCMPositionResponse.d.ts +23 -0
  179. package/dist/model/GetFCMPositionResponse.js +21 -0
  180. package/dist/model/GetFCMPositionsResponse.d.ts +23 -0
  181. package/dist/model/GetFCMPositionsResponse.js +21 -0
  182. package/dist/model/GetFCMSweepsResponse.d.ts +23 -0
  183. package/dist/model/GetFCMSweepsResponse.js +21 -0
  184. package/dist/model/GetFillsResponse.d.ts +30 -0
  185. package/dist/model/GetFillsResponse.js +21 -0
  186. package/dist/model/GetHistoricalOrderResponse.d.ts +26 -0
  187. package/dist/model/GetHistoricalOrderResponse.js +21 -0
  188. package/dist/model/GetHistoricalOrdersResponse.d.ts +38 -0
  189. package/dist/model/GetHistoricalOrdersResponse.js +21 -0
  190. package/dist/model/GetIntradayMarginSettingResponse.d.ts +23 -0
  191. package/dist/model/GetIntradayMarginSettingResponse.js +21 -0
  192. package/dist/model/GetMarketTradesResponse.d.ts +31 -0
  193. package/dist/model/GetMarketTradesResponse.js +21 -0
  194. package/dist/model/GetPaymentMethodResponse.d.ts +23 -0
  195. package/dist/model/GetPaymentMethodResponse.js +21 -0
  196. package/dist/model/GetPaymentMethodsResponse.d.ts +23 -0
  197. package/dist/model/GetPaymentMethodsResponse.js +21 -0
  198. package/dist/model/GetPortfolioBreakdownResponse.d.ts +23 -0
  199. package/dist/model/GetPortfolioBreakdownResponse.js +21 -0
  200. package/dist/model/GetPortfoliosResponse.d.ts +25 -0
  201. package/dist/model/GetPortfoliosResponse.js +21 -0
  202. package/dist/model/GetPositionResponse.d.ts +23 -0
  203. package/dist/model/GetPositionResponse.js +21 -0
  204. package/dist/model/GetPositionsResponse.d.ts +25 -0
  205. package/dist/model/GetPositionsResponse.js +21 -0
  206. package/dist/model/GetProductBookResponse.d.ts +27 -0
  207. package/dist/model/GetProductBookResponse.js +21 -0
  208. package/dist/model/GetProductResponse.d.ts +23 -0
  209. package/dist/model/GetProductResponse.js +21 -0
  210. package/dist/model/GetProductsResponse.d.ts +23 -0
  211. package/dist/model/GetProductsResponse.js +21 -0
  212. package/dist/model/GetTransactionSummaryResponse.d.ts +61 -0
  213. package/dist/model/GetTransactionSummaryResponse.js +21 -0
  214. package/dist/model/GoodsAndServicesTax.d.ts +24 -0
  215. package/dist/model/GoodsAndServicesTax.js +21 -0
  216. package/dist/model/GooglePay.d.ts +40 -0
  217. package/dist/model/GooglePay.js +21 -0
  218. package/dist/model/GooglePayBraintreeData.d.ts +23 -0
  219. package/dist/model/GooglePayBraintreeData.js +21 -0
  220. package/dist/model/HistoricalMarketTrade.d.ts +50 -0
  221. package/dist/model/HistoricalMarketTrade.js +21 -0
  222. package/dist/model/Ideal.d.ts +27 -0
  223. package/dist/model/Ideal.js +21 -0
  224. package/dist/model/IdentityContractCall.d.ts +23 -0
  225. package/dist/model/IdentityContractCall.js +21 -0
  226. package/dist/model/Interac.d.ts +23 -0
  227. package/dist/model/Interac.js +21 -0
  228. package/dist/model/InteracAccount.d.ts +34 -0
  229. package/dist/model/InteracAccount.js +21 -0
  230. package/dist/model/IntraBank.d.ts +26 -0
  231. package/dist/model/IntraBank.js +21 -0
  232. package/dist/model/L2Level.d.ts +23 -0
  233. package/dist/model/L2Level.js +21 -0
  234. package/dist/model/LedgerAccount.d.ts +25 -0
  235. package/dist/model/LedgerAccount.js +21 -0
  236. package/dist/model/LedgerNamedAccount.d.ts +24 -0
  237. package/dist/model/LedgerNamedAccount.js +21 -0
  238. package/dist/model/LimitLimitFok.d.ts +29 -0
  239. package/dist/model/LimitLimitFok.js +21 -0
  240. package/dist/model/LimitLimitGtc.d.ts +33 -0
  241. package/dist/model/LimitLimitGtc.js +21 -0
  242. package/dist/model/LimitLimitGtd.d.ts +37 -0
  243. package/dist/model/LimitLimitGtd.js +21 -0
  244. package/dist/model/Link.d.ts +23 -0
  245. package/dist/model/Link.js +21 -0
  246. package/dist/model/LiquidationMarketGtc.d.ts +25 -0
  247. package/dist/model/LiquidationMarketGtc.js +21 -0
  248. package/dist/model/LiquidationMarketGtd.d.ts +29 -0
  249. package/dist/model/LiquidationMarketGtd.js +21 -0
  250. package/dist/model/LiquidityPool.d.ts +25 -0
  251. package/dist/model/LiquidityPool.js +21 -0
  252. package/dist/model/MarginWindow.d.ts +30 -0
  253. package/dist/model/MarginWindow.js +21 -0
  254. package/dist/model/MarketMarketIoc.d.ts +29 -0
  255. package/dist/model/MarketMarketIoc.js +21 -0
  256. package/dist/model/Merchant.d.ts +22 -0
  257. package/dist/model/Merchant.js +21 -0
  258. package/dist/model/Money.d.ts +26 -0
  259. package/dist/model/Money.js +21 -0
  260. package/dist/model/MovePortfolioFundsRequest.d.ts +34 -0
  261. package/dist/model/MovePortfolioFundsRequest.js +21 -0
  262. package/dist/model/MovePortfolioFundsResponse.d.ts +29 -0
  263. package/dist/model/MovePortfolioFundsResponse.js +21 -0
  264. package/dist/model/MultiAssetCollateralRequest.d.ts +29 -0
  265. package/dist/model/MultiAssetCollateralRequest.js +21 -0
  266. package/dist/model/MultiAssetCollateralResponse.d.ts +22 -0
  267. package/dist/model/MultiAssetCollateralResponse.js +21 -0
  268. package/dist/model/NewOrderErrorResponse.d.ts +43 -0
  269. package/dist/model/NewOrderErrorResponse.js +21 -0
  270. package/dist/model/NewOrderRequest.d.ts +56 -0
  271. package/dist/model/NewOrderRequest.js +21 -0
  272. package/dist/model/NewOrderResponse.d.ts +34 -0
  273. package/dist/model/NewOrderResponse.js +21 -0
  274. package/dist/model/NewOrderSuccessResponse.d.ts +38 -0
  275. package/dist/model/NewOrderSuccessResponse.js +21 -0
  276. package/dist/model/Order.d.ts +172 -0
  277. package/dist/model/Order.js +21 -0
  278. package/dist/model/OrderConfiguration.d.ts +66 -0
  279. package/dist/model/OrderConfiguration.js +21 -0
  280. package/dist/model/OrderPreviewRequest.d.ts +48 -0
  281. package/dist/model/OrderPreviewRequest.js +21 -0
  282. package/dist/model/OrderPreviewResponse.d.ts +59 -0
  283. package/dist/model/OrderPreviewResponse.js +21 -0
  284. package/dist/model/Owner.d.ts +26 -0
  285. package/dist/model/Owner.js +21 -0
  286. package/dist/model/PaymentMethod.d.ts +65 -0
  287. package/dist/model/PaymentMethod.js +21 -0
  288. package/dist/model/Paypal.d.ts +25 -0
  289. package/dist/model/Paypal.js +21 -0
  290. package/dist/model/PaypalAccount.d.ts +23 -0
  291. package/dist/model/PaypalAccount.js +21 -0
  292. package/dist/model/PaypalMerchant.d.ts +22 -0
  293. package/dist/model/PaypalMerchant.js +21 -0
  294. package/dist/model/PerpPosition.d.ts +44 -0
  295. package/dist/model/PerpPosition.js +21 -0
  296. package/dist/model/PerpetualProductDetails.d.ts +27 -0
  297. package/dist/model/PerpetualProductDetails.js +21 -0
  298. package/dist/model/PhoneNumber.d.ts +22 -0
  299. package/dist/model/PhoneNumber.js +21 -0
  300. package/dist/model/PixEbanx.d.ts +27 -0
  301. package/dist/model/PixEbanx.js +21 -0
  302. package/dist/model/PixEbanxPixDeposit.d.ts +23 -0
  303. package/dist/model/PixEbanxPixDeposit.js +21 -0
  304. package/dist/model/PixEbanxPixWithdrawal.d.ts +26 -0
  305. package/dist/model/PixEbanxPixWithdrawal.js +21 -0
  306. package/dist/model/PnlConfiguration.d.ts +23 -0
  307. package/dist/model/PnlConfiguration.js +21 -0
  308. package/dist/model/Portfolio.d.ts +80 -0
  309. package/dist/model/Portfolio.js +21 -0
  310. package/dist/model/PortfolioBalance.d.ts +25 -0
  311. package/dist/model/PortfolioBalance.js +21 -0
  312. package/dist/model/PortfolioBalances.d.ts +28 -0
  313. package/dist/model/PortfolioBalances.js +21 -0
  314. package/dist/model/PortfolioBreakdown.d.ts +31 -0
  315. package/dist/model/PortfolioBreakdown.js +21 -0
  316. package/dist/model/PortfolioPosition.d.ts +32 -0
  317. package/dist/model/PortfolioPosition.js +21 -0
  318. package/dist/model/PortfoliosSummary.d.ts +26 -0
  319. package/dist/model/PortfoliosSummary.js +21 -0
  320. package/dist/model/Position.d.ts +71 -0
  321. package/dist/model/Position.js +21 -0
  322. package/dist/model/PositionSummary.d.ts +23 -0
  323. package/dist/model/PositionSummary.js +21 -0
  324. package/dist/model/PreviewEditOrderResponse.d.ts +37 -0
  325. package/dist/model/PreviewEditOrderResponse.js +21 -0
  326. package/dist/model/PriceBook.d.ts +29 -0
  327. package/dist/model/PriceBook.js +21 -0
  328. package/dist/model/ProAccount.d.ts +26 -0
  329. package/dist/model/ProAccount.js +21 -0
  330. package/dist/model/ProInternalAccount.d.ts +23 -0
  331. package/dist/model/ProInternalAccount.js +21 -0
  332. package/dist/model/Product.d.ts +167 -0
  333. package/dist/model/Product.js +21 -0
  334. package/dist/model/Products.d.ts +30 -0
  335. package/dist/model/Products.js +21 -0
  336. package/dist/model/RatConvertTrade.d.ts +67 -0
  337. package/dist/model/RatConvertTrade.js +21 -0
  338. package/dist/model/Remitly.d.ts +23 -0
  339. package/dist/model/Remitly.js +21 -0
  340. package/dist/model/RemitlyAccount.d.ts +23 -0
  341. package/dist/model/RemitlyAccount.js +21 -0
  342. package/dist/model/Rtp.d.ts +28 -0
  343. package/dist/model/Rtp.js +21 -0
  344. package/dist/model/RtpAccount.d.ts +23 -0
  345. package/dist/model/RtpAccount.js +21 -0
  346. package/dist/model/RtpInstitution.d.ts +22 -0
  347. package/dist/model/RtpInstitution.js +21 -0
  348. package/dist/model/ScaledAmount.d.ts +24 -0
  349. package/dist/model/ScaledAmount.js +21 -0
  350. package/dist/model/ScheduleFCMSweepRequest.d.ts +25 -0
  351. package/dist/model/ScheduleFCMSweepRequest.js +21 -0
  352. package/dist/model/ScheduleFCMSweepResponse.d.ts +22 -0
  353. package/dist/model/ScheduleFCMSweepResponse.js +21 -0
  354. package/dist/model/Sepa.d.ts +29 -0
  355. package/dist/model/Sepa.js +21 -0
  356. package/dist/model/SepaAccount.d.ts +24 -0
  357. package/dist/model/SepaAccount.js +21 -0
  358. package/dist/model/SepaAccountDetail.d.ts +32 -0
  359. package/dist/model/SepaAccountDetail.js +21 -0
  360. package/dist/model/SepaInstitution.d.ts +23 -0
  361. package/dist/model/SepaInstitution.js +21 -0
  362. package/dist/model/SepaV2.d.ts +46 -0
  363. package/dist/model/SepaV2.js +21 -0
  364. package/dist/model/SetIntradayMarginSettingRequest.d.ts +26 -0
  365. package/dist/model/SetIntradayMarginSettingRequest.js +21 -0
  366. package/dist/model/SgFast.d.ts +28 -0
  367. package/dist/model/SgFast.js +21 -0
  368. package/dist/model/SgFastAccount.d.ts +23 -0
  369. package/dist/model/SgFastAccount.js +21 -0
  370. package/dist/model/SgFastInstitution.d.ts +22 -0
  371. package/dist/model/SgFastInstitution.js +21 -0
  372. package/dist/model/SgPayNow.d.ts +28 -0
  373. package/dist/model/SgPayNow.js +21 -0
  374. package/dist/model/Signet.d.ts +22 -0
  375. package/dist/model/Signet.js +21 -0
  376. package/dist/model/SingleProductGetProductBookConfig.d.ts +29 -0
  377. package/dist/model/SingleProductGetProductBookConfig.js +21 -0
  378. package/dist/model/Sofort.d.ts +27 -0
  379. package/dist/model/Sofort.js +21 -0
  380. package/dist/model/SorLimitIoc.d.ts +29 -0
  381. package/dist/model/SorLimitIoc.js +21 -0
  382. package/dist/model/StopLimitStopLimitGtc.d.ts +38 -0
  383. package/dist/model/StopLimitStopLimitGtc.js +21 -0
  384. package/dist/model/StopLimitStopLimitGtd.d.ts +42 -0
  385. package/dist/model/StopLimitStopLimitGtd.js +21 -0
  386. package/dist/model/SubscriptionInfo.d.ts +30 -0
  387. package/dist/model/SubscriptionInfo.js +21 -0
  388. package/dist/model/Swift.d.ts +26 -0
  389. package/dist/model/Swift.js +21 -0
  390. package/dist/model/SwiftAccount.d.ts +29 -0
  391. package/dist/model/SwiftAccount.js +21 -0
  392. package/dist/model/SwiftInstitution.d.ts +29 -0
  393. package/dist/model/SwiftInstitution.js +21 -0
  394. package/dist/model/TaxInfo.d.ts +24 -0
  395. package/dist/model/TaxInfo.js +21 -0
  396. package/dist/model/TradeIncentiveInfo.d.ts +28 -0
  397. package/dist/model/TradeIncentiveInfo.js +21 -0
  398. package/dist/model/TradeIncentiveMetadata.d.ts +29 -0
  399. package/dist/model/TradeIncentiveMetadata.js +21 -0
  400. package/dist/model/TriggerBracketGtc.d.ts +33 -0
  401. package/dist/model/TriggerBracketGtc.js +21 -0
  402. package/dist/model/TriggerBracketGtd.d.ts +37 -0
  403. package/dist/model/TriggerBracketGtd.js +21 -0
  404. package/dist/model/TriggerBracketPnl.d.ts +23 -0
  405. package/dist/model/TriggerBracketPnl.js +21 -0
  406. package/dist/model/TwapLimitGtd.d.ts +41 -0
  407. package/dist/model/TwapLimitGtd.js +21 -0
  408. package/dist/model/TypesDecimal.d.ts +28 -0
  409. package/dist/model/TypesDecimal.js +21 -0
  410. package/dist/model/Uk.d.ts +29 -0
  411. package/dist/model/Uk.js +21 -0
  412. package/dist/model/UkAccount.d.ts +25 -0
  413. package/dist/model/UkAccount.js +21 -0
  414. package/dist/model/UkInstitution.d.ts +22 -0
  415. package/dist/model/UkInstitution.js +21 -0
  416. package/dist/model/UnitPrice.d.ts +25 -0
  417. package/dist/model/UnitPrice.js +21 -0
  418. package/dist/model/User.d.ts +22 -0
  419. package/dist/model/User.js +21 -0
  420. package/dist/model/UserWarning.d.ts +28 -0
  421. package/dist/model/UserWarning.js +21 -0
  422. package/dist/model/UserWarningContext.d.ts +24 -0
  423. package/dist/model/UserWarningContext.js +21 -0
  424. package/dist/model/VaultToken.d.ts +23 -0
  425. package/dist/model/VaultToken.js +21 -0
  426. package/dist/model/VendorPayment.d.ts +23 -0
  427. package/dist/model/VendorPayment.js +21 -0
  428. package/dist/model/Venue.d.ts +22 -0
  429. package/dist/model/Venue.js +21 -0
  430. package/dist/model/WorldpayParams.d.ts +27 -0
  431. package/dist/model/WorldpayParams.js +21 -0
  432. package/dist/model/ZaakpayMobikwik.d.ts +25 -0
  433. package/dist/model/ZaakpayMobikwik.js +21 -0
  434. package/dist/model/Zengin.d.ts +28 -0
  435. package/dist/model/Zengin.js +21 -0
  436. package/dist/model/ZenginAccount.d.ts +24 -0
  437. package/dist/model/ZenginAccount.js +21 -0
  438. package/dist/model/ZenginInstitution.d.ts +23 -0
  439. package/dist/model/ZenginInstitution.js +21 -0
  440. package/dist/model/ZenginV2.d.ts +28 -0
  441. package/dist/model/ZenginV2.js +21 -0
  442. package/dist/model/ZenginV2Account.d.ts +24 -0
  443. package/dist/model/ZenginV2Account.js +21 -0
  444. package/dist/model/ZenginV2Institution.d.ts +23 -0
  445. package/dist/model/ZenginV2Institution.js +21 -0
  446. package/dist/model/Zepto.d.ts +26 -0
  447. package/dist/model/Zepto.js +21 -0
  448. package/dist/model/ZeptoAccount.d.ts +32 -0
  449. package/dist/model/ZeptoAccount.js +21 -0
  450. package/dist/model/enums/AccountPlatform.d.ts +25 -0
  451. package/dist/model/enums/AccountPlatform.js +29 -0
  452. package/dist/model/enums/AccountType.d.ts +26 -0
  453. package/dist/model/enums/AccountType.js +30 -0
  454. package/dist/model/enums/ApplePayResult.d.ts +24 -0
  455. package/dist/model/enums/ApplePayResult.js +28 -0
  456. package/dist/model/enums/ApplePayScheme.d.ts +24 -0
  457. package/dist/model/enums/ApplePayScheme.js +28 -0
  458. package/dist/model/enums/CancelOrderFailureReason.d.ts +31 -0
  459. package/dist/model/enums/CancelOrderFailureReason.js +35 -0
  460. package/dist/model/enums/CardScheme.d.ts +24 -0
  461. package/dist/model/enums/CardScheme.js +28 -0
  462. package/dist/model/enums/ContractExpiryType.d.ts +24 -0
  463. package/dist/model/enums/ContractExpiryType.js +28 -0
  464. package/dist/model/enums/EditOrderFailureReason.d.ts +35 -0
  465. package/dist/model/enums/EditOrderFailureReason.js +39 -0
  466. package/dist/model/enums/ErrorCodes.d.ts +44 -0
  467. package/dist/model/enums/ErrorCodes.js +48 -0
  468. package/dist/model/enums/ErrorCta.d.ts +29 -0
  469. package/dist/model/enums/ErrorCta.js +33 -0
  470. package/dist/model/enums/ExpiringContractStatus.d.ts +25 -0
  471. package/dist/model/enums/ExpiringContractStatus.js +29 -0
  472. package/dist/model/enums/FCMPositionSide.d.ts +24 -0
  473. package/dist/model/enums/FCMPositionSide.js +28 -0
  474. package/dist/model/enums/FCMSweepStatus.d.ts +24 -0
  475. package/dist/model/enums/FCMSweepStatus.js +28 -0
  476. package/dist/model/enums/FcmMarginWindowType.d.ts +26 -0
  477. package/dist/model/enums/FcmMarginWindowType.js +30 -0
  478. package/dist/model/enums/FcmTradingSessionClosedReason.d.ts +28 -0
  479. package/dist/model/enums/FcmTradingSessionClosedReason.js +32 -0
  480. package/dist/model/enums/FcmTradingSessionState.d.ts +26 -0
  481. package/dist/model/enums/FcmTradingSessionState.js +30 -0
  482. package/dist/model/enums/FedwireInstitutionType.d.ts +34 -0
  483. package/dist/model/enums/FedwireInstitutionType.js +38 -0
  484. package/dist/model/enums/FuturesPositionSide.d.ts +24 -0
  485. package/dist/model/enums/FuturesPositionSide.js +28 -0
  486. package/dist/model/enums/GetFillsRequestFillsSortBy.d.ts +24 -0
  487. package/dist/model/enums/GetFillsRequestFillsSortBy.js +28 -0
  488. package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.d.ts +24 -0
  489. package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.js +28 -0
  490. package/dist/model/enums/GooglePayResult.d.ts +24 -0
  491. package/dist/model/enums/GooglePayResult.js +28 -0
  492. package/dist/model/enums/GooglePayScheme.d.ts +24 -0
  493. package/dist/model/enums/GooglePayScheme.js +28 -0
  494. package/dist/model/enums/Granularity.d.ts +30 -0
  495. package/dist/model/enums/Granularity.js +34 -0
  496. package/dist/model/enums/GstType.d.ts +23 -0
  497. package/dist/model/enums/GstType.js +27 -0
  498. package/dist/model/enums/IntradayMarginSetting.d.ts +24 -0
  499. package/dist/model/enums/IntradayMarginSetting.js +28 -0
  500. package/dist/model/enums/LiquidityIndicator.d.ts +24 -0
  501. package/dist/model/enums/LiquidityIndicator.js +28 -0
  502. package/dist/model/enums/MarginLevelType.d.ts +26 -0
  503. package/dist/model/enums/MarginLevelType.js +30 -0
  504. package/dist/model/enums/MarginProfileType.d.ts +24 -0
  505. package/dist/model/enums/MarginProfileType.js +28 -0
  506. package/dist/model/enums/MarginType.d.ts +26 -0
  507. package/dist/model/enums/MarginType.js +30 -0
  508. package/dist/model/enums/MarginWindowType.d.ts +26 -0
  509. package/dist/model/enums/MarginWindowType.js +30 -0
  510. package/dist/model/enums/NewOrderFailureReason.d.ts +66 -0
  511. package/dist/model/enums/NewOrderFailureReason.js +70 -0
  512. package/dist/model/enums/OrderExecutionStatus.d.ts +30 -0
  513. package/dist/model/enums/OrderExecutionStatus.js +34 -0
  514. package/dist/model/enums/OrderPlacementSource.d.ts +24 -0
  515. package/dist/model/enums/OrderPlacementSource.js +28 -0
  516. package/dist/model/enums/OrderSide.d.ts +23 -0
  517. package/dist/model/enums/OrderSide.js +27 -0
  518. package/dist/model/enums/OrderType.d.ts +30 -0
  519. package/dist/model/enums/OrderType.js +34 -0
  520. package/dist/model/enums/OwnerType.d.ts +26 -0
  521. package/dist/model/enums/OwnerType.js +30 -0
  522. package/dist/model/enums/PaymentMethodType.d.ts +75 -0
  523. package/dist/model/enums/PaymentMethodType.js +79 -0
  524. package/dist/model/enums/PortfolioLiquidationStatus.d.ts +28 -0
  525. package/dist/model/enums/PortfolioLiquidationStatus.js +32 -0
  526. package/dist/model/enums/PortfolioMarginFlags.d.ts +23 -0
  527. package/dist/model/enums/PortfolioMarginFlags.js +27 -0
  528. package/dist/model/enums/PortfolioMarginType.d.ts +24 -0
  529. package/dist/model/enums/PortfolioMarginType.js +28 -0
  530. package/dist/model/enums/PortfolioType.d.ts +25 -0
  531. package/dist/model/enums/PortfolioType.js +29 -0
  532. package/dist/model/enums/PositionSide.d.ts +24 -0
  533. package/dist/model/enums/PositionSide.js +28 -0
  534. package/dist/model/enums/PreviewFailureReason.d.ts +95 -0
  535. package/dist/model/enums/PreviewFailureReason.js +99 -0
  536. package/dist/model/enums/PreviewWarningMsg.d.ts +24 -0
  537. package/dist/model/enums/PreviewWarningMsg.js +28 -0
  538. package/dist/model/enums/ProductType.d.ts +24 -0
  539. package/dist/model/enums/ProductType.js +28 -0
  540. package/dist/model/enums/ProductVenue.d.ts +25 -0
  541. package/dist/model/enums/ProductVenue.js +29 -0
  542. package/dist/model/enums/RejectReason.d.ts +26 -0
  543. package/dist/model/enums/RejectReason.js +30 -0
  544. package/dist/model/enums/RiskManagementType.d.ts +24 -0
  545. package/dist/model/enums/RiskManagementType.js +28 -0
  546. package/dist/model/enums/SgPayNowIdentifierType.d.ts +24 -0
  547. package/dist/model/enums/SgPayNowIdentifierType.js +28 -0
  548. package/dist/model/enums/StopPriceDirection.d.ts +23 -0
  549. package/dist/model/enums/StopPriceDirection.js +27 -0
  550. package/dist/model/enums/StopTriggerStatus.d.ts +25 -0
  551. package/dist/model/enums/StopTriggerStatus.js +29 -0
  552. package/dist/model/enums/TimeInForceType.d.ts +26 -0
  553. package/dist/model/enums/TimeInForceType.js +30 -0
  554. package/dist/model/enums/TradeStatus.d.ts +26 -0
  555. package/dist/model/enums/TradeStatus.js +30 -0
  556. package/dist/rest/accounts/index.d.ts +14 -0
  557. package/dist/rest/accounts/index.js +37 -0
  558. package/dist/rest/accounts/types.d.ts +11 -0
  559. package/dist/rest/accounts/types.js +2 -0
  560. package/dist/rest/client.d.ts +20 -0
  561. package/dist/rest/client.js +31 -0
  562. package/dist/rest/convert/index.d.ts +16 -0
  563. package/dist/rest/convert/index.js +55 -0
  564. package/dist/rest/convert/types.d.ts +25 -0
  565. package/dist/rest/convert/types.js +2 -0
  566. package/dist/rest/credentials/index.d.ts +6 -0
  567. package/dist/rest/credentials/index.js +80 -0
  568. package/dist/rest/data/index.d.ts +12 -0
  569. package/dist/rest/data/index.js +27 -0
  570. package/dist/rest/data/types.d.ts +3 -0
  571. package/dist/rest/data/types.js +2 -0
  572. package/dist/rest/errors/index.d.ts +22 -0
  573. package/dist/rest/errors/index.js +31 -0
  574. package/dist/rest/fees/index.d.ts +12 -0
  575. package/dist/rest/fees/index.js +28 -0
  576. package/dist/rest/fees/types.d.ts +10 -0
  577. package/dist/rest/fees/types.js +2 -0
  578. package/dist/rest/futures/index.d.ts +28 -0
  579. package/dist/rest/futures/index.js +106 -0
  580. package/dist/rest/futures/types.d.ts +35 -0
  581. package/dist/rest/futures/types.js +2 -0
  582. package/dist/rest/orders/index.d.ts +28 -0
  583. package/dist/rest/orders/index.js +114 -0
  584. package/dist/rest/orders/types.d.ts +71 -0
  585. package/dist/rest/orders/types.js +2 -0
  586. package/dist/rest/paymentMethods/index.d.ts +14 -0
  587. package/dist/rest/paymentMethods/index.js +36 -0
  588. package/dist/rest/paymentMethods/types.d.ts +9 -0
  589. package/dist/rest/paymentMethods/types.js +2 -0
  590. package/dist/rest/perpetuals/index.d.ts +22 -0
  591. package/dist/rest/perpetuals/index.js +77 -0
  592. package/dist/rest/perpetuals/types.d.ts +28 -0
  593. package/dist/rest/perpetuals/types.js +2 -0
  594. package/dist/rest/portfolios/index.d.ts +22 -0
  595. package/dist/rest/portfolios/index.js +81 -0
  596. package/dist/rest/portfolios/types.d.ts +27 -0
  597. package/dist/rest/portfolios/types.js +2 -0
  598. package/dist/rest/products/index.d.ts +22 -0
  599. package/dist/rest/products/index.js +96 -0
  600. package/dist/rest/products/types.d.ts +52 -0
  601. package/dist/rest/products/types.js +2 -0
  602. package/dist/rest/public/index.d.ts +22 -0
  603. package/dist/rest/public/index.js +76 -0
  604. package/dist/rest/public/types.d.ts +46 -0
  605. package/dist/rest/public/types.js +2 -0
  606. package/dist/rest/shared/toCamelCase.d.ts +1 -0
  607. package/dist/rest/shared/toCamelCase.js +23 -0
  608. package/package.json +36 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { MarginType } from './enums/MarginType';
21
+ import { OrderConfiguration } from './OrderConfiguration';
22
+ import { OrderSide } from './enums/OrderSide';
23
+ export type NewOrderRequest = {
24
+ /**
25
+ * A unique ID provided for the order (used for identification purposes). If the ID provided is not unique, the order will not be created and the order corresponding with that ID will be returned instead.
26
+ */
27
+ clientOrderId: string;
28
+ /**
29
+ * The trading pair (e.g. \'BTC-USD\').
30
+ */
31
+ productId: string;
32
+ /**
33
+ * The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
34
+ */
35
+ side: OrderSide;
36
+ /**
37
+ * The configuration of the order (e.g. the order type, size, etc).
38
+ */
39
+ orderConfiguration: OrderConfiguration;
40
+ /**
41
+ * The amount of leverage for the order (default is 1.0).
42
+ */
43
+ leverage?: string;
44
+ /**
45
+ * Margin Type for this order (default is CROSS).
46
+ */
47
+ marginType?: MarginType;
48
+ /**
49
+ * **(Deprecated)** The ID of the portfolio to associate the order with. Only applicable for legacy keys. CDP keys will default to the key\'s permissioned portfolio.
50
+ */
51
+ retailPortfolioId?: string;
52
+ /**
53
+ * Preview ID for this order, to associate this order with a preview request
54
+ */
55
+ previewId?: string;
56
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { NewOrderErrorResponse } from './NewOrderErrorResponse';
21
+ import { NewOrderSuccessResponse } from './NewOrderSuccessResponse';
22
+ import { OrderConfiguration } from './OrderConfiguration';
23
+ export type NewOrderResponse = {
24
+ /**
25
+ * Whether the order was created.
26
+ */
27
+ success: boolean;
28
+ successResponse?: NewOrderSuccessResponse;
29
+ errorResponse?: NewOrderErrorResponse;
30
+ /**
31
+ * The configuration of the order (e.g. the order type, size, etc).
32
+ */
33
+ orderConfiguration?: OrderConfiguration;
34
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { OrderSide } from './enums/OrderSide';
21
+ export type NewOrderSuccessResponse = {
22
+ /**
23
+ * The ID of the order.
24
+ */
25
+ orderId: string;
26
+ /**
27
+ * The trading pair (e.g. \'BTC-USD\').
28
+ */
29
+ productId?: string;
30
+ /**
31
+ * The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
32
+ */
33
+ side?: OrderSide;
34
+ /**
35
+ * The unique ID provided for the order (used for identification purposes).
36
+ */
37
+ clientOrderId?: string;
38
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { Edit } from './Edit';
21
+ import { MarginType } from './enums/MarginType';
22
+ import { OrderConfiguration } from './OrderConfiguration';
23
+ import { OrderExecutionStatus } from './enums/OrderExecutionStatus';
24
+ import { OrderPlacementSource } from './enums/OrderPlacementSource';
25
+ import { OrderSide } from './enums/OrderSide';
26
+ import { OrderType } from './enums/OrderType';
27
+ import { ProductType } from './enums/ProductType';
28
+ import { RejectReason } from './enums/RejectReason';
29
+ import { StopTriggerStatus } from './enums/StopTriggerStatus';
30
+ import { TimeInForceType } from './enums/TimeInForceType';
31
+ export type Order = {
32
+ /**
33
+ * The ID of the order.
34
+ */
35
+ orderId: string;
36
+ /**
37
+ * The trading pair (e.g. \'BTC-USD\').
38
+ */
39
+ productId: string;
40
+ /**
41
+ * The id of the User owning this Order
42
+ */
43
+ userId: string;
44
+ /**
45
+ * The configuration of the order (e.g. the order type, size, etc).
46
+ */
47
+ orderConfiguration: OrderConfiguration;
48
+ /**
49
+ * The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
50
+ */
51
+ side: OrderSide;
52
+ /**
53
+ * The unique ID provided for the order (used for identification purposes).
54
+ */
55
+ clientOrderId: string;
56
+ /**
57
+ * The current state of the order
58
+ */
59
+ status: OrderExecutionStatus;
60
+ /**
61
+ * The client specified window for which the order can remain active
62
+ */
63
+ timeInForce?: TimeInForceType;
64
+ /**
65
+ * Timestamp for when the order was created
66
+ */
67
+ createdTime: string;
68
+ /**
69
+ * The percent of total order amount that has been filled
70
+ */
71
+ completionPercentage: string;
72
+ /**
73
+ * The portion (in base currency) of total order amount that has been filled
74
+ */
75
+ filledSize?: string;
76
+ /**
77
+ * The average of all prices of fills for this order
78
+ */
79
+ averageFilledPrice: string;
80
+ /**
81
+ * **(Deprecated)** Commission amount
82
+ */
83
+ fee?: string;
84
+ /**
85
+ * Number of fills that have been posted for this order
86
+ */
87
+ numberOfFills: string;
88
+ /**
89
+ * The portion (in quote current) of total order amount that has been filled
90
+ */
91
+ filledValue?: string;
92
+ /**
93
+ * Whether a cancel request has been initiated for the order, and not yet completed
94
+ */
95
+ pendingCancel: boolean;
96
+ /**
97
+ * Whether the order was placed with quote currency
98
+ */
99
+ sizeInQuote: boolean;
100
+ /**
101
+ * The total fees for the order
102
+ */
103
+ totalFees: string;
104
+ /**
105
+ * Whether the order size includes fees
106
+ */
107
+ sizeInclusiveOfFees: boolean;
108
+ /**
109
+ * derived field: filled_value + total_fees for buy orders and filled_value - total_fees for sell orders.
110
+ */
111
+ totalValueAfterFees: string;
112
+ /**
113
+ * The trigger status of the order, with respect to stop price.
114
+ */
115
+ triggerStatus?: StopTriggerStatus;
116
+ /**
117
+ * Type of the order
118
+ */
119
+ orderType?: OrderType;
120
+ /**
121
+ * Reason the order was rejected.
122
+ */
123
+ rejectReason?: RejectReason;
124
+ /**
125
+ * True if the order is fully filled, false otherwise.
126
+ */
127
+ settled?: boolean;
128
+ /**
129
+ * The type of order, i.e. Spot or Future
130
+ */
131
+ productType?: ProductType;
132
+ /**
133
+ * Message stating why the order was rejected.
134
+ */
135
+ rejectMessage?: string;
136
+ /**
137
+ * Message stating why the order was canceled.
138
+ */
139
+ cancelMessage?: string;
140
+ /**
141
+ * Message stating which source an order was placed from.
142
+ */
143
+ orderPlacementSource?: OrderPlacementSource;
144
+ /**
145
+ * The remaining hold amount (holdAmount - holdAmountReleased). [value is 0 if holdReleased is true]
146
+ */
147
+ outstandingHoldAmount?: string;
148
+ /**
149
+ * True if order is of liquidation type.
150
+ */
151
+ isLiquidation?: boolean;
152
+ /**
153
+ * Time of the most recent fill for this order
154
+ */
155
+ lastFillTime?: string;
156
+ /**
157
+ * An array of the latest 5 edits per order
158
+ */
159
+ editHistory?: Array<Edit>;
160
+ /**
161
+ * The amount of leverage for the order (default is 1.0).
162
+ */
163
+ leverage?: string;
164
+ /**
165
+ * Margin Type for this order (default is CROSS).
166
+ */
167
+ marginType?: MarginType;
168
+ /**
169
+ * The ID of the portfolio this order is associated with.
170
+ */
171
+ retailPortfolioId?: string;
172
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { LimitLimitFok } from './LimitLimitFok';
21
+ import { LimitLimitGtc } from './LimitLimitGtc';
22
+ import { LimitLimitGtd } from './LimitLimitGtd';
23
+ import { MarketMarketIoc } from './MarketMarketIoc';
24
+ import { SorLimitIoc } from './SorLimitIoc';
25
+ import { StopLimitStopLimitGtc } from './StopLimitStopLimitGtc';
26
+ import { StopLimitStopLimitGtd } from './StopLimitStopLimitGtd';
27
+ import { TriggerBracketGtc } from './TriggerBracketGtc';
28
+ import { TriggerBracketGtd } from './TriggerBracketGtd';
29
+ export type OrderConfiguration = {
30
+ /**
31
+ * Buy or sell a specified quantity of an Asset at the current best available market price. [Read more on Market Orders](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#market-order)
32
+ */
33
+ marketMarketIoc?: MarketMarketIoc;
34
+ /**
35
+ * Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it will immediately Fill; any remaining quantity is canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
36
+ */
37
+ sorLimitIoc?: SorLimitIoc;
38
+ /**
39
+ * Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
40
+ */
41
+ limitLimitGtc?: LimitLimitGtc;
42
+ /**
43
+ * Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
44
+ */
45
+ limitLimitGtd?: LimitLimitGtd;
46
+ /**
47
+ * Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it is to immediately and completely Fill. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
48
+ */
49
+ limitLimitFok?: LimitLimitFok;
50
+ /**
51
+ * Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until canceled. [Read more on Stop-Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#stop-limit-order)
52
+ */
53
+ stopLimitStopLimitGtc?: StopLimitStopLimitGtc;
54
+ /**
55
+ * Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order. [Read more on Stop-Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#stop-limit-order)
56
+ */
57
+ stopLimitStopLimitGtd?: StopLimitStopLimitGtd;
58
+ /**
59
+ * A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until canceled. [Read more on Bracket Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#bracket-order)
60
+ */
61
+ triggerBracketGtc?: TriggerBracketGtc;
62
+ /**
63
+ * A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. [Read more on Bracket Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#bracket-order)
64
+ */
65
+ triggerBracketGtd?: TriggerBracketGtd;
66
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { MarginType } from './enums/MarginType';
21
+ import { OrderConfiguration } from './OrderConfiguration';
22
+ import { OrderSide } from './enums/OrderSide';
23
+ export type OrderPreviewRequest = {
24
+ /**
25
+ * The trading pair (e.g. \'BTC-USD\').
26
+ */
27
+ productId: string;
28
+ /**
29
+ * The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
30
+ */
31
+ side: OrderSide;
32
+ /**
33
+ * The configuration of the order (e.g. the order type, size, etc).
34
+ */
35
+ orderConfiguration: OrderConfiguration;
36
+ /**
37
+ * The amount of leverage for the order (default is 1.0).
38
+ */
39
+ leverage?: string;
40
+ /**
41
+ * Margin Type for this order (default is CROSS).
42
+ */
43
+ marginType?: MarginType;
44
+ /**
45
+ * **(Deprecated)** The ID of the portfolio to associate the order with. Only applicable for legacy keys. CDP keys will default to the key\'s permissioned portfolio.
46
+ */
47
+ retailPortfolioId?: string;
48
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { PreviewFailureReason } from './enums/PreviewFailureReason';
21
+ import { PreviewWarningMsg } from './enums/PreviewWarningMsg';
22
+ export type OrderPreviewResponse = {
23
+ orderTotal: string;
24
+ /**
25
+ * Currency amount of the applied commission (so not the rate that was used on input)
26
+ */
27
+ commissionTotal: string;
28
+ /**
29
+ * List of potential failure reasons were this order to be submitted
30
+ */
31
+ errs: Array<PreviewFailureReason>;
32
+ warning: Array<PreviewWarningMsg>;
33
+ /**
34
+ * The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
35
+ */
36
+ quoteSize: string;
37
+ /**
38
+ * The amount of the first Asset in the Trading Pair. For example, on the BTC-USD Order Book, BTC is the Base Asset.
39
+ */
40
+ baseSize: string;
41
+ bestBid: string;
42
+ bestAsk: string;
43
+ /**
44
+ * Indicates whether tradable_balance should be set to the maximum amount.
45
+ */
46
+ isMax: boolean;
47
+ orderMarginTotal?: string;
48
+ /**
49
+ * The amount of leverage for the order (default is 1.0).
50
+ */
51
+ leverage?: string;
52
+ longLeverage?: string;
53
+ shortLeverage?: string;
54
+ slippage?: string;
55
+ previewId?: string;
56
+ currentLiquidationBuffer?: string;
57
+ projectedLiquidationBuffer?: string;
58
+ maxLeverage?: string;
59
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2024-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });