@coinbase-sample/advanced-trade-sdk-ts 0.2.0 → 0.3.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 (632) hide show
  1. package/README.md +6 -6
  2. package/dist/constants.d.ts +19 -3
  3. package/dist/constants.js +19 -3
  4. package/dist/model/Account.d.ts +1 -1
  5. package/dist/model/Account.js +1 -1
  6. package/dist/model/Address.d.ts +1 -1
  7. package/dist/model/Address.js +1 -1
  8. package/dist/model/AllocatePortfolioRequest.d.ts +1 -1
  9. package/dist/model/AllocatePortfolioRequest.js +1 -1
  10. package/dist/model/Allocation.d.ts +1 -1
  11. package/dist/model/Allocation.js +1 -1
  12. package/dist/model/AllocationLeg.d.ts +1 -1
  13. package/dist/model/AllocationLeg.js +1 -1
  14. package/dist/model/Amount.d.ts +1 -1
  15. package/dist/model/Amount.js +1 -1
  16. package/dist/model/ApplePay.d.ts +1 -1
  17. package/dist/model/ApplePay.js +1 -1
  18. package/dist/model/ApplePayBraintreeData.d.ts +1 -1
  19. package/dist/model/ApplePayBraintreeData.js +1 -1
  20. package/dist/model/Asset.d.ts +1 -1
  21. package/dist/model/Asset.js +1 -1
  22. package/dist/model/Balance.d.ts +1 -1
  23. package/dist/model/Balance.js +1 -1
  24. package/dist/model/BalancePair.d.ts +4 -1
  25. package/dist/model/BalancePair.js +1 -1
  26. package/dist/model/BancomatPay.d.ts +24 -0
  27. package/dist/model/BancomatPay.js +21 -0
  28. package/dist/model/BancomatPayAccount.d.ts +22 -0
  29. package/dist/model/BancomatPayAccount.js +21 -0
  30. package/dist/model/BankAccount.d.ts +1 -1
  31. package/dist/model/BankAccount.js +1 -1
  32. package/dist/model/BestBidAskGetProductBookConfig.d.ts +1 -1
  33. package/dist/model/BestBidAskGetProductBookConfig.js +1 -1
  34. package/dist/model/BlockchainAddress.d.ts +1 -1
  35. package/dist/model/BlockchainAddress.js +1 -1
  36. package/dist/model/BlockchainTransaction.d.ts +1 -1
  37. package/dist/model/BlockchainTransaction.js +1 -1
  38. package/dist/model/CTN.d.ts +1 -1
  39. package/dist/model/CTN.js +1 -1
  40. package/dist/model/CancelFCMSweepResponse.d.ts +1 -1
  41. package/dist/model/CancelFCMSweepResponse.js +1 -1
  42. package/dist/model/CancelOrderResponse.d.ts +1 -1
  43. package/dist/model/CancelOrderResponse.js +1 -1
  44. package/dist/model/CancelOrdersRequest.d.ts +1 -1
  45. package/dist/model/CancelOrdersRequest.js +1 -1
  46. package/dist/model/CancelOrdersResponse.d.ts +1 -1
  47. package/dist/model/CancelOrdersResponse.js +1 -1
  48. package/dist/model/Candle.d.ts +1 -1
  49. package/dist/model/Candle.js +1 -1
  50. package/dist/model/Candles.d.ts +1 -1
  51. package/dist/model/Candles.js +1 -1
  52. package/dist/model/Card.d.ts +16 -1
  53. package/dist/model/Card.js +1 -1
  54. package/dist/model/CardDob.d.ts +1 -1
  55. package/dist/model/CardDob.js +1 -1
  56. package/dist/model/Cbit.d.ts +2 -1
  57. package/dist/model/Cbit.js +1 -1
  58. package/dist/model/CheckoutPaymentLink.d.ts +1 -1
  59. package/dist/model/CheckoutPaymentLink.js +1 -1
  60. package/dist/model/CheckoutToken.d.ts +22 -0
  61. package/dist/model/CheckoutToken.js +21 -0
  62. package/dist/model/ClosePositionRequest.d.ts +1 -1
  63. package/dist/model/ClosePositionRequest.js +1 -1
  64. package/dist/model/ClosePositionResponse.d.ts +1 -1
  65. package/dist/model/ClosePositionResponse.js +1 -1
  66. package/dist/model/CoinbaseAccount.d.ts +1 -1
  67. package/dist/model/CoinbaseAccount.js +1 -1
  68. package/dist/model/CommitConvertTradeRequest.d.ts +1 -1
  69. package/dist/model/CommitConvertTradeRequest.js +1 -1
  70. package/dist/model/CommitConvertTradeResponse.d.ts +1 -1
  71. package/dist/model/CommitConvertTradeResponse.js +1 -1
  72. package/dist/model/CreateConvertQuoteRequest.d.ts +1 -1
  73. package/dist/model/CreateConvertQuoteRequest.js +1 -1
  74. package/dist/model/CreateConvertQuoteResponse.d.ts +1 -1
  75. package/dist/model/CreateConvertQuoteResponse.js +1 -1
  76. package/dist/model/CreatePortfolioRequest.d.ts +1 -1
  77. package/dist/model/CreatePortfolioRequest.js +1 -1
  78. package/dist/model/CreatePortfolioResponse.d.ts +1 -1
  79. package/dist/model/CreatePortfolioResponse.js +1 -1
  80. package/dist/model/CustodialPool.d.ts +1 -1
  81. package/dist/model/CustodialPool.js +1 -1
  82. package/dist/model/DAppWalletAccount.d.ts +3 -1
  83. package/dist/model/DAppWalletAccount.js +1 -1
  84. package/dist/model/DAppWalletBlockchainAddress.d.ts +3 -1
  85. package/dist/model/DAppWalletBlockchainAddress.js +1 -1
  86. package/dist/model/DefaultAccount.d.ts +1 -1
  87. package/dist/model/DefaultAccount.js +1 -1
  88. package/dist/model/DenebIMPS.d.ts +1 -1
  89. package/dist/model/DenebIMPS.js +1 -1
  90. package/dist/model/DenebUPI.d.ts +1 -1
  91. package/dist/model/DenebUPI.js +1 -1
  92. package/dist/model/DerivativeSettlement.d.ts +1 -1
  93. package/dist/model/DerivativeSettlement.js +1 -1
  94. package/dist/model/DerivativeSettlementAccountSettlement.d.ts +1 -1
  95. package/dist/model/DerivativeSettlementAccountSettlement.js +1 -1
  96. package/dist/model/DerivativeSettlementEquityReset.d.ts +1 -1
  97. package/dist/model/DerivativeSettlementEquityReset.js +1 -1
  98. package/dist/model/DigitalWalletDetails.d.ts +1 -1
  99. package/dist/model/DigitalWalletDetails.js +1 -1
  100. package/dist/model/DirectDeposit.d.ts +1 -1
  101. package/dist/model/DirectDeposit.js +1 -1
  102. package/dist/model/Disclosure.d.ts +1 -1
  103. package/dist/model/Disclosure.js +1 -1
  104. package/dist/model/Edit.d.ts +1 -1
  105. package/dist/model/Edit.js +1 -1
  106. package/dist/model/EditOrderError.d.ts +1 -1
  107. package/dist/model/EditOrderError.js +1 -1
  108. package/dist/model/EditOrderErrorResponse.d.ts +1 -1
  109. package/dist/model/EditOrderErrorResponse.js +1 -1
  110. package/dist/model/EditOrderRequest.d.ts +1 -1
  111. package/dist/model/EditOrderRequest.js +1 -1
  112. package/dist/model/EditOrderResponse.d.ts +1 -1
  113. package/dist/model/EditOrderResponse.js +1 -1
  114. package/dist/model/EditOrderSuccessResponse.d.ts +1 -1
  115. package/dist/model/EditOrderSuccessResponse.js +1 -1
  116. package/dist/model/EditPortfolioRequest.d.ts +1 -1
  117. package/dist/model/EditPortfolioRequest.js +1 -1
  118. package/dist/model/EditPortfolioResponse.d.ts +1 -1
  119. package/dist/model/EditPortfolioResponse.js +1 -1
  120. package/dist/model/Eft.d.ts +23 -0
  121. package/dist/model/Eft.js +21 -0
  122. package/dist/model/EftAccount.d.ts +36 -0
  123. package/dist/model/EftAccount.js +21 -0
  124. package/dist/model/EmailAddress.d.ts +1 -1
  125. package/dist/model/EmailAddress.js +1 -1
  126. package/dist/model/Error.d.ts +4 -1
  127. package/dist/model/Error.js +1 -1
  128. package/dist/model/ErrorMetadata.d.ts +23 -0
  129. package/dist/model/ErrorMetadata.js +21 -0
  130. package/dist/model/ExpiryDate.d.ts +1 -1
  131. package/dist/model/ExpiryDate.js +1 -1
  132. package/dist/model/ExtendedTimestamp.d.ts +1 -1
  133. package/dist/model/ExtendedTimestamp.js +1 -1
  134. package/dist/model/ExternalPaymentMethod.d.ts +1 -1
  135. package/dist/model/ExternalPaymentMethod.js +1 -1
  136. package/dist/model/FCMBalanceSummary.d.ts +1 -1
  137. package/dist/model/FCMBalanceSummary.js +1 -1
  138. package/dist/model/FCMPosition.d.ts +1 -1
  139. package/dist/model/FCMPosition.js +1 -1
  140. package/dist/model/FCMSweep.d.ts +1 -1
  141. package/dist/model/FCMSweep.js +1 -1
  142. package/dist/model/FcmMarginWindowMeasure.d.ts +1 -1
  143. package/dist/model/FcmMarginWindowMeasure.js +1 -1
  144. package/dist/model/FcmScheduledMaintenance.d.ts +1 -1
  145. package/dist/model/FcmScheduledMaintenance.js +1 -1
  146. package/dist/model/FcmTradingSessionDetails.d.ts +1 -1
  147. package/dist/model/FcmTradingSessionDetails.js +1 -1
  148. package/dist/model/Fedwire.d.ts +1 -1
  149. package/dist/model/Fedwire.js +1 -1
  150. package/dist/model/FedwireAccount.d.ts +1 -1
  151. package/dist/model/FedwireAccount.js +1 -1
  152. package/dist/model/FedwireAddress.d.ts +1 -1
  153. package/dist/model/FedwireAddress.js +1 -1
  154. package/dist/model/FedwireInstitution.d.ts +1 -1
  155. package/dist/model/FedwireInstitution.js +1 -1
  156. package/dist/model/Fee.d.ts +3 -1
  157. package/dist/model/Fee.js +1 -1
  158. package/dist/model/FeeTier.d.ts +9 -1
  159. package/dist/model/FeeTier.js +1 -1
  160. package/dist/model/Fill.d.ts +1 -1
  161. package/dist/model/Fill.js +1 -1
  162. package/dist/model/FirstDataToken.d.ts +1 -1
  163. package/dist/model/FirstDataToken.js +1 -1
  164. package/dist/model/FundMovement.d.ts +1 -1
  165. package/dist/model/FundMovement.js +1 -1
  166. package/dist/model/FutureProductDetails.d.ts +1 -1
  167. package/dist/model/FutureProductDetails.js +1 -1
  168. package/dist/model/FuturesPosition.d.ts +3 -1
  169. package/dist/model/FuturesPosition.js +1 -1
  170. package/dist/model/GetAccountResponse.d.ts +1 -1
  171. package/dist/model/GetAccountResponse.js +1 -1
  172. package/dist/model/GetAccountsResponse.d.ts +1 -1
  173. package/dist/model/GetAccountsResponse.js +1 -1
  174. package/dist/model/GetApiKeyPermissionsResponse.d.ts +1 -1
  175. package/dist/model/GetApiKeyPermissionsResponse.js +1 -1
  176. package/dist/model/GetBalanceSummaryResponse.d.ts +1 -1
  177. package/dist/model/GetBalanceSummaryResponse.js +1 -1
  178. package/dist/model/GetBestBidAskResponse.d.ts +1 -1
  179. package/dist/model/GetBestBidAskResponse.js +1 -1
  180. package/dist/model/GetCandlesResponse.d.ts +1 -1
  181. package/dist/model/GetCandlesResponse.js +1 -1
  182. package/dist/model/GetConvertTradeResponse.d.ts +1 -1
  183. package/dist/model/GetConvertTradeResponse.js +1 -1
  184. package/dist/model/GetCurrentMarginWindowResponse.d.ts +1 -1
  185. package/dist/model/GetCurrentMarginWindowResponse.js +1 -1
  186. package/dist/model/GetFCMBalanceSummaryResponse.d.ts +1 -1
  187. package/dist/model/GetFCMBalanceSummaryResponse.js +1 -1
  188. package/dist/model/GetFCMPositionResponse.d.ts +1 -1
  189. package/dist/model/GetFCMPositionResponse.js +1 -1
  190. package/dist/model/GetFCMPositionsResponse.d.ts +1 -1
  191. package/dist/model/GetFCMPositionsResponse.js +1 -1
  192. package/dist/model/GetFCMSweepsResponse.d.ts +1 -1
  193. package/dist/model/GetFCMSweepsResponse.js +1 -1
  194. package/dist/model/GetFillsResponse.d.ts +1 -1
  195. package/dist/model/GetFillsResponse.js +1 -1
  196. package/dist/model/GetHistoricalOrderResponse.d.ts +1 -1
  197. package/dist/model/GetHistoricalOrderResponse.js +1 -1
  198. package/dist/model/GetHistoricalOrdersResponse.d.ts +1 -1
  199. package/dist/model/GetHistoricalOrdersResponse.js +1 -1
  200. package/dist/model/GetIntradayMarginSettingResponse.d.ts +1 -1
  201. package/dist/model/GetIntradayMarginSettingResponse.js +1 -1
  202. package/dist/model/GetMarketTradesResponse.d.ts +1 -1
  203. package/dist/model/GetMarketTradesResponse.js +1 -1
  204. package/dist/model/GetPaymentMethodResponse.d.ts +1 -1
  205. package/dist/model/GetPaymentMethodResponse.js +1 -1
  206. package/dist/model/GetPaymentMethodsResponse.d.ts +1 -1
  207. package/dist/model/GetPaymentMethodsResponse.js +1 -1
  208. package/dist/model/GetPortfolioBreakdownResponse.d.ts +1 -1
  209. package/dist/model/GetPortfolioBreakdownResponse.js +1 -1
  210. package/dist/model/GetPortfoliosResponse.d.ts +1 -1
  211. package/dist/model/GetPortfoliosResponse.js +1 -1
  212. package/dist/model/GetPositionResponse.d.ts +1 -1
  213. package/dist/model/GetPositionResponse.js +1 -1
  214. package/dist/model/GetPositionsResponse.d.ts +1 -1
  215. package/dist/model/GetPositionsResponse.js +1 -1
  216. package/dist/model/GetProductBookResponse.d.ts +1 -1
  217. package/dist/model/GetProductBookResponse.js +1 -1
  218. package/dist/model/GetProductResponse.d.ts +1 -1
  219. package/dist/model/GetProductResponse.js +1 -1
  220. package/dist/model/GetProductsResponse.d.ts +1 -1
  221. package/dist/model/GetProductsResponse.js +1 -1
  222. package/dist/model/GetTransactionSummaryResponse.d.ts +1 -1
  223. package/dist/model/GetTransactionSummaryResponse.js +1 -1
  224. package/dist/model/GoodsAndServicesTax.d.ts +1 -1
  225. package/dist/model/GoodsAndServicesTax.js +1 -1
  226. package/dist/model/GooglePay.d.ts +1 -1
  227. package/dist/model/GooglePay.js +1 -1
  228. package/dist/model/GooglePayBraintreeData.d.ts +1 -1
  229. package/dist/model/GooglePayBraintreeData.js +1 -1
  230. package/dist/model/HistoricalMarketTrade.d.ts +1 -1
  231. package/dist/model/HistoricalMarketTrade.js +1 -1
  232. package/dist/model/HotWallet.d.ts +23 -0
  233. package/dist/model/HotWallet.js +21 -0
  234. package/dist/model/Ideal.d.ts +1 -1
  235. package/dist/model/Ideal.js +1 -1
  236. package/dist/model/IdentityContractCall.d.ts +1 -1
  237. package/dist/model/IdentityContractCall.js +1 -1
  238. package/dist/model/Interac.d.ts +2 -1
  239. package/dist/model/Interac.js +1 -1
  240. package/dist/model/InteracAccount.d.ts +1 -1
  241. package/dist/model/InteracAccount.js +1 -1
  242. package/dist/model/IntraBank.d.ts +1 -1
  243. package/dist/model/IntraBank.js +1 -1
  244. package/dist/model/L2Level.d.ts +1 -1
  245. package/dist/model/L2Level.js +1 -1
  246. package/dist/model/LedgerAccount.d.ts +1 -1
  247. package/dist/model/LedgerAccount.js +1 -1
  248. package/dist/model/LedgerNamedAccount.d.ts +1 -1
  249. package/dist/model/LedgerNamedAccount.js +1 -1
  250. package/dist/model/LimitLimitFok.d.ts +5 -1
  251. package/dist/model/LimitLimitFok.js +1 -1
  252. package/dist/model/LimitLimitGtc.d.ts +5 -1
  253. package/dist/model/LimitLimitGtc.js +1 -1
  254. package/dist/model/LimitLimitGtd.d.ts +5 -1
  255. package/dist/model/LimitLimitGtd.js +1 -1
  256. package/dist/model/Link.d.ts +1 -1
  257. package/dist/model/Link.js +1 -1
  258. package/dist/model/LiquidationMarketGtc.d.ts +1 -1
  259. package/dist/model/LiquidationMarketGtc.js +1 -1
  260. package/dist/model/LiquidationMarketGtd.d.ts +1 -1
  261. package/dist/model/LiquidationMarketGtd.js +1 -1
  262. package/dist/model/LiquidityPool.d.ts +2 -1
  263. package/dist/model/LiquidityPool.js +1 -1
  264. package/dist/model/MagicSpendBlockchainAddress.d.ts +23 -0
  265. package/dist/model/MagicSpendBlockchainAddress.js +21 -0
  266. package/dist/model/Manual.d.ts +24 -0
  267. package/dist/model/Manual.js +21 -0
  268. package/dist/model/MarginWindow.d.ts +1 -1
  269. package/dist/model/MarginWindow.js +1 -1
  270. package/dist/model/MarketMarketIoc.d.ts +1 -1
  271. package/dist/model/MarketMarketIoc.js +1 -1
  272. package/dist/model/Merchant.d.ts +1 -1
  273. package/dist/model/Merchant.js +1 -1
  274. package/dist/model/Money.d.ts +2 -2
  275. package/dist/model/Money.js +1 -1
  276. package/dist/model/MovePortfolioFundsRequest.d.ts +1 -1
  277. package/dist/model/MovePortfolioFundsRequest.js +1 -1
  278. package/dist/model/MovePortfolioFundsResponse.d.ts +1 -1
  279. package/dist/model/MovePortfolioFundsResponse.js +1 -1
  280. package/dist/model/MultiAssetCollateralRequest.d.ts +1 -1
  281. package/dist/model/MultiAssetCollateralRequest.js +1 -1
  282. package/dist/model/MultiAssetCollateralResponse.d.ts +1 -1
  283. package/dist/model/MultiAssetCollateralResponse.js +1 -1
  284. package/dist/model/NewOrderErrorResponse.d.ts +1 -1
  285. package/dist/model/NewOrderErrorResponse.js +1 -1
  286. package/dist/model/NewOrderRequest.d.ts +5 -1
  287. package/dist/model/NewOrderRequest.js +1 -1
  288. package/dist/model/NewOrderResponse.d.ts +1 -1
  289. package/dist/model/NewOrderResponse.js +1 -1
  290. package/dist/model/NewOrderSuccessResponse.d.ts +1 -1
  291. package/dist/model/NewOrderSuccessResponse.js +1 -1
  292. package/dist/model/NovaAccount.d.ts +25 -0
  293. package/dist/model/NovaAccount.js +21 -0
  294. package/dist/model/Order.d.ts +13 -1
  295. package/dist/model/Order.js +1 -1
  296. package/dist/model/OrderConfiguration.d.ts +6 -1
  297. package/dist/model/OrderConfiguration.js +1 -1
  298. package/dist/model/OrderPreviewRequest.d.ts +5 -1
  299. package/dist/model/OrderPreviewRequest.js +1 -1
  300. package/dist/model/OrderPreviewResponse.d.ts +9 -1
  301. package/dist/model/OrderPreviewResponse.js +1 -1
  302. package/dist/model/Owner.d.ts +1 -1
  303. package/dist/model/Owner.js +1 -1
  304. package/dist/model/Params3DS.d.ts +23 -0
  305. package/dist/model/Params3DS.js +21 -0
  306. package/dist/model/PaymentMethod.d.ts +1 -1
  307. package/dist/model/PaymentMethod.js +1 -1
  308. package/dist/model/Paypal.d.ts +3 -1
  309. package/dist/model/Paypal.js +1 -1
  310. package/dist/model/PaypalAccount.d.ts +1 -1
  311. package/dist/model/PaypalAccount.js +1 -1
  312. package/dist/model/PaypalMerchant.d.ts +1 -1
  313. package/dist/model/PaypalMerchant.js +1 -1
  314. package/dist/model/PaypalMetadata.d.ts +22 -0
  315. package/dist/model/PaypalMetadata.js +21 -0
  316. package/dist/model/PerpPosition.d.ts +5 -1
  317. package/dist/model/PerpPosition.js +1 -1
  318. package/dist/model/PerpetualProductDetails.d.ts +1 -1
  319. package/dist/model/PerpetualProductDetails.js +1 -1
  320. package/dist/model/PhoneNumber.d.ts +1 -1
  321. package/dist/model/PhoneNumber.js +1 -1
  322. package/dist/model/PixEbanx.d.ts +1 -1
  323. package/dist/model/PixEbanx.js +1 -1
  324. package/dist/model/PixEbanxPixDeposit.d.ts +1 -1
  325. package/dist/model/PixEbanxPixDeposit.js +1 -1
  326. package/dist/model/PixEbanxPixWithdrawal.d.ts +1 -1
  327. package/dist/model/PixEbanxPixWithdrawal.js +1 -1
  328. package/dist/model/PnlConfiguration.d.ts +4 -1
  329. package/dist/model/PnlConfiguration.js +1 -1
  330. package/dist/model/Portfolio.d.ts +2 -2
  331. package/dist/model/Portfolio.js +1 -1
  332. package/dist/model/PortfolioBalance.d.ts +1 -1
  333. package/dist/model/PortfolioBalance.js +1 -1
  334. package/dist/model/PortfolioBalances.d.ts +4 -1
  335. package/dist/model/PortfolioBalances.js +1 -1
  336. package/dist/model/PortfolioBreakdown.d.ts +4 -1
  337. package/dist/model/PortfolioBreakdown.js +1 -1
  338. package/dist/model/PortfolioPosition.d.ts +13 -2
  339. package/dist/model/PortfolioPosition.js +1 -1
  340. package/dist/model/PortfoliosSummary.d.ts +1 -1
  341. package/dist/model/PortfoliosSummary.js +1 -1
  342. package/dist/model/Position.d.ts +1 -1
  343. package/dist/model/Position.js +1 -1
  344. package/dist/model/PositionSummary.d.ts +1 -1
  345. package/dist/model/PositionSummary.js +1 -1
  346. package/dist/model/PreviewEditOrderResponse.d.ts +1 -1
  347. package/dist/model/PreviewEditOrderResponse.js +1 -1
  348. package/dist/model/PriceBook.d.ts +1 -1
  349. package/dist/model/PriceBook.js +1 -1
  350. package/dist/model/ProAccount.d.ts +1 -1
  351. package/dist/model/ProAccount.js +1 -1
  352. package/dist/model/ProInternalAccount.d.ts +1 -1
  353. package/dist/model/ProInternalAccount.js +1 -1
  354. package/dist/model/Product.d.ts +5 -1
  355. package/dist/model/Product.js +1 -1
  356. package/dist/model/Products.d.ts +1 -1
  357. package/dist/model/Products.js +1 -1
  358. package/dist/model/RatConvertTrade.d.ts +1 -1
  359. package/dist/model/RatConvertTrade.js +1 -1
  360. package/dist/model/Remitly.d.ts +1 -1
  361. package/dist/model/Remitly.js +1 -1
  362. package/dist/model/RemitlyAccount.d.ts +1 -1
  363. package/dist/model/RemitlyAccount.js +1 -1
  364. package/dist/model/Representment.d.ts +22 -0
  365. package/dist/model/Representment.js +21 -0
  366. package/dist/model/RollingMarketGtc.d.ts +23 -0
  367. package/dist/model/RollingMarketGtc.js +21 -0
  368. package/dist/model/Rtp.d.ts +1 -1
  369. package/dist/model/Rtp.js +1 -1
  370. package/dist/model/RtpAccount.d.ts +1 -1
  371. package/dist/model/RtpAccount.js +1 -1
  372. package/dist/model/RtpInstitution.d.ts +1 -1
  373. package/dist/model/RtpInstitution.js +1 -1
  374. package/dist/model/ScaledAmount.d.ts +1 -1
  375. package/dist/model/ScaledAmount.js +1 -1
  376. package/dist/model/ScheduleFCMSweepRequest.d.ts +1 -1
  377. package/dist/model/ScheduleFCMSweepRequest.js +1 -1
  378. package/dist/model/ScheduleFCMSweepResponse.d.ts +1 -1
  379. package/dist/model/ScheduleFCMSweepResponse.js +1 -1
  380. package/dist/model/Sepa.d.ts +1 -1
  381. package/dist/model/Sepa.js +1 -1
  382. package/dist/model/SepaAccount.d.ts +1 -1
  383. package/dist/model/SepaAccount.js +1 -1
  384. package/dist/model/SepaAccountDetail.d.ts +1 -1
  385. package/dist/model/SepaAccountDetail.js +1 -1
  386. package/dist/model/SepaInstitution.d.ts +1 -1
  387. package/dist/model/SepaInstitution.js +1 -1
  388. package/dist/model/SepaV2.d.ts +1 -1
  389. package/dist/model/SepaV2.js +1 -1
  390. package/dist/model/SetIntradayMarginSettingRequest.d.ts +1 -1
  391. package/dist/model/SetIntradayMarginSettingRequest.js +1 -1
  392. package/dist/model/SgFast.d.ts +1 -1
  393. package/dist/model/SgFast.js +1 -1
  394. package/dist/model/SgFastAccount.d.ts +1 -1
  395. package/dist/model/SgFastAccount.js +1 -1
  396. package/dist/model/SgFastInstitution.d.ts +1 -1
  397. package/dist/model/SgFastInstitution.js +1 -1
  398. package/dist/model/SgPayNow.d.ts +1 -1
  399. package/dist/model/SgPayNow.js +1 -1
  400. package/dist/model/Signet.d.ts +1 -1
  401. package/dist/model/Signet.js +1 -1
  402. package/dist/model/SingleProductGetProductBookConfig.d.ts +1 -1
  403. package/dist/model/SingleProductGetProductBookConfig.js +1 -1
  404. package/dist/model/Sofort.d.ts +1 -1
  405. package/dist/model/Sofort.js +1 -1
  406. package/dist/model/SorLimitIoc.d.ts +5 -1
  407. package/dist/model/SorLimitIoc.js +1 -1
  408. package/dist/model/StopLimitStopLimitGtc.d.ts +1 -1
  409. package/dist/model/StopLimitStopLimitGtc.js +1 -1
  410. package/dist/model/StopLimitStopLimitGtd.d.ts +1 -1
  411. package/dist/model/StopLimitStopLimitGtd.js +1 -1
  412. package/dist/model/SubscriptionInfo.d.ts +1 -1
  413. package/dist/model/SubscriptionInfo.js +1 -1
  414. package/dist/model/Swift.d.ts +1 -1
  415. package/dist/model/Swift.js +1 -1
  416. package/dist/model/SwiftAccount.d.ts +1 -1
  417. package/dist/model/SwiftAccount.js +1 -1
  418. package/dist/model/SwiftInstitution.d.ts +1 -1
  419. package/dist/model/SwiftInstitution.js +1 -1
  420. package/dist/model/TaxInfo.d.ts +1 -1
  421. package/dist/model/TaxInfo.js +1 -1
  422. package/dist/model/TradeIncentiveInfo.d.ts +1 -1
  423. package/dist/model/TradeIncentiveInfo.js +1 -1
  424. package/dist/model/TradeIncentiveMetadata.d.ts +1 -1
  425. package/dist/model/TradeIncentiveMetadata.js +1 -1
  426. package/dist/model/TransferPointer.d.ts +22 -0
  427. package/dist/model/TransferPointer.js +21 -0
  428. package/dist/model/TriggerBracketGtc.d.ts +1 -1
  429. package/dist/model/TriggerBracketGtc.js +1 -1
  430. package/dist/model/TriggerBracketGtd.d.ts +1 -1
  431. package/dist/model/TriggerBracketGtd.js +1 -1
  432. package/dist/model/TriggerBracketPnl.d.ts +7 -1
  433. package/dist/model/TriggerBracketPnl.js +1 -1
  434. package/dist/model/TwapBucketMetadata.d.ts +24 -0
  435. package/dist/model/TwapBucketMetadata.js +21 -0
  436. package/dist/model/TwapLimitGtd.d.ts +13 -1
  437. package/dist/model/TwapLimitGtd.js +1 -1
  438. package/dist/model/TypesDecimal.d.ts +1 -1
  439. package/dist/model/TypesDecimal.js +1 -1
  440. package/dist/model/Uk.d.ts +1 -1
  441. package/dist/model/Uk.js +1 -1
  442. package/dist/model/UkAccount.d.ts +3 -1
  443. package/dist/model/UkAccount.js +1 -1
  444. package/dist/model/UkInstitution.d.ts +1 -1
  445. package/dist/model/UkInstitution.js +1 -1
  446. package/dist/model/UnitPrice.d.ts +1 -1
  447. package/dist/model/UnitPrice.js +1 -1
  448. package/dist/model/User.d.ts +1 -1
  449. package/dist/model/User.js +1 -1
  450. package/dist/model/UserWarning.d.ts +1 -1
  451. package/dist/model/UserWarning.js +1 -1
  452. package/dist/model/UserWarningContext.d.ts +1 -1
  453. package/dist/model/UserWarningContext.js +1 -1
  454. package/dist/model/VaultToken.d.ts +1 -1
  455. package/dist/model/VaultToken.js +1 -1
  456. package/dist/model/VendorPayment.d.ts +1 -1
  457. package/dist/model/VendorPayment.js +1 -1
  458. package/dist/model/Venue.d.ts +1 -1
  459. package/dist/model/Venue.js +1 -1
  460. package/dist/model/WaivedDetails.d.ts +25 -0
  461. package/dist/model/WaivedDetails.js +21 -0
  462. package/dist/model/WallaceAccount.d.ts +23 -0
  463. package/dist/model/WallaceAccount.js +21 -0
  464. package/dist/model/WorldpayParams.d.ts +1 -1
  465. package/dist/model/WorldpayParams.js +1 -1
  466. package/dist/model/ZaakpayMobikwik.d.ts +1 -1
  467. package/dist/model/ZaakpayMobikwik.js +1 -1
  468. package/dist/model/Zengin.d.ts +1 -1
  469. package/dist/model/Zengin.js +1 -1
  470. package/dist/model/ZenginAccount.d.ts +1 -1
  471. package/dist/model/ZenginAccount.js +1 -1
  472. package/dist/model/ZenginInstitution.d.ts +1 -1
  473. package/dist/model/ZenginInstitution.js +1 -1
  474. package/dist/model/ZenginV2.d.ts +1 -1
  475. package/dist/model/ZenginV2.js +1 -1
  476. package/dist/model/ZenginV2Account.d.ts +1 -1
  477. package/dist/model/ZenginV2Account.js +1 -1
  478. package/dist/model/ZenginV2Institution.d.ts +1 -1
  479. package/dist/model/ZenginV2Institution.js +1 -1
  480. package/dist/model/Zepto.d.ts +1 -1
  481. package/dist/model/Zepto.js +1 -1
  482. package/dist/model/ZeptoAccount.d.ts +1 -1
  483. package/dist/model/ZeptoAccount.js +1 -1
  484. package/dist/model/coinbasePaymentMethodServiceArgentineBankAccountDetails.d.ts +23 -0
  485. package/dist/model/coinbasePaymentMethodServiceArgentineBankAccountDetails.js +21 -0
  486. package/dist/model/coinbasePaymentMethodServiceBankingCircleNowDetails.d.ts +24 -0
  487. package/dist/model/coinbasePaymentMethodServiceBankingCircleNowDetails.js +21 -0
  488. package/dist/model/coinbasePaymentMethodServiceBlikDetails.d.ts +30 -0
  489. package/dist/model/coinbasePaymentMethodServiceBlikDetails.js +21 -0
  490. package/dist/model/coinbasePaymentMethodServicePixDetails.d.ts +32 -0
  491. package/dist/model/coinbasePaymentMethodServicePixDetails.js +21 -0
  492. package/dist/model/coinbasePaymentMethodServiceTrustlyDetails.d.ts +56 -0
  493. package/dist/model/coinbasePaymentMethodServiceTrustlyDetails.js +21 -0
  494. package/dist/model/enums/AccountPlatform.d.ts +1 -1
  495. package/dist/model/enums/AccountPlatform.js +1 -1
  496. package/dist/model/enums/AccountType.d.ts +1 -1
  497. package/dist/model/enums/AccountType.js +1 -1
  498. package/dist/model/enums/ApplePayResult.d.ts +1 -1
  499. package/dist/model/enums/ApplePayResult.js +1 -1
  500. package/dist/model/enums/ApplePayScheme.d.ts +1 -1
  501. package/dist/model/enums/ApplePayScheme.js +1 -1
  502. package/dist/model/enums/CancelOrderFailureReason.d.ts +1 -1
  503. package/dist/model/enums/CancelOrderFailureReason.js +1 -1
  504. package/dist/model/enums/CardScheme.d.ts +1 -1
  505. package/dist/model/enums/CardScheme.js +1 -1
  506. package/dist/model/enums/ContractExpiryType.d.ts +1 -1
  507. package/dist/model/enums/ContractExpiryType.js +1 -1
  508. package/dist/model/enums/EditOrderFailureReason.d.ts +1 -1
  509. package/dist/model/enums/EditOrderFailureReason.js +1 -1
  510. package/dist/model/enums/ErrorCodes.d.ts +6 -2
  511. package/dist/model/enums/ErrorCodes.js +5 -1
  512. package/dist/model/enums/ErrorCta.d.ts +3 -2
  513. package/dist/model/enums/ErrorCta.js +2 -1
  514. package/dist/model/enums/ExpiringContractStatus.d.ts +1 -1
  515. package/dist/model/enums/ExpiringContractStatus.js +1 -1
  516. package/dist/model/enums/FCMPositionSide.d.ts +1 -1
  517. package/dist/model/enums/FCMPositionSide.js +1 -1
  518. package/dist/model/enums/FCMSweepStatus.d.ts +1 -1
  519. package/dist/model/enums/FCMSweepStatus.js +1 -1
  520. package/dist/model/enums/FcmMarginWindowType.d.ts +1 -1
  521. package/dist/model/enums/FcmMarginWindowType.js +1 -1
  522. package/dist/model/enums/FcmTradingSessionClosedReason.d.ts +1 -1
  523. package/dist/model/enums/FcmTradingSessionClosedReason.js +1 -1
  524. package/dist/model/enums/FcmTradingSessionState.d.ts +1 -1
  525. package/dist/model/enums/FcmTradingSessionState.js +1 -1
  526. package/dist/model/enums/FedwireInstitutionType.d.ts +1 -1
  527. package/dist/model/enums/FedwireInstitutionType.js +1 -1
  528. package/dist/model/enums/FuturesPositionSide.d.ts +4 -1
  529. package/dist/model/enums/FuturesPositionSide.js +4 -1
  530. package/dist/model/enums/GetFillsRequestFillsSortBy.d.ts +1 -1
  531. package/dist/model/enums/GetFillsRequestFillsSortBy.js +1 -1
  532. package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.d.ts +1 -1
  533. package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.js +1 -1
  534. package/dist/model/enums/GooglePayResult.d.ts +1 -1
  535. package/dist/model/enums/GooglePayResult.js +1 -1
  536. package/dist/model/enums/GooglePayScheme.d.ts +1 -1
  537. package/dist/model/enums/GooglePayScheme.js +1 -1
  538. package/dist/model/enums/Granularity.d.ts +1 -1
  539. package/dist/model/enums/Granularity.js +1 -1
  540. package/dist/model/enums/GstType.d.ts +1 -1
  541. package/dist/model/enums/GstType.js +1 -1
  542. package/dist/model/enums/IntradayMarginSetting.d.ts +1 -1
  543. package/dist/model/enums/IntradayMarginSetting.js +1 -1
  544. package/dist/model/enums/LiquidityIndicator.d.ts +1 -1
  545. package/dist/model/enums/LiquidityIndicator.js +1 -1
  546. package/dist/model/enums/MarginLevelType.d.ts +1 -1
  547. package/dist/model/enums/MarginLevelType.js +1 -1
  548. package/dist/model/enums/MarginProfileType.d.ts +1 -1
  549. package/dist/model/enums/MarginProfileType.js +1 -1
  550. package/dist/model/enums/MarginType.d.ts +1 -1
  551. package/dist/model/enums/MarginType.js +1 -1
  552. package/dist/model/enums/MarginWindowType.d.ts +1 -1
  553. package/dist/model/enums/MarginWindowType.js +1 -1
  554. package/dist/model/enums/NewOrderFailureReason.d.ts +5 -2
  555. package/dist/model/enums/NewOrderFailureReason.js +4 -1
  556. package/dist/model/enums/OrderExecutionStatus.d.ts +1 -1
  557. package/dist/model/enums/OrderExecutionStatus.js +1 -1
  558. package/dist/model/enums/OrderPlacementSource.d.ts +1 -1
  559. package/dist/model/enums/OrderPlacementSource.js +1 -1
  560. package/dist/model/enums/OrderSide.d.ts +1 -1
  561. package/dist/model/enums/OrderSide.js +1 -1
  562. package/dist/model/enums/OrderType.d.ts +3 -5
  563. package/dist/model/enums/OrderType.js +2 -4
  564. package/dist/model/enums/OwnerType.d.ts +1 -1
  565. package/dist/model/enums/OwnerType.js +1 -1
  566. package/dist/model/enums/PaymentMethodType.d.ts +17 -2
  567. package/dist/model/enums/PaymentMethodType.js +16 -1
  568. package/dist/model/enums/PortfolioLiquidationStatus.d.ts +1 -1
  569. package/dist/model/enums/PortfolioLiquidationStatus.js +1 -1
  570. package/dist/model/enums/PortfolioMarginFlags.d.ts +1 -1
  571. package/dist/model/enums/PortfolioMarginFlags.js +1 -1
  572. package/dist/model/enums/PortfolioMarginType.d.ts +4 -1
  573. package/dist/model/enums/PortfolioMarginType.js +4 -1
  574. package/dist/model/enums/PortfolioType.d.ts +4 -1
  575. package/dist/model/enums/PortfolioType.js +4 -1
  576. package/dist/model/enums/PositionSide.d.ts +1 -1
  577. package/dist/model/enums/PositionSide.js +1 -1
  578. package/dist/model/enums/PreviewFailureReason.d.ts +6 -2
  579. package/dist/model/enums/PreviewFailureReason.js +5 -1
  580. package/dist/model/enums/PreviewWarningMsg.d.ts +1 -1
  581. package/dist/model/enums/PreviewWarningMsg.js +1 -1
  582. package/dist/model/enums/ProductType.d.ts +1 -1
  583. package/dist/model/enums/ProductType.js +1 -1
  584. package/dist/model/enums/ProductVenue.d.ts +1 -1
  585. package/dist/model/enums/ProductVenue.js +1 -1
  586. package/dist/model/enums/ProductsSortOrder.d.ts +24 -0
  587. package/dist/model/enums/ProductsSortOrder.js +28 -0
  588. package/dist/model/enums/RejectReason.d.ts +1 -1
  589. package/dist/model/enums/RejectReason.js +1 -1
  590. package/dist/model/enums/RiskManagementType.d.ts +1 -1
  591. package/dist/model/enums/RiskManagementType.js +1 -1
  592. package/dist/model/enums/SgPayNowIdentifierType.d.ts +1 -1
  593. package/dist/model/enums/SgPayNowIdentifierType.js +1 -1
  594. package/dist/model/enums/StopPriceDirection.d.ts +1 -1
  595. package/dist/model/enums/StopPriceDirection.js +1 -1
  596. package/dist/model/enums/StopTriggerStatus.d.ts +1 -1
  597. package/dist/model/enums/StopTriggerStatus.js +1 -1
  598. package/dist/model/enums/TimeInForceType.d.ts +1 -1
  599. package/dist/model/enums/TimeInForceType.js +1 -1
  600. package/dist/model/enums/TradeStatus.d.ts +1 -1
  601. package/dist/model/enums/TradeStatus.js +1 -1
  602. package/dist/model/enums/WaivedFeeSource.d.ts +26 -0
  603. package/dist/model/enums/WaivedFeeSource.js +30 -0
  604. package/dist/rest/accounts/index.d.ts +15 -0
  605. package/dist/rest/accounts/types.d.ts +15 -0
  606. package/dist/rest/convert/index.d.ts +15 -0
  607. package/dist/rest/convert/index.js +15 -0
  608. package/dist/rest/convert/types.d.ts +15 -0
  609. package/dist/rest/credentials/index.js +84 -24
  610. package/dist/rest/data/index.d.ts +15 -0
  611. package/dist/rest/data/types.d.ts +15 -0
  612. package/dist/rest/fees/index.d.ts +15 -0
  613. package/dist/rest/fees/types.d.ts +15 -0
  614. package/dist/rest/futures/index.d.ts +15 -0
  615. package/dist/rest/futures/index.js +15 -0
  616. package/dist/rest/futures/types.d.ts +15 -0
  617. package/dist/rest/orders/index.d.ts +15 -0
  618. package/dist/rest/orders/index.js +15 -0
  619. package/dist/rest/orders/types.d.ts +15 -0
  620. package/dist/rest/paymentMethods/index.d.ts +15 -0
  621. package/dist/rest/paymentMethods/types.d.ts +15 -0
  622. package/dist/rest/perpetuals/index.d.ts +15 -0
  623. package/dist/rest/perpetuals/index.js +15 -0
  624. package/dist/rest/perpetuals/types.d.ts +15 -0
  625. package/dist/rest/portfolios/index.d.ts +15 -0
  626. package/dist/rest/portfolios/index.js +15 -0
  627. package/dist/rest/portfolios/types.d.ts +15 -0
  628. package/dist/rest/products/index.d.ts +15 -0
  629. package/dist/rest/products/types.d.ts +15 -0
  630. package/dist/rest/public/index.d.ts +15 -0
  631. package/dist/rest/public/types.d.ts +15 -0
  632. package/package.json +12 -14
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
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
+ export declare enum WaivedFeeSource {
21
+ Unspecified = "WAIVED_FEE_SOURCE_UNSPECIFIED",
22
+ TradeIncentive = "WAIVED_FEE_SOURCE_TRADE_INCENTIVE",
23
+ CoinbaseOne = "WAIVED_FEE_SOURCE_COINBASE_ONE",
24
+ FeeReductionBadge = "WAIVED_FEE_SOURCE_FEE_REDUCTION_BADGE",
25
+ TradePromotion = "WAIVED_FEE_SOURCE_TRADE_PROMOTION"
26
+ }
@@ -0,0 +1,30 @@
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-generator
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 });
22
+ exports.WaivedFeeSource = void 0;
23
+ var WaivedFeeSource;
24
+ (function (WaivedFeeSource) {
25
+ WaivedFeeSource["Unspecified"] = "WAIVED_FEE_SOURCE_UNSPECIFIED";
26
+ WaivedFeeSource["TradeIncentive"] = "WAIVED_FEE_SOURCE_TRADE_INCENTIVE";
27
+ WaivedFeeSource["CoinbaseOne"] = "WAIVED_FEE_SOURCE_COINBASE_ONE";
28
+ WaivedFeeSource["FeeReductionBadge"] = "WAIVED_FEE_SOURCE_FEE_REDUCTION_BADGE";
29
+ WaivedFeeSource["TradePromotion"] = "WAIVED_FEE_SOURCE_TRADE_PROMOTION";
30
+ })(WaivedFeeSource || (exports.WaivedFeeSource = WaivedFeeSource = {}));
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { GetAccountRequest, GetAccountResponse, ListAccountsRequest, ListAccountsResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { GetAccountResponse as GetAccountResp } from '../../model/GetAccountResponse';
2
17
  import { GetAccountsResponse } from '../../model/GetAccountsResponse';
3
18
  export type GetAccountRequest = {
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { CreateConvertQuoteRequest, CreateConvertQuoteResponse, CommitConvertTradeRequest, CommitConvertTradeResponse, GetConvertTradeRequest, GetConvertTradeResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ConvertsService = void 0;
13
+ /**
14
+ * Copyright 2024-present Coinbase Global, Inc.
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
13
28
  const core_ts_1 = require("@coinbase-sample/core-ts");
14
29
  class ConvertsService {
15
30
  constructor(client) {
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CreateConvertQuoteResponse as createInt } from '../../model/CreateConvertQuoteResponse';
2
17
  import { CommitConvertTradeResponse as commitInt } from '../../model/CommitConvertTradeResponse';
3
18
  import { GetConvertTradeResponse as getInt } from '../../model/GetConvertTradeResponse';
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.CoinbaseAdvTradeCredentials = void 0;
27
37
  /**
@@ -42,6 +52,71 @@ exports.CoinbaseAdvTradeCredentials = void 0;
42
52
  const constants_1 = require("../../constants");
43
53
  const jwt = __importStar(require("jsonwebtoken"));
44
54
  const crypto = __importStar(require("crypto"));
55
+ /**
56
+ * Supported:
57
+ * - ECDSA P-256 PEM (SEC1 or PKCS8) -> ES256
58
+ * - Ed25519 PEM (PKCS8) -> EdDSA
59
+ * - Ed25519 raw base64, 64 bytes (seed + public) -> EdDSA
60
+ */
61
+ function loadPrivateKey(secret) {
62
+ if (secret.trimStart().startsWith('-----BEGIN')) {
63
+ const key = crypto.createPrivateKey(secret);
64
+ return { key, algorithm: algorithmForKey(key) };
65
+ }
66
+ const raw = Buffer.from(secret.replace(/\s/g, ''), 'base64');
67
+ if (raw.length !== 64) {
68
+ throw new Error('Private key is neither PEM nor a valid 64-byte base64 Ed25519 key ' +
69
+ `(got ${raw.length} bytes). `);
70
+ }
71
+ const key = crypto.createPrivateKey({
72
+ format: 'jwk',
73
+ key: {
74
+ kty: 'OKP',
75
+ crv: 'Ed25519',
76
+ d: raw.subarray(0, 32).toString('base64url'),
77
+ x: raw.subarray(32).toString('base64url'),
78
+ },
79
+ });
80
+ return { key, algorithm: constants_1.ALGORITHM_ED25519 };
81
+ }
82
+ function algorithmForKey(key) {
83
+ var _a;
84
+ switch (key.asymmetricKeyType) {
85
+ case 'ed25519':
86
+ return constants_1.ALGORITHM_ED25519;
87
+ case 'ec':
88
+ return constants_1.ALGORITHM_ECDSA;
89
+ default:
90
+ throw new Error(`Unsupported private key type: ${(_a = key.asymmetricKeyType) !== null && _a !== void 0 ? _a : 'unknown'}. ` +
91
+ 'Expected an ECDSA (P-256) or Ed25519 key.');
92
+ }
93
+ }
94
+ function buildJwt(loaded, accessKey, uri) {
95
+ const now = Math.floor(Date.now() / 1000);
96
+ const payload = {
97
+ iss: constants_1.JWT_ISSUER,
98
+ nbf: now,
99
+ exp: now + 120,
100
+ sub: accessKey,
101
+ uri,
102
+ };
103
+ const header = {
104
+ alg: loaded.algorithm,
105
+ kid: accessKey,
106
+ nonce: crypto.randomBytes(16).toString('hex'),
107
+ };
108
+ if (loaded.algorithm === constants_1.ALGORITHM_ED25519) {
109
+ const encode = (obj) => Buffer.from(JSON.stringify(obj)).toString('base64url');
110
+ const signingInput = `${encode(header)}.${encode(payload)}`;
111
+ const data = new Uint8Array(Buffer.from(signingInput));
112
+ const signature = crypto.sign(null, data, loaded.key);
113
+ return `${signingInput}.${signature.toString('base64url')}`;
114
+ }
115
+ return jwt.sign(payload, loaded.key, {
116
+ algorithm: loaded.algorithm,
117
+ header,
118
+ });
119
+ }
45
120
  class CoinbaseAdvTradeCredentials {
46
121
  constructor(key, secret) {
47
122
  if (!key || !secret) {
@@ -54,26 +129,11 @@ class CoinbaseAdvTradeCredentials {
54
129
  if (!this.secretKey || !this.accessKey) {
55
130
  return {};
56
131
  }
132
+ const loaded = loadPrivateKey(this.secretKey);
57
133
  // Drop protocol and query parameters
58
134
  const jwtUri = `${requestMethod} ${uri.replace('https://', '').replace('http://', '').split('?')[0]}`;
59
- const payload = {
60
- iss: constants_1.JWT_ISSUER,
61
- nbf: Math.floor(Date.now() / 1000),
62
- exp: Math.floor(Date.now() / 1000) + 120,
63
- sub: this.accessKey,
64
- uri: jwtUri,
65
- };
66
- const header = {
67
- alg: constants_1.ALGORITHM,
68
- kid: this.accessKey,
69
- nonce: crypto.randomBytes(16).toString('hex'),
70
- };
71
- const signature = jwt.sign(payload, this.secretKey, {
72
- algorithm: constants_1.ALGORITHM,
73
- header,
74
- });
75
135
  return {
76
- Authorization: `Bearer ${signature}`,
136
+ Authorization: `Bearer ${buildJwt(loaded, this.accessKey, jwtUri)}`,
77
137
  };
78
138
  }
79
139
  }
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { GetAPIKeyPermissionsRequest, GetAPIKeyPermissionsResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { GetApiKeyPermissionsResponse as GetInt } from '../../model/GetApiKeyPermissionsResponse';
2
17
  export type GetAPIKeyPermissionsRequest = Record<string, never>;
3
18
  export type GetAPIKeyPermissionsResponse = GetInt;
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { GetTransactionsSummaryRequest, GetTransactionsSummaryResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { ContractExpiryType } from '../../model/enums/ContractExpiryType';
2
17
  import { ProductType } from '../../model/enums/ProductType';
3
18
  import { ProductVenue } from '../../model/enums/ProductVenue';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { ListFuturesPositionsRequest, ListFuturesPositionsResponse, ListFuturesSweepsRequest, ListFuturesSweepsResponse, GetFuturesPositionRequest, GetFuturesPositionsResponse, GetFuturesBalanceSummaryRequest, GetFuturesBalanceSummaryResponse, GetFuturesCurrentMarginWindowRequest, GetFuturesCurrentMarginWindowResponse, GetFuturesIntradayMarginSettingsRequest, GetFuturesIntradayMarginSettingsResponse, UpdateFuturesIntradayMarginSettingsRequest, UpdateFuturesIntradayMarginSettingsResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesPendingSweepRequest, CancelFuturesPendingSweepResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FuturesService = void 0;
13
+ /**
14
+ * Copyright 2024-present Coinbase Global, Inc.
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
13
28
  const core_ts_1 = require("@coinbase-sample/core-ts");
14
29
  class FuturesService {
15
30
  constructor(client) {
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CancelFCMSweepResponse } from '../../model/CancelFCMSweepResponse';
2
17
  import { IntradayMarginSetting } from '../../model/enums/IntradayMarginSetting';
3
18
  import { MarginProfileType } from '../../model/enums/MarginProfileType';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { ListOrdersRequest, ListOrdersResponse, ListFillsRequest, ListFillsResponse, GetOrderRequest, GetOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, ClosePositionRequest, ClosePositionResponse, CancelOrdersRequest, CancelOrderResponse, EditOrderRequest, EditOrderResponse, EditOrderPreviewRequest, EditOrderPreviewResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OrdersService = void 0;
13
+ /**
14
+ * Copyright 2024-present Coinbase Global, Inc.
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
13
28
  const core_ts_1 = require("@coinbase-sample/core-ts");
14
29
  class OrdersService {
15
30
  constructor(client) {
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { ContractExpiryType } from '../../model/enums/ContractExpiryType';
2
17
  import { OrderPlacementSource } from '../../model/enums/OrderPlacementSource';
3
18
  import { OrderSide } from '../../model/enums/OrderSide';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { GetPaymentMethodRequest, GetPaymentMethodResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { PaymentMethod } from '../../model/PaymentMethod';
2
17
  export type GetPaymentMethodRequest = {
3
18
  paymentMethodId: string;
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { ListPerpetualsPositionsRequest, ListPerpetualsPositionsResponse, GetPerpetualsPortfolioSummaryRequest, GetPerpetualsPortfolioSummaryResponse, GetPerpetualsPortfoliosBalancesRequest, GetPerpetualsPortfoliosBalancesResponse, GetPerpetualsPositionRequest, GetPerpetualsPositionResponse, CreateAllocatePortfolioRequest, CreateAllocatePortfolioResponse, UpdateMultiAssetCollateralRequest, UpdateMultiAssetCollateralResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PerpetualsService = void 0;
13
+ /**
14
+ * Copyright 2024-present Coinbase Global, Inc.
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
13
28
  const core_ts_1 = require("@coinbase-sample/core-ts");
14
29
  class PerpetualsService {
15
30
  constructor(client) {
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { GetPositionsResponse } from '../../model/GetPositionsResponse';
2
17
  import { GetPortfoliosResponse } from '../../model/GetPortfoliosResponse';
3
18
  import { GetPositionResponse } from '../../model/GetPositionResponse';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2024-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
2
17
  import { GetPortfolioRequest, GetPortfolioResponse, ListPortfoliosRequest, ListPortfoliosResponse, CreatePortfolioRequest, CreatePortfolioResponse, DeletePortfolioRequest, DeletePortfolioResponse, EditPortfolioRequest, EditPortfolioResponse, MovePortfolioFundsRequest, MovePortfolioFundsResponse } from './types';
3
18
  import { CoinbaseAdvTradeClient } from '../client';
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PortfoliosService = void 0;
13
+ /**
14
+ * Copyright 2024-present Coinbase Global, Inc.
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
13
28
  const core_ts_1 = require("@coinbase-sample/core-ts");
14
29
  class PortfoliosService {
15
30
  constructor(client) {