@brokerize/client 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/README.md +89 -0
  2. package/dist/apiCtx.d.ts +71 -0
  3. package/dist/apiCtx.js +86 -0
  4. package/dist/authorizedApiContext.d.ts +137 -0
  5. package/dist/authorizedApiContext.js +407 -0
  6. package/dist/client.d.ts +13144 -0
  7. package/dist/dependencyDefinitions/abortController.d.ts +16 -0
  8. package/dist/dependencyDefinitions/abortController.js +2 -0
  9. package/dist/dependencyDefinitions/abortSignal.d.ts +13 -0
  10. package/dist/dependencyDefinitions/abortSignal.js +2 -0
  11. package/dist/dependencyDefinitions/fetch.d.ts +160 -0
  12. package/dist/dependencyDefinitions/fetch.js +2 -0
  13. package/dist/dependencyDefinitions/readableStream.d.ts +68 -0
  14. package/dist/dependencyDefinitions/readableStream.js +1 -0
  15. package/dist/dependencyDefinitions/textDecoder.d.ts +39 -0
  16. package/dist/dependencyDefinitions/textDecoder.js +1 -0
  17. package/dist/dependencyDefinitions/webSocket.d.ts +182 -0
  18. package/dist/dependencyDefinitions/webSocket.js +2 -0
  19. package/dist/dependencyDefinitions/xmlHttpRequest.d.ts +245 -0
  20. package/dist/dependencyDefinitions/xmlHttpRequest.js +2 -0
  21. package/dist/errors.d.ts +67 -0
  22. package/dist/errors.js +25 -0
  23. package/dist/index.d.ts +41 -0
  24. package/dist/index.js +101 -0
  25. package/dist/modelExports.d.ts +154 -0
  26. package/dist/modelExports.js +21 -0
  27. package/dist/pollingSubscription.d.ts +14 -0
  28. package/dist/pollingSubscription.js +53 -0
  29. package/dist/swagger/apis/AdminApi.d.ts +129 -0
  30. package/dist/swagger/apis/AdminApi.js +389 -0
  31. package/dist/swagger/apis/BrokerLoginApi.d.ts +59 -0
  32. package/dist/swagger/apis/BrokerLoginApi.js +169 -0
  33. package/dist/swagger/apis/CancelOrderApi.d.ts +41 -0
  34. package/dist/swagger/apis/CancelOrderApi.js +100 -0
  35. package/dist/swagger/apis/ChangeOrderApi.d.ts +53 -0
  36. package/dist/swagger/apis/ChangeOrderApi.js +141 -0
  37. package/dist/swagger/apis/DefaultApi.d.ts +228 -0
  38. package/dist/swagger/apis/DefaultApi.js +787 -0
  39. package/dist/swagger/apis/DemobrokerApi.d.ts +58 -0
  40. package/dist/swagger/apis/DemobrokerApi.js +157 -0
  41. package/dist/swagger/apis/ExportApi.d.ts +28 -0
  42. package/dist/swagger/apis/ExportApi.js +57 -0
  43. package/dist/swagger/apis/MetaApi.d.ts +53 -0
  44. package/dist/swagger/apis/MetaApi.js +128 -0
  45. package/dist/swagger/apis/SecuritiesApi.d.ts +39 -0
  46. package/dist/swagger/apis/SecuritiesApi.js +91 -0
  47. package/dist/swagger/apis/TradeApi.d.ts +98 -0
  48. package/dist/swagger/apis/TradeApi.js +312 -0
  49. package/dist/swagger/apis/TradeDraftApi.d.ts +74 -0
  50. package/dist/swagger/apis/TradeDraftApi.js +203 -0
  51. package/dist/swagger/apis/UserApi.d.ts +51 -0
  52. package/dist/swagger/apis/UserApi.js +152 -0
  53. package/dist/swagger/apis/index.d.ts +12 -0
  54. package/dist/swagger/apis/index.js +14 -0
  55. package/dist/swagger/index.d.ts +3 -0
  56. package/dist/swagger/index.js +5 -0
  57. package/dist/swagger/models/AccessTokenItem.d.ts +45 -0
  58. package/dist/swagger/models/AccessTokenItem.js +43 -0
  59. package/dist/swagger/models/AccessTokenResult.d.ts +33 -0
  60. package/dist/swagger/models/AccessTokenResult.js +39 -0
  61. package/dist/swagger/models/AddOAuthReturnToUrlRequest.d.ts +27 -0
  62. package/dist/swagger/models/AddOAuthReturnToUrlRequest.js +37 -0
  63. package/dist/swagger/models/AddOriginRequest.d.ts +27 -0
  64. package/dist/swagger/models/AddOriginRequest.js +37 -0
  65. package/dist/swagger/models/AddSessionCompleteChallengeParams.d.ts +33 -0
  66. package/dist/swagger/models/AddSessionCompleteChallengeParams.js +39 -0
  67. package/dist/swagger/models/AddSessionParams.d.ts +45 -0
  68. package/dist/swagger/models/AddSessionParams.js +43 -0
  69. package/dist/swagger/models/Amount.d.ts +72 -0
  70. package/dist/swagger/models/Amount.js +50 -0
  71. package/dist/swagger/models/AuthInfo.d.ts +54 -0
  72. package/dist/swagger/models/AuthInfo.js +53 -0
  73. package/dist/swagger/models/AuthMethod.d.ts +28 -0
  74. package/dist/swagger/models/AuthMethod.js +51 -0
  75. package/dist/swagger/models/AuthMethodChallengeResponse.d.ts +94 -0
  76. package/dist/swagger/models/AuthMethodChallengeResponse.js +68 -0
  77. package/dist/swagger/models/AuthMethodChallengeResponseAllOf.d.ts +34 -0
  78. package/dist/swagger/models/AuthMethodChallengeResponseAllOf.js +44 -0
  79. package/dist/swagger/models/AuthMethodChallengeResponseSpecifics.d.ts +70 -0
  80. package/dist/swagger/models/AuthMethodChallengeResponseSpecifics.js +64 -0
  81. package/dist/swagger/models/AuthMethodDecoupled.d.ts +62 -0
  82. package/dist/swagger/models/AuthMethodDecoupled.js +56 -0
  83. package/dist/swagger/models/AuthMethodDecoupledAllOf.d.ts +34 -0
  84. package/dist/swagger/models/AuthMethodDecoupledAllOf.js +44 -0
  85. package/dist/swagger/models/AuthMethodDecoupledSpecifics.d.ts +46 -0
  86. package/dist/swagger/models/AuthMethodDecoupledSpecifics.js +48 -0
  87. package/dist/swagger/models/AuthMethodFlow.d.ts +23 -0
  88. package/dist/swagger/models/AuthMethodFlow.js +30 -0
  89. package/dist/swagger/models/AuthMethodTan.d.ts +67 -0
  90. package/dist/swagger/models/AuthMethodTan.js +58 -0
  91. package/dist/swagger/models/AuthMethodTanAllOf.d.ts +34 -0
  92. package/dist/swagger/models/AuthMethodTanAllOf.js +44 -0
  93. package/dist/swagger/models/AuthMethodTanSpecifics.d.ts +52 -0
  94. package/dist/swagger/models/AuthMethodTanSpecifics.js +52 -0
  95. package/dist/swagger/models/AvailablePermissionsNode.d.ts +39 -0
  96. package/dist/swagger/models/AvailablePermissionsNode.js +46 -0
  97. package/dist/swagger/models/BitpandaClientCfg.d.ts +33 -0
  98. package/dist/swagger/models/BitpandaClientCfg.js +44 -0
  99. package/dist/swagger/models/BrokerClientCfg.d.ts +28 -0
  100. package/dist/swagger/models/BrokerClientCfg.js +41 -0
  101. package/dist/swagger/models/BrokerEnvFilterType.d.ts +24 -0
  102. package/dist/swagger/models/BrokerEnvFilterType.js +31 -0
  103. package/dist/swagger/models/BrokerEnvironment.d.ts +39 -0
  104. package/dist/swagger/models/BrokerEnvironment.js +41 -0
  105. package/dist/swagger/models/BrokerLoginForm.d.ts +34 -0
  106. package/dist/swagger/models/BrokerLoginForm.js +40 -0
  107. package/dist/swagger/models/BrokerLoginFormField.d.ts +41 -0
  108. package/dist/swagger/models/BrokerLoginFormField.js +46 -0
  109. package/dist/swagger/models/BrokerMeta.d.ts +74 -0
  110. package/dist/swagger/models/BrokerMeta.js +60 -0
  111. package/dist/swagger/models/BrokerMetaFeatures.d.ts +53 -0
  112. package/dist/swagger/models/BrokerMetaFeatures.js +55 -0
  113. package/dist/swagger/models/BrokerMetaImages.d.ts +45 -0
  114. package/dist/swagger/models/BrokerMetaImages.js +43 -0
  115. package/dist/swagger/models/CancelOrderChallengeParams.d.ts +27 -0
  116. package/dist/swagger/models/CancelOrderChallengeParams.js +37 -0
  117. package/dist/swagger/models/CancelOrderChallengeResponse.d.ts +52 -0
  118. package/dist/swagger/models/CancelOrderChallengeResponse.js +50 -0
  119. package/dist/swagger/models/CancelOrderChallengeResponseAllOf.d.ts +34 -0
  120. package/dist/swagger/models/CancelOrderChallengeResponseAllOf.js +44 -0
  121. package/dist/swagger/models/CancelOrderChallengeResponseSpecifics.d.ts +39 -0
  122. package/dist/swagger/models/CancelOrderChallengeResponseSpecifics.js +44 -0
  123. package/dist/swagger/models/CancelOrderParams.d.ts +25 -0
  124. package/dist/swagger/models/CancelOrderParams.js +46 -0
  125. package/dist/swagger/models/CancelOrderParamsMode.d.ts +22 -0
  126. package/dist/swagger/models/CancelOrderParamsMode.js +29 -0
  127. package/dist/swagger/models/CashAccount.d.ts +51 -0
  128. package/dist/swagger/models/CashAccount.js +43 -0
  129. package/dist/swagger/models/CashAccountQuotes.d.ts +40 -0
  130. package/dist/swagger/models/CashAccountQuotes.js +49 -0
  131. package/dist/swagger/models/CashQuotation.d.ts +27 -0
  132. package/dist/swagger/models/CashQuotation.js +34 -0
  133. package/dist/swagger/models/Challenge.d.ts +53 -0
  134. package/dist/swagger/models/Challenge.js +53 -0
  135. package/dist/swagger/models/ChangeOrderChallengeParams.d.ts +34 -0
  136. package/dist/swagger/models/ChangeOrderChallengeParams.js +40 -0
  137. package/dist/swagger/models/ChangeOrderParams.d.ts +46 -0
  138. package/dist/swagger/models/ChangeOrderParams.js +47 -0
  139. package/dist/swagger/models/ClientConfig.d.ts +117 -0
  140. package/dist/swagger/models/ClientConfig.js +80 -0
  141. package/dist/swagger/models/ClientConfigMaintenanceStatus.d.ts +33 -0
  142. package/dist/swagger/models/ClientConfigMaintenanceStatus.js +44 -0
  143. package/dist/swagger/models/ClientConfigUpdate.d.ts +150 -0
  144. package/dist/swagger/models/ClientConfigUpdate.js +121 -0
  145. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +69 -0
  146. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.js +68 -0
  147. package/dist/swagger/models/ClientConfigUpdatePage.d.ts +51 -0
  148. package/dist/swagger/models/ClientConfigUpdatePage.js +48 -0
  149. package/dist/swagger/models/ClientConfigUpdateRateLimitPointsToConsume.d.ts +33 -0
  150. package/dist/swagger/models/ClientConfigUpdateRateLimitPointsToConsume.js +42 -0
  151. package/dist/swagger/models/ClientsResponseInner.d.ts +40 -0
  152. package/dist/swagger/models/ClientsResponseInner.js +42 -0
  153. package/dist/swagger/models/ConfirmOAuthParams.d.ts +33 -0
  154. package/dist/swagger/models/ConfirmOAuthParams.js +39 -0
  155. package/dist/swagger/models/ConfirmOAuthResponse.d.ts +27 -0
  156. package/dist/swagger/models/ConfirmOAuthResponse.js +37 -0
  157. package/dist/swagger/models/CostDetailsLink.d.ts +39 -0
  158. package/dist/swagger/models/CostDetailsLink.js +42 -0
  159. package/dist/swagger/models/CreateAccessTokenParams.d.ts +44 -0
  160. package/dist/swagger/models/CreateAccessTokenParams.js +41 -0
  161. package/dist/swagger/models/CreateClient200Response.d.ts +33 -0
  162. package/dist/swagger/models/CreateClient200Response.js +39 -0
  163. package/dist/swagger/models/CreateGuestUserResponse.d.ts +59 -0
  164. package/dist/swagger/models/CreateGuestUserResponse.js +52 -0
  165. package/dist/swagger/models/CreateModeSessionTan.d.ts +34 -0
  166. package/dist/swagger/models/CreateModeSessionTan.js +43 -0
  167. package/dist/swagger/models/CreateModeSessionTanAllOf.d.ts +34 -0
  168. package/dist/swagger/models/CreateModeSessionTanAllOf.js +44 -0
  169. package/dist/swagger/models/CreateOrderChallengeParams.d.ts +41 -0
  170. package/dist/swagger/models/CreateOrderChallengeParams.js +45 -0
  171. package/dist/swagger/models/CreateOrderParams.d.ts +53 -0
  172. package/dist/swagger/models/CreateOrderParams.js +51 -0
  173. package/dist/swagger/models/CreateTanChallengeParams.d.ts +27 -0
  174. package/dist/swagger/models/CreateTanChallengeParams.js +37 -0
  175. package/dist/swagger/models/CreateTradeDrafts200Response.d.ts +27 -0
  176. package/dist/swagger/models/CreateTradeDrafts200Response.js +37 -0
  177. package/dist/swagger/models/CreateTradeResponse.d.ts +27 -0
  178. package/dist/swagger/models/CreateTradeResponse.js +38 -0
  179. package/dist/swagger/models/CreatedResponseBody.d.ts +33 -0
  180. package/dist/swagger/models/CreatedResponseBody.js +39 -0
  181. package/dist/swagger/models/DecoupledOperationState.d.ts +24 -0
  182. package/dist/swagger/models/DecoupledOperationState.js +31 -0
  183. package/dist/swagger/models/DecoupledOperationStatus.d.ts +34 -0
  184. package/dist/swagger/models/DecoupledOperationStatus.js +41 -0
  185. package/dist/swagger/models/DefaultOrderValidityByOrderModel.d.ts +94 -0
  186. package/dist/swagger/models/DefaultOrderValidityByOrderModel.js +85 -0
  187. package/dist/swagger/models/DemoAccount.d.ts +40 -0
  188. package/dist/swagger/models/DemoAccount.js +42 -0
  189. package/dist/swagger/models/DemoAccountSettings.d.ts +51 -0
  190. package/dist/swagger/models/DemoAccountSettings.js +50 -0
  191. package/dist/swagger/models/DemoAccountsResponse.d.ts +28 -0
  192. package/dist/swagger/models/DemoAccountsResponse.js +38 -0
  193. package/dist/swagger/models/Direction.d.ts +22 -0
  194. package/dist/swagger/models/Direction.js +29 -0
  195. package/dist/swagger/models/EnableSessionTanParams.d.ts +28 -0
  196. package/dist/swagger/models/EnableSessionTanParams.js +51 -0
  197. package/dist/swagger/models/EnableSessionTanParamsChallengeResponse.d.ts +52 -0
  198. package/dist/swagger/models/EnableSessionTanParamsChallengeResponse.js +49 -0
  199. package/dist/swagger/models/EnableSessionTanParamsChallengeResponseAllOf.d.ts +34 -0
  200. package/dist/swagger/models/EnableSessionTanParamsChallengeResponseAllOf.js +44 -0
  201. package/dist/swagger/models/EnableSessionTanParamsChallengeResponseSpecifics.d.ts +39 -0
  202. package/dist/swagger/models/EnableSessionTanParamsChallengeResponseSpecifics.js +44 -0
  203. package/dist/swagger/models/EnableSessionTanParamsDecoupled.d.ts +40 -0
  204. package/dist/swagger/models/EnableSessionTanParamsDecoupled.js +45 -0
  205. package/dist/swagger/models/EnableSessionTanParamsDecoupledAllOf.d.ts +34 -0
  206. package/dist/swagger/models/EnableSessionTanParamsDecoupledAllOf.js +44 -0
  207. package/dist/swagger/models/EnableSessionTanParamsDecoupledSpecifics.d.ts +27 -0
  208. package/dist/swagger/models/EnableSessionTanParamsDecoupledSpecifics.js +38 -0
  209. package/dist/swagger/models/EnableSessionTanParamsKind.d.ts +23 -0
  210. package/dist/swagger/models/EnableSessionTanParamsKind.js +30 -0
  211. package/dist/swagger/models/EnableSessionTanParamsTan.d.ts +46 -0
  212. package/dist/swagger/models/EnableSessionTanParamsTan.js +47 -0
  213. package/dist/swagger/models/EnableSessionTanParamsTanAllOf.d.ts +34 -0
  214. package/dist/swagger/models/EnableSessionTanParamsTanAllOf.js +44 -0
  215. package/dist/swagger/models/EnableSessionTanParamsTanSpecifics.d.ts +33 -0
  216. package/dist/swagger/models/EnableSessionTanParamsTanSpecifics.js +40 -0
  217. package/dist/swagger/models/EnableSessionTanResponse.d.ts +33 -0
  218. package/dist/swagger/models/EnableSessionTanResponse.js +42 -0
  219. package/dist/swagger/models/EnableSessionTanResponseAnyOf.d.ts +27 -0
  220. package/dist/swagger/models/EnableSessionTanResponseAnyOf.js +40 -0
  221. package/dist/swagger/models/EndSessionTanResponse.d.ts +27 -0
  222. package/dist/swagger/models/EndSessionTanResponse.js +38 -0
  223. package/dist/swagger/models/ErrorResponse.d.ts +68 -0
  224. package/dist/swagger/models/ErrorResponse.js +59 -0
  225. package/dist/swagger/models/EstimateChangeOrderCostsParams.d.ts +28 -0
  226. package/dist/swagger/models/EstimateChangeOrderCostsParams.js +38 -0
  227. package/dist/swagger/models/Exchange.d.ts +127 -0
  228. package/dist/swagger/models/Exchange.js +89 -0
  229. package/dist/swagger/models/ExchangeMeta.d.ts +33 -0
  230. package/dist/swagger/models/ExchangeMeta.js +39 -0
  231. package/dist/swagger/models/ExchangesResponse.d.ts +28 -0
  232. package/dist/swagger/models/ExchangesResponse.js +38 -0
  233. package/dist/swagger/models/GenericTable.d.ts +41 -0
  234. package/dist/swagger/models/GenericTable.js +50 -0
  235. package/dist/swagger/models/GenericTableRow.d.ts +28 -0
  236. package/dist/swagger/models/GenericTableRow.js +51 -0
  237. package/dist/swagger/models/GenericTableRowEntry.d.ts +59 -0
  238. package/dist/swagger/models/GenericTableRowEntry.js +55 -0
  239. package/dist/swagger/models/GenericTableRowEntryAllOf.d.ts +34 -0
  240. package/dist/swagger/models/GenericTableRowEntryAllOf.js +44 -0
  241. package/dist/swagger/models/GenericTableRowEntrySpecifics.d.ts +46 -0
  242. package/dist/swagger/models/GenericTableRowEntrySpecifics.js +47 -0
  243. package/dist/swagger/models/GenericTableRowSubheading.d.ts +40 -0
  244. package/dist/swagger/models/GenericTableRowSubheading.js +45 -0
  245. package/dist/swagger/models/GenericTableRowSubheadingAllOf.d.ts +34 -0
  246. package/dist/swagger/models/GenericTableRowSubheadingAllOf.js +44 -0
  247. package/dist/swagger/models/GenericTableRowSubheadingSpecifics.d.ts +27 -0
  248. package/dist/swagger/models/GenericTableRowSubheadingSpecifics.js +38 -0
  249. package/dist/swagger/models/GenericTableRowText.d.ts +40 -0
  250. package/dist/swagger/models/GenericTableRowText.js +45 -0
  251. package/dist/swagger/models/GenericTableRowTextAllOf.d.ts +34 -0
  252. package/dist/swagger/models/GenericTableRowTextAllOf.js +44 -0
  253. package/dist/swagger/models/GenericTableRowTextSpecifics.d.ts +27 -0
  254. package/dist/swagger/models/GenericTableRowTextSpecifics.js +38 -0
  255. package/dist/swagger/models/GenericTableRowType.d.ts +23 -0
  256. package/dist/swagger/models/GenericTableRowType.js +30 -0
  257. package/dist/swagger/models/GenericTableRowValue.d.ts +31 -0
  258. package/dist/swagger/models/GenericTableRowValue.js +56 -0
  259. package/dist/swagger/models/GenericTableRowValueAmount.d.ts +41 -0
  260. package/dist/swagger/models/GenericTableRowValueAmount.js +46 -0
  261. package/dist/swagger/models/GenericTableRowValueAmountAllOf.d.ts +34 -0
  262. package/dist/swagger/models/GenericTableRowValueAmountAllOf.js +44 -0
  263. package/dist/swagger/models/GenericTableRowValueAmountSpecifics.d.ts +28 -0
  264. package/dist/swagger/models/GenericTableRowValueAmountSpecifics.js +39 -0
  265. package/dist/swagger/models/GenericTableRowValueDatetime.d.ts +40 -0
  266. package/dist/swagger/models/GenericTableRowValueDatetime.js +45 -0
  267. package/dist/swagger/models/GenericTableRowValueDatetimeAllOf.d.ts +34 -0
  268. package/dist/swagger/models/GenericTableRowValueDatetimeAllOf.js +44 -0
  269. package/dist/swagger/models/GenericTableRowValueDatetimeSpecifics.d.ts +27 -0
  270. package/dist/swagger/models/GenericTableRowValueDatetimeSpecifics.js +38 -0
  271. package/dist/swagger/models/GenericTableRowValueLink.d.ts +41 -0
  272. package/dist/swagger/models/GenericTableRowValueLink.js +46 -0
  273. package/dist/swagger/models/GenericTableRowValueLinkAllOf.d.ts +34 -0
  274. package/dist/swagger/models/GenericTableRowValueLinkAllOf.js +44 -0
  275. package/dist/swagger/models/GenericTableRowValueLinkPortfolio.d.ts +46 -0
  276. package/dist/swagger/models/GenericTableRowValueLinkPortfolio.js +47 -0
  277. package/dist/swagger/models/GenericTableRowValueLinkPortfolioAllOf.d.ts +34 -0
  278. package/dist/swagger/models/GenericTableRowValueLinkPortfolioAllOf.js +44 -0
  279. package/dist/swagger/models/GenericTableRowValueLinkPortfolioSpecifics.d.ts +33 -0
  280. package/dist/swagger/models/GenericTableRowValueLinkPortfolioSpecifics.js +40 -0
  281. package/dist/swagger/models/GenericTableRowValueLinkSpecifics.d.ts +28 -0
  282. package/dist/swagger/models/GenericTableRowValueLinkSpecifics.js +41 -0
  283. package/dist/swagger/models/GenericTableRowValueLinkUrl.d.ts +46 -0
  284. package/dist/swagger/models/GenericTableRowValueLinkUrl.js +47 -0
  285. package/dist/swagger/models/GenericTableRowValueLinkUrlAllOf.d.ts +34 -0
  286. package/dist/swagger/models/GenericTableRowValueLinkUrlAllOf.js +44 -0
  287. package/dist/swagger/models/GenericTableRowValueLinkUrlSpecifics.d.ts +33 -0
  288. package/dist/swagger/models/GenericTableRowValueLinkUrlSpecifics.js +40 -0
  289. package/dist/swagger/models/GenericTableRowValueLinkValue.d.ts +25 -0
  290. package/dist/swagger/models/GenericTableRowValueLinkValue.js +46 -0
  291. package/dist/swagger/models/GenericTableRowValueLinkValueType.d.ts +22 -0
  292. package/dist/swagger/models/GenericTableRowValueLinkValueType.js +29 -0
  293. package/dist/swagger/models/GenericTableRowValueText.d.ts +40 -0
  294. package/dist/swagger/models/GenericTableRowValueText.js +45 -0
  295. package/dist/swagger/models/GenericTableRowValueTextSpecifics.d.ts +27 -0
  296. package/dist/swagger/models/GenericTableRowValueTextSpecifics.js +38 -0
  297. package/dist/swagger/models/GenericTableRowValueType.d.ts +24 -0
  298. package/dist/swagger/models/GenericTableRowValueType.js +31 -0
  299. package/dist/swagger/models/GetAccessTokensResponse.d.ts +28 -0
  300. package/dist/swagger/models/GetAccessTokensResponse.js +38 -0
  301. package/dist/swagger/models/GetAcessTokenAvailablePermissions200Response.d.ts +28 -0
  302. package/dist/swagger/models/GetAcessTokenAvailablePermissions200Response.js +38 -0
  303. package/dist/swagger/models/GetActiveTradeDraftsResponse.d.ts +34 -0
  304. package/dist/swagger/models/GetActiveTradeDraftsResponse.js +40 -0
  305. package/dist/swagger/models/GetAuthInfoResponse.d.ts +28 -0
  306. package/dist/swagger/models/GetAuthInfoResponse.js +38 -0
  307. package/dist/swagger/models/GetBrokersResponse.d.ts +28 -0
  308. package/dist/swagger/models/GetBrokersResponse.js +38 -0
  309. package/dist/swagger/models/GetCostEstimationParams.d.ts +28 -0
  310. package/dist/swagger/models/GetCostEstimationParams.js +38 -0
  311. package/dist/swagger/models/GetOrderResponse.d.ts +28 -0
  312. package/dist/swagger/models/GetOrderResponse.js +38 -0
  313. package/dist/swagger/models/GetPortfolioOrdersResponse.d.ts +34 -0
  314. package/dist/swagger/models/GetPortfolioOrdersResponse.js +40 -0
  315. package/dist/swagger/models/GetPortfolioPositionsResponse.d.ts +28 -0
  316. package/dist/swagger/models/GetPortfolioPositionsResponse.js +38 -0
  317. package/dist/swagger/models/GetPortfolioQuotesResponse.d.ts +43 -0
  318. package/dist/swagger/models/GetPortfolioQuotesResponse.js +52 -0
  319. package/dist/swagger/models/GetQuoteParams.d.ts +67 -0
  320. package/dist/swagger/models/GetQuoteParams.js +55 -0
  321. package/dist/swagger/models/GetQuoteResponse.d.ts +86 -0
  322. package/dist/swagger/models/GetQuoteResponse.js +68 -0
  323. package/dist/swagger/models/GetUserResponse.d.ts +27 -0
  324. package/dist/swagger/models/GetUserResponse.js +37 -0
  325. package/dist/swagger/models/GuestUserLifetime.d.ts +22 -0
  326. package/dist/swagger/models/GuestUserLifetime.js +29 -0
  327. package/dist/swagger/models/Hint.d.ts +33 -0
  328. package/dist/swagger/models/Hint.js +39 -0
  329. package/dist/swagger/models/LegalTermConfirmItem.d.ts +33 -0
  330. package/dist/swagger/models/LegalTermConfirmItem.js +39 -0
  331. package/dist/swagger/models/LegalTermsResponse.d.ts +41 -0
  332. package/dist/swagger/models/LegalTermsResponse.js +42 -0
  333. package/dist/swagger/models/LoginResponse.d.ts +25 -0
  334. package/dist/swagger/models/LoginResponse.js +46 -0
  335. package/dist/swagger/models/LoginResponseChallenge.d.ts +41 -0
  336. package/dist/swagger/models/LoginResponseChallenge.js +46 -0
  337. package/dist/swagger/models/LoginResponseChallengeAllOf.d.ts +34 -0
  338. package/dist/swagger/models/LoginResponseChallengeAllOf.js +44 -0
  339. package/dist/swagger/models/LoginResponseChallengeSpecifics.d.ts +28 -0
  340. package/dist/swagger/models/LoginResponseChallengeSpecifics.js +41 -0
  341. package/dist/swagger/models/LoginResponseReady.d.ts +40 -0
  342. package/dist/swagger/models/LoginResponseReady.js +45 -0
  343. package/dist/swagger/models/LoginResponseReadyAllOf.d.ts +34 -0
  344. package/dist/swagger/models/LoginResponseReadyAllOf.js +44 -0
  345. package/dist/swagger/models/LoginResponseReadySpecifics.d.ts +27 -0
  346. package/dist/swagger/models/LoginResponseReadySpecifics.js +38 -0
  347. package/dist/swagger/models/LoginResponseState.d.ts +22 -0
  348. package/dist/swagger/models/LoginResponseState.js +29 -0
  349. package/dist/swagger/models/MaintenanceStatus.d.ts +33 -0
  350. package/dist/swagger/models/MaintenanceStatus.js +44 -0
  351. package/dist/swagger/models/OAuthLoginFormConfig.d.ts +69 -0
  352. package/dist/swagger/models/OAuthLoginFormConfig.js +68 -0
  353. package/dist/swagger/models/ObtainToken200Response.d.ts +51 -0
  354. package/dist/swagger/models/ObtainToken200Response.js +45 -0
  355. package/dist/swagger/models/OkResponseBody.d.ts +27 -0
  356. package/dist/swagger/models/OkResponseBody.js +37 -0
  357. package/dist/swagger/models/Order.d.ts +415 -0
  358. package/dist/swagger/models/Order.js +246 -0
  359. package/dist/swagger/models/OrderChanges.d.ts +92 -0
  360. package/dist/swagger/models/OrderChanges.js +67 -0
  361. package/dist/swagger/models/OrderCostEstimation.d.ts +80 -0
  362. package/dist/swagger/models/OrderCostEstimation.js +75 -0
  363. package/dist/swagger/models/OrderCreate.d.ts +209 -0
  364. package/dist/swagger/models/OrderCreate.js +119 -0
  365. package/dist/swagger/models/OrderExecution.d.ts +82 -0
  366. package/dist/swagger/models/OrderExecution.js +69 -0
  367. package/dist/swagger/models/OrderExtension.d.ts +29 -0
  368. package/dist/swagger/models/OrderExtension.js +36 -0
  369. package/dist/swagger/models/OrderIntent.d.ts +23 -0
  370. package/dist/swagger/models/OrderIntent.js +30 -0
  371. package/dist/swagger/models/OrderIntentAvailability.d.ts +34 -0
  372. package/dist/swagger/models/OrderIntentAvailability.js +40 -0
  373. package/dist/swagger/models/OrderModel.d.ts +34 -0
  374. package/dist/swagger/models/OrderModel.js +41 -0
  375. package/dist/swagger/models/OrderStatus.d.ts +25 -0
  376. package/dist/swagger/models/OrderStatus.js +32 -0
  377. package/dist/swagger/models/OrderValidity.d.ts +41 -0
  378. package/dist/swagger/models/OrderValidity.js +43 -0
  379. package/dist/swagger/models/OrderValidityType.d.ts +34 -0
  380. package/dist/swagger/models/OrderValidityType.js +41 -0
  381. package/dist/swagger/models/OrderValidityTypeByOrderModel.d.ts +94 -0
  382. package/dist/swagger/models/OrderValidityTypeByOrderModel.js +109 -0
  383. package/dist/swagger/models/PageConfig.d.ts +51 -0
  384. package/dist/swagger/models/PageConfig.js +48 -0
  385. package/dist/swagger/models/PagesConfigurationResponse.d.ts +33 -0
  386. package/dist/swagger/models/PagesConfigurationResponse.js +39 -0
  387. package/dist/swagger/models/Portfolio.d.ts +87 -0
  388. package/dist/swagger/models/Portfolio.js +54 -0
  389. package/dist/swagger/models/PortfolioQuotes.d.ts +70 -0
  390. package/dist/swagger/models/PortfolioQuotes.js +69 -0
  391. package/dist/swagger/models/PortfolioSyncInfo.d.ts +31 -0
  392. package/dist/swagger/models/PortfolioSyncInfo.js +56 -0
  393. package/dist/swagger/models/PortfolioSyncInfoComplete.d.ts +40 -0
  394. package/dist/swagger/models/PortfolioSyncInfoComplete.js +45 -0
  395. package/dist/swagger/models/PortfolioSyncInfoCompleteAllOf.d.ts +34 -0
  396. package/dist/swagger/models/PortfolioSyncInfoCompleteAllOf.js +44 -0
  397. package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +27 -0
  398. package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +40 -0
  399. package/dist/swagger/models/PortfolioSyncInfoError.d.ts +41 -0
  400. package/dist/swagger/models/PortfolioSyncInfoError.js +46 -0
  401. package/dist/swagger/models/PortfolioSyncInfoErrorAllOf.d.ts +34 -0
  402. package/dist/swagger/models/PortfolioSyncInfoErrorAllOf.js +44 -0
  403. package/dist/swagger/models/PortfolioSyncInfoErrorSpecifics.d.ts +28 -0
  404. package/dist/swagger/models/PortfolioSyncInfoErrorSpecifics.js +41 -0
  405. package/dist/swagger/models/PortfolioSyncInfoIncomplete.d.ts +40 -0
  406. package/dist/swagger/models/PortfolioSyncInfoIncomplete.js +45 -0
  407. package/dist/swagger/models/PortfolioSyncInfoIncompleteAllOf.d.ts +34 -0
  408. package/dist/swagger/models/PortfolioSyncInfoIncompleteAllOf.js +44 -0
  409. package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +27 -0
  410. package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +40 -0
  411. package/dist/swagger/models/PortfolioSyncInfoPending.d.ts +34 -0
  412. package/dist/swagger/models/PortfolioSyncInfoPending.js +43 -0
  413. package/dist/swagger/models/PortfolioSyncInfoPendingAllOf.d.ts +34 -0
  414. package/dist/swagger/models/PortfolioSyncInfoPendingAllOf.js +44 -0
  415. package/dist/swagger/models/PortfolioSyncInfoStatus.d.ts +24 -0
  416. package/dist/swagger/models/PortfolioSyncInfoStatus.js +31 -0
  417. package/dist/swagger/models/PortfoliosResponse.d.ts +35 -0
  418. package/dist/swagger/models/PortfoliosResponse.js +41 -0
  419. package/dist/swagger/models/Position.d.ts +182 -0
  420. package/dist/swagger/models/Position.js +124 -0
  421. package/dist/swagger/models/PositionValuation.d.ts +46 -0
  422. package/dist/swagger/models/PositionValuation.js +49 -0
  423. package/dist/swagger/models/PrepareOAuthRedirectParams.d.ts +39 -0
  424. package/dist/swagger/models/PrepareOAuthRedirectParams.js +41 -0
  425. package/dist/swagger/models/PrepareOAuthRedirectResponse.d.ts +27 -0
  426. package/dist/swagger/models/PrepareOAuthRedirectResponse.js +37 -0
  427. package/dist/swagger/models/PrepareTradeResponse.d.ts +28 -0
  428. package/dist/swagger/models/PrepareTradeResponse.js +38 -0
  429. package/dist/swagger/models/PreparedTrade.d.ts +154 -0
  430. package/dist/swagger/models/PreparedTrade.js +103 -0
  431. package/dist/swagger/models/QuoteExpiration.d.ts +41 -0
  432. package/dist/swagger/models/QuoteExpiration.js +41 -0
  433. package/dist/swagger/models/RenamePortfolioRequest.d.ts +27 -0
  434. package/dist/swagger/models/RenamePortfolioRequest.js +37 -0
  435. package/dist/swagger/models/RenderGenericTableParams.d.ts +28 -0
  436. package/dist/swagger/models/RenderGenericTableParams.js +38 -0
  437. package/dist/swagger/models/RiskClassInfo.d.ts +40 -0
  438. package/dist/swagger/models/RiskClassInfo.js +44 -0
  439. package/dist/swagger/models/Security.d.ts +99 -0
  440. package/dist/swagger/models/Security.js +64 -0
  441. package/dist/swagger/models/SecurityDetailedInfo.d.ts +34 -0
  442. package/dist/swagger/models/SecurityDetailedInfo.js +39 -0
  443. package/dist/swagger/models/SecurityQuote.d.ts +33 -0
  444. package/dist/swagger/models/SecurityQuote.js +40 -0
  445. package/dist/swagger/models/SecurityQuotes.d.ts +34 -0
  446. package/dist/swagger/models/SecurityQuotes.js +41 -0
  447. package/dist/swagger/models/SecurityQuotesMeta.d.ts +39 -0
  448. package/dist/swagger/models/SecurityQuotesMeta.js +41 -0
  449. package/dist/swagger/models/SecurityQuotesResponse.d.ts +28 -0
  450. package/dist/swagger/models/SecurityQuotesResponse.js +38 -0
  451. package/dist/swagger/models/SecuritySelector.d.ts +57 -0
  452. package/dist/swagger/models/SecuritySelector.js +48 -0
  453. package/dist/swagger/models/SellPosition.d.ts +33 -0
  454. package/dist/swagger/models/SellPosition.js +39 -0
  455. package/dist/swagger/models/Session.d.ts +67 -0
  456. package/dist/swagger/models/Session.js +61 -0
  457. package/dist/swagger/models/SessionResponse.d.ts +28 -0
  458. package/dist/swagger/models/SessionResponse.js +38 -0
  459. package/dist/swagger/models/SessionSyncInfo.d.ts +28 -0
  460. package/dist/swagger/models/SessionSyncInfo.js +51 -0
  461. package/dist/swagger/models/SessionSyncInfoError.d.ts +41 -0
  462. package/dist/swagger/models/SessionSyncInfoError.js +46 -0
  463. package/dist/swagger/models/SessionSyncInfoErrorSpecifics.d.ts +28 -0
  464. package/dist/swagger/models/SessionSyncInfoErrorSpecifics.js +41 -0
  465. package/dist/swagger/models/SessionSyncInfoPending.d.ts +34 -0
  466. package/dist/swagger/models/SessionSyncInfoPending.js +43 -0
  467. package/dist/swagger/models/SessionSyncInfoStatus.d.ts +23 -0
  468. package/dist/swagger/models/SessionSyncInfoStatus.js +30 -0
  469. package/dist/swagger/models/SessionSyncInfoSynced.d.ts +40 -0
  470. package/dist/swagger/models/SessionSyncInfoSynced.js +45 -0
  471. package/dist/swagger/models/SessionSyncInfoSyncedAllOf.d.ts +34 -0
  472. package/dist/swagger/models/SessionSyncInfoSyncedAllOf.js +44 -0
  473. package/dist/swagger/models/SessionSyncInfoSyncedSpecifics.d.ts +27 -0
  474. package/dist/swagger/models/SessionSyncInfoSyncedSpecifics.js +40 -0
  475. package/dist/swagger/models/SetClientConfigRequest.d.ts +28 -0
  476. package/dist/swagger/models/SetClientConfigRequest.js +38 -0
  477. package/dist/swagger/models/SizeUnitConstraint.d.ts +46 -0
  478. package/dist/swagger/models/SizeUnitConstraint.js +51 -0
  479. package/dist/swagger/models/StringMapByOrderModel.d.ts +93 -0
  480. package/dist/swagger/models/StringMapByOrderModel.js +68 -0
  481. package/dist/swagger/models/SyncError.d.ts +33 -0
  482. package/dist/swagger/models/SyncError.js +39 -0
  483. package/dist/swagger/models/TakeProfitStopLossCapabilites.d.ts +42 -0
  484. package/dist/swagger/models/TakeProfitStopLossCapabilites.js +42 -0
  485. package/dist/swagger/models/TakeProfitStopLossDetail.d.ts +35 -0
  486. package/dist/swagger/models/TakeProfitStopLossDetail.js +41 -0
  487. package/dist/swagger/models/TradeDraft.d.ts +64 -0
  488. package/dist/swagger/models/TradeDraft.js +50 -0
  489. package/dist/swagger/models/TradeDraftCreateParams.d.ts +34 -0
  490. package/dist/swagger/models/TradeDraftCreateParams.js +41 -0
  491. package/dist/swagger/models/TradeDraftOrderCreate.d.ts +122 -0
  492. package/dist/swagger/models/TradeDraftOrderCreate.js +79 -0
  493. package/dist/swagger/models/TradeDraftUpdateParams.d.ts +40 -0
  494. package/dist/swagger/models/TradeDraftUpdateParams.js +45 -0
  495. package/dist/swagger/models/TradeDraftUpdateParamsOrderId.d.ts +21 -0
  496. package/dist/swagger/models/TradeDraftUpdateParamsOrderId.js +24 -0
  497. package/dist/swagger/models/TrailingDistance.d.ts +42 -0
  498. package/dist/swagger/models/TrailingDistance.js +46 -0
  499. package/dist/swagger/models/ValidationDetail.d.ts +33 -0
  500. package/dist/swagger/models/ValidationDetail.js +39 -0
  501. package/dist/swagger/models/index.d.ts +222 -0
  502. package/dist/swagger/models/index.js +224 -0
  503. package/dist/swagger/runtime.d.ts +156 -0
  504. package/dist/swagger/runtime.js +257 -0
  505. package/dist/tsdoc-metadata.json +11 -0
  506. package/dist/utils.d.ts +9 -0
  507. package/dist/utils.js +24 -0
  508. package/dist/websocketClient.d.ts +59 -0
  509. package/dist/websocketClient.js +316 -0
  510. package/dist/websocketTypes.d.ts +71 -0
  511. package/dist/websocketTypes.js +1 -0
  512. package/package.json +66 -0
@@ -0,0 +1,58 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from "../runtime";
12
+ import { CreatedResponseBody, DemoAccountSettings, DemoAccountsResponse, OkResponseBody } from "../models";
13
+ export interface CreateDemoAccountRequest {
14
+ demoAccountSettings?: DemoAccountSettings;
15
+ }
16
+ export interface DeleteDemoAccountRequest {
17
+ accountId: string;
18
+ }
19
+ export interface TriggerDemoSessionSyncErrorRequest {
20
+ sessionId: string;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class DemobrokerApi extends runtime.BaseAPI {
26
+ /**
27
+ * Create an account at the demo broker for the logged-in user. The account will have a default set of two empty portfolios by default. If the setting `isSinglePortfolio` is set, only one portfolio is created. The account as well as the two portfolios have a randomly generated name. To log into an account, use the account\'s generated name as username (Account name) in `AddSession`. - with the password `42`, the login will succeed immediately - with the password `1337`, a challenge with type text will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - with the password `7`, a challenge with type base64png will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - other passwords will not allow to log in The demo broker implements the following pre-defined trade behaviors, so that different flows can be tested: - ISIN US0378331005 (Apple): - market buy order is executed after 10 seconds by the backend at a random quote - stop buy or stop loss order stays open forever (can be used for testing cancellation) - cost estimations contain a `costDetailsLink` and a `costAcceptancePrompt` - securityDetailedInfo is set, so a \"KID\" link should be displayed and linked to the corresponding table - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN LU0378438732 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - orders are rejected with code `ORDER_REJECTED` immediately - ISIN LU2611732046 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - two exchanges are available (\"xetra\" and \"quoteExchange\") - xetra allows market and limit orders for buying and has defaultValidityByOrderModel set to GFD for market and GTD 2030-01-01 for limit - orders are rejected with code `ORDER_REJECTED` immediately - ISIN DE000MD96WE8 (a knock out with DAX as underlying) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN DE000DTR0CK8 (Daimler Truck Holding) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN US4180561072 (Hasbro) - only quote orders on one exchange are supported - the quotes are valid for 45 seconds - quote value is always `42` - the order gets executed immediately - ISIN DE0005557508 (Deutsche Telekom) - only quote orders on two different exchanges are supported - the quotes do *NOT* have an expiration - quote value is always `42` - quote comes together with a costEstimation. Subsequent getCostEstimation calls are not allowed. - `noExchangeDefault` is true, so that exchange must be selected by the user - order will be canceled after 3 seconds - ISIN US98980L1017 (Zoom) - only market orders (both buy and sell) are suppored on one exchange - orders are executed immediately at a random quote - order creation requires the user to accept a hint (i.e. first try will result in a `MUST_ACCEPT_HINT` error) - default validity is set to `GTD` with a date of `2030-01-01` - ISIN US29786A1060 (Etsy) - the prepareTrade request takes 5 seconds - create challenge takes 5 seconds. for authMethod photoTAN, the challenge will return with an error after that period of time - only quote and market orders allowed - at exchange \"Slow exchange\" it takes 7 seconds to get a quote as well as 7 seconds to retrieve order costs - at exchange \"Exchange with quote and cost errors\" the quote request as well as cost estimation will end with an error after 3 seconds - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN XS2149280948 (bond from Bertelsmann) - quote, limit and market orders (both buy and sell) are supported on one exchange - limit orders are executed at exactly the limit price - market orders are executed at a random quote between 90 and 150 percent - for market orders, there is a legal message to confirm set (`legalMessagesToConfirmByOrderModel`) - ISIN US64110L1061 (Netflix Inc.) - one exchange with only quote order - creating the quote order will return an error (quote expired) - ISIN US67066G1040 (NVIDIA) - one exchange with only quote order, allowsQuoteModeLimit=true - quote orders are executed immediately. - if a quoteLimit is provided, execution happen at quoteLimit value - otherwise, a random execution quote will be used - ISIN DE000BAY0017 (Bayer AG) - one exchange with only market order - `costEstimationIsNotAvailable` is true, so no cost estimations should be linked/shown - orders will be canceled after 3 seconds - ISIN DE000PAH0038 (Porsche) - one exchange with only market order - all orders will be canceled - `GetCostEstimation` contains (only) a link to a PDF document. This can be used to test whether linking to a PDF works. - the instrument has both a `riskClassInfo.legalHint` as well as a `strikingHint`. Both should be visible in the order form. - ISIN DE0008404005 (Allianz) and some other hidden ISINs (can be requested from brokerize support) - one exchange with all available orderModels - orders are executed immediately - limit orders are executed at exactly the provided limit price - ISIN DE0008430026 (Munich Re) - one exchange (L&S) with all available orderModels - orders are executed immediately - ISIN FR0000120321 (L\'Oréal) - one exchange with all available orderModels - the exchange has a `securityQuotesToken` set - orders stay open - changesHaveCostEstimations is `true` for orders with this ISIN - ISIN US5949181045 (Microsoft) - one exchange with all available orderModels - if size is even, a partial execution with size 1 is executed, the remaining part stays open - if size is odd, a partial execution with size 1 is executed, the remaining part is canceled - ISIN US30303M1027 (Meta) - one exchange with all available orderModels - for each piece of the order size, there will be one execution with size 1 (so e.g. 10 executions for size 10) - sizes > 30 are not accepted - ISIN US2546871060 (Disney) - one exchange with all available orderModels - all orders are canceled after 3s - `costEstimationMustBeShown` is false and `costEstimationIsOnlyDetailedTable` is true (frontends must only show a link to the cost estimation table) - ISIN XX1234567890 (example of an ISIN that can never be mapped by frontends) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007100000 (Mercedes-Benz) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007472060 (Wirecard) - test instrument for `empty orderModelsBuy` / `onlySellAllowed` - ISIN BTC (Bitcoin/Euro) - has one exchange with support for quote, market and limit orders - orders will be executed right away - can be used to test frontend mapping of cryptos - when you prepare a trade in the *second* portfolio (which has two cash accounts), `sizeUnitsByCashAccountId` will be set, so that the frontend can let the user select a combination of `cashAccount` and `sizeUnit`. - ISIN DE0006231004 (Infineon Technologies AG) - one exchange with `orderModelsSell=[\'market\'] and `orderModelsBuy=[]` - ISIN DE0005552004 (Deutsche Post AG) - one exchange with `orderModelsSell=[] and `orderModelsBuy=[\'market\']` - market buy orders are executed immediately - ISIN US8740541094 (Take Two) - three exchanges are available. all have `market` and `limit` available - configuration for `takeProfitStopLoss` is different for the three exchanges. This can be used to test the implementation of takeProfit/stopLoss creation. - exchange_with_exclusive_tp_sl: `takeProfitStopLoss.exclusive` is `true`, so that only one of the two can be set. Also, both fields are limited to market buy orders - exchange_with_unlimited_tp_sl: `takeProfitStopLoss.exclusive` is `false`, so that both tp and sl may be set, for both sell and buy orders and both support orderModels - exchange_without_tp_sl: `takeProfitStopLoss` is not set, so that no tp/sl can be set - orders stay open forever - ISIN US5529531015 (MGM Resorts International) - one exchange with market and limit orders - orders are executed immediately - short selling is allowed, so `availableOrderIntents` as well as `availableOrderIntentsToken` is set. \"sell to open\" and \"buy to close\" can be tested here. - ISIN XAU (Gold) - only quote trading is allowed - depending on the selected portfolio, it is possible to select a cash account (e.g. EUR or USD) to trade with - users can chose between specifying the order size in the cash currency or in grams - quotes have the `totalAmount` field set - `CryptoPair` ADA-USD (Cardano - US Dollar) - \'quote\', \'market\', \'limit\' order models are available - One of the created demobroker portfolios does not have an USD cash account. For this portfolio an error will appear upon opening the order form - users can chose between specifying the order size in the cash currency (USD) or in ADA - validity types for limit orders are [\'IOC\', \'GTDT\']. With \'GTDT\' the user can specify a date AND time at which his order should be executed - the size input decimal places are limited per sizeUnit. For USD it\'s 2 and for ADA it is 4 decimal places - the orders will be canceled after 3 seconds - all other orders will be canceled after 3 seconds Cost estimations for `buy` and `sell` return a different set of fields. This can be used to test proper UI behavior when fields are set or unavailable. Behavior of `PortfolioQuotes` in the demo broker: - portfolio 1 starts with 100.000€ cash. portfolio 2 has two cash accounts, one starts with 100.000€, one with 100.000$. - when cash account values are summed up, we just assume an exchange rate of 1:1 - each open buy order reserves 10€ cash from the availableCash - profit loss of the portfolio is the sum of the position\'s profit loss - if a EUR cashAccount has the value 0,00€, its `hideInOverviews` property is set to true. This can be used to test the frontend\'s behavior when a cash account is hidden.
28
+ */
29
+ createDemoAccountRaw(requestParameters: CreateDemoAccountRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<CreatedResponseBody>>;
30
+ /**
31
+ * Create an account at the demo broker for the logged-in user. The account will have a default set of two empty portfolios by default. If the setting `isSinglePortfolio` is set, only one portfolio is created. The account as well as the two portfolios have a randomly generated name. To log into an account, use the account\'s generated name as username (Account name) in `AddSession`. - with the password `42`, the login will succeed immediately - with the password `1337`, a challenge with type text will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - with the password `7`, a challenge with type base64png will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - other passwords will not allow to log in The demo broker implements the following pre-defined trade behaviors, so that different flows can be tested: - ISIN US0378331005 (Apple): - market buy order is executed after 10 seconds by the backend at a random quote - stop buy or stop loss order stays open forever (can be used for testing cancellation) - cost estimations contain a `costDetailsLink` and a `costAcceptancePrompt` - securityDetailedInfo is set, so a \"KID\" link should be displayed and linked to the corresponding table - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN LU0378438732 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - orders are rejected with code `ORDER_REJECTED` immediately - ISIN LU2611732046 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - two exchanges are available (\"xetra\" and \"quoteExchange\") - xetra allows market and limit orders for buying and has defaultValidityByOrderModel set to GFD for market and GTD 2030-01-01 for limit - orders are rejected with code `ORDER_REJECTED` immediately - ISIN DE000MD96WE8 (a knock out with DAX as underlying) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN DE000DTR0CK8 (Daimler Truck Holding) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN US4180561072 (Hasbro) - only quote orders on one exchange are supported - the quotes are valid for 45 seconds - quote value is always `42` - the order gets executed immediately - ISIN DE0005557508 (Deutsche Telekom) - only quote orders on two different exchanges are supported - the quotes do *NOT* have an expiration - quote value is always `42` - quote comes together with a costEstimation. Subsequent getCostEstimation calls are not allowed. - `noExchangeDefault` is true, so that exchange must be selected by the user - order will be canceled after 3 seconds - ISIN US98980L1017 (Zoom) - only market orders (both buy and sell) are suppored on one exchange - orders are executed immediately at a random quote - order creation requires the user to accept a hint (i.e. first try will result in a `MUST_ACCEPT_HINT` error) - default validity is set to `GTD` with a date of `2030-01-01` - ISIN US29786A1060 (Etsy) - the prepareTrade request takes 5 seconds - create challenge takes 5 seconds. for authMethod photoTAN, the challenge will return with an error after that period of time - only quote and market orders allowed - at exchange \"Slow exchange\" it takes 7 seconds to get a quote as well as 7 seconds to retrieve order costs - at exchange \"Exchange with quote and cost errors\" the quote request as well as cost estimation will end with an error after 3 seconds - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN XS2149280948 (bond from Bertelsmann) - quote, limit and market orders (both buy and sell) are supported on one exchange - limit orders are executed at exactly the limit price - market orders are executed at a random quote between 90 and 150 percent - for market orders, there is a legal message to confirm set (`legalMessagesToConfirmByOrderModel`) - ISIN US64110L1061 (Netflix Inc.) - one exchange with only quote order - creating the quote order will return an error (quote expired) - ISIN US67066G1040 (NVIDIA) - one exchange with only quote order, allowsQuoteModeLimit=true - quote orders are executed immediately. - if a quoteLimit is provided, execution happen at quoteLimit value - otherwise, a random execution quote will be used - ISIN DE000BAY0017 (Bayer AG) - one exchange with only market order - `costEstimationIsNotAvailable` is true, so no cost estimations should be linked/shown - orders will be canceled after 3 seconds - ISIN DE000PAH0038 (Porsche) - one exchange with only market order - all orders will be canceled - `GetCostEstimation` contains (only) a link to a PDF document. This can be used to test whether linking to a PDF works. - the instrument has both a `riskClassInfo.legalHint` as well as a `strikingHint`. Both should be visible in the order form. - ISIN DE0008404005 (Allianz) and some other hidden ISINs (can be requested from brokerize support) - one exchange with all available orderModels - orders are executed immediately - limit orders are executed at exactly the provided limit price - ISIN DE0008430026 (Munich Re) - one exchange (L&S) with all available orderModels - orders are executed immediately - ISIN FR0000120321 (L\'Oréal) - one exchange with all available orderModels - the exchange has a `securityQuotesToken` set - orders stay open - changesHaveCostEstimations is `true` for orders with this ISIN - ISIN US5949181045 (Microsoft) - one exchange with all available orderModels - if size is even, a partial execution with size 1 is executed, the remaining part stays open - if size is odd, a partial execution with size 1 is executed, the remaining part is canceled - ISIN US30303M1027 (Meta) - one exchange with all available orderModels - for each piece of the order size, there will be one execution with size 1 (so e.g. 10 executions for size 10) - sizes > 30 are not accepted - ISIN US2546871060 (Disney) - one exchange with all available orderModels - all orders are canceled after 3s - `costEstimationMustBeShown` is false and `costEstimationIsOnlyDetailedTable` is true (frontends must only show a link to the cost estimation table) - ISIN XX1234567890 (example of an ISIN that can never be mapped by frontends) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007100000 (Mercedes-Benz) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007472060 (Wirecard) - test instrument for `empty orderModelsBuy` / `onlySellAllowed` - ISIN BTC (Bitcoin/Euro) - has one exchange with support for quote, market and limit orders - orders will be executed right away - can be used to test frontend mapping of cryptos - when you prepare a trade in the *second* portfolio (which has two cash accounts), `sizeUnitsByCashAccountId` will be set, so that the frontend can let the user select a combination of `cashAccount` and `sizeUnit`. - ISIN DE0006231004 (Infineon Technologies AG) - one exchange with `orderModelsSell=[\'market\'] and `orderModelsBuy=[]` - ISIN DE0005552004 (Deutsche Post AG) - one exchange with `orderModelsSell=[] and `orderModelsBuy=[\'market\']` - market buy orders are executed immediately - ISIN US8740541094 (Take Two) - three exchanges are available. all have `market` and `limit` available - configuration for `takeProfitStopLoss` is different for the three exchanges. This can be used to test the implementation of takeProfit/stopLoss creation. - exchange_with_exclusive_tp_sl: `takeProfitStopLoss.exclusive` is `true`, so that only one of the two can be set. Also, both fields are limited to market buy orders - exchange_with_unlimited_tp_sl: `takeProfitStopLoss.exclusive` is `false`, so that both tp and sl may be set, for both sell and buy orders and both support orderModels - exchange_without_tp_sl: `takeProfitStopLoss` is not set, so that no tp/sl can be set - orders stay open forever - ISIN US5529531015 (MGM Resorts International) - one exchange with market and limit orders - orders are executed immediately - short selling is allowed, so `availableOrderIntents` as well as `availableOrderIntentsToken` is set. \"sell to open\" and \"buy to close\" can be tested here. - ISIN XAU (Gold) - only quote trading is allowed - depending on the selected portfolio, it is possible to select a cash account (e.g. EUR or USD) to trade with - users can chose between specifying the order size in the cash currency or in grams - quotes have the `totalAmount` field set - `CryptoPair` ADA-USD (Cardano - US Dollar) - \'quote\', \'market\', \'limit\' order models are available - One of the created demobroker portfolios does not have an USD cash account. For this portfolio an error will appear upon opening the order form - users can chose between specifying the order size in the cash currency (USD) or in ADA - validity types for limit orders are [\'IOC\', \'GTDT\']. With \'GTDT\' the user can specify a date AND time at which his order should be executed - the size input decimal places are limited per sizeUnit. For USD it\'s 2 and for ADA it is 4 decimal places - the orders will be canceled after 3 seconds - all other orders will be canceled after 3 seconds Cost estimations for `buy` and `sell` return a different set of fields. This can be used to test proper UI behavior when fields are set or unavailable. Behavior of `PortfolioQuotes` in the demo broker: - portfolio 1 starts with 100.000€ cash. portfolio 2 has two cash accounts, one starts with 100.000€, one with 100.000$. - when cash account values are summed up, we just assume an exchange rate of 1:1 - each open buy order reserves 10€ cash from the availableCash - profit loss of the portfolio is the sum of the position\'s profit loss - if a EUR cashAccount has the value 0,00€, its `hideInOverviews` property is set to true. This can be used to test the frontend\'s behavior when a cash account is hidden.
32
+ */
33
+ createDemoAccount(requestParameters?: CreateDemoAccountRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<CreatedResponseBody>;
34
+ /**
35
+ * Delete the given demo account and all data (demo portfolios and the related orders) *permanently*.
36
+ */
37
+ deleteDemoAccountRaw(requestParameters: DeleteDemoAccountRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<OkResponseBody>>;
38
+ /**
39
+ * Delete the given demo account and all data (demo portfolios and the related orders) *permanently*.
40
+ */
41
+ deleteDemoAccount(requestParameters: DeleteDemoAccountRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OkResponseBody>;
42
+ /**
43
+ * List all demo accounts that the user has in her account. The account name can be used as the login username in the demo broker login process.
44
+ */
45
+ getDemoAccountsRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DemoAccountsResponse>>;
46
+ /**
47
+ * List all demo accounts that the user has in her account. The account name can be used as the login username in the demo broker login process.
48
+ */
49
+ getDemoAccounts(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DemoAccountsResponse>;
50
+ /**
51
+ * Only for demo broker portfolios: set a sync error for a session. This can be used for testing.
52
+ */
53
+ triggerDemoSessionSyncErrorRaw(requestParameters: TriggerDemoSessionSyncErrorRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<OkResponseBody>>;
54
+ /**
55
+ * Only for demo broker portfolios: set a sync error for a session. This can be used for testing.
56
+ */
57
+ triggerDemoSessionSyncError(requestParameters: TriggerDemoSessionSyncErrorRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OkResponseBody>;
58
+ }
@@ -0,0 +1,157 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import * as runtime from "../runtime";
14
+ import { CreatedResponseBodyFromJSON, DemoAccountSettingsToJSON, DemoAccountsResponseFromJSON, OkResponseBodyFromJSON, } from "../models";
15
+ /**
16
+ *
17
+ */
18
+ export class DemobrokerApi extends runtime.BaseAPI {
19
+ /**
20
+ * Create an account at the demo broker for the logged-in user. The account will have a default set of two empty portfolios by default. If the setting `isSinglePortfolio` is set, only one portfolio is created. The account as well as the two portfolios have a randomly generated name. To log into an account, use the account\'s generated name as username (Account name) in `AddSession`. - with the password `42`, the login will succeed immediately - with the password `1337`, a challenge with type text will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - with the password `7`, a challenge with type base64png will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - other passwords will not allow to log in The demo broker implements the following pre-defined trade behaviors, so that different flows can be tested: - ISIN US0378331005 (Apple): - market buy order is executed after 10 seconds by the backend at a random quote - stop buy or stop loss order stays open forever (can be used for testing cancellation) - cost estimations contain a `costDetailsLink` and a `costAcceptancePrompt` - securityDetailedInfo is set, so a \"KID\" link should be displayed and linked to the corresponding table - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN LU0378438732 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - orders are rejected with code `ORDER_REJECTED` immediately - ISIN LU2611732046 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - two exchanges are available (\"xetra\" and \"quoteExchange\") - xetra allows market and limit orders for buying and has defaultValidityByOrderModel set to GFD for market and GTD 2030-01-01 for limit - orders are rejected with code `ORDER_REJECTED` immediately - ISIN DE000MD96WE8 (a knock out with DAX as underlying) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN DE000DTR0CK8 (Daimler Truck Holding) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN US4180561072 (Hasbro) - only quote orders on one exchange are supported - the quotes are valid for 45 seconds - quote value is always `42` - the order gets executed immediately - ISIN DE0005557508 (Deutsche Telekom) - only quote orders on two different exchanges are supported - the quotes do *NOT* have an expiration - quote value is always `42` - quote comes together with a costEstimation. Subsequent getCostEstimation calls are not allowed. - `noExchangeDefault` is true, so that exchange must be selected by the user - order will be canceled after 3 seconds - ISIN US98980L1017 (Zoom) - only market orders (both buy and sell) are suppored on one exchange - orders are executed immediately at a random quote - order creation requires the user to accept a hint (i.e. first try will result in a `MUST_ACCEPT_HINT` error) - default validity is set to `GTD` with a date of `2030-01-01` - ISIN US29786A1060 (Etsy) - the prepareTrade request takes 5 seconds - create challenge takes 5 seconds. for authMethod photoTAN, the challenge will return with an error after that period of time - only quote and market orders allowed - at exchange \"Slow exchange\" it takes 7 seconds to get a quote as well as 7 seconds to retrieve order costs - at exchange \"Exchange with quote and cost errors\" the quote request as well as cost estimation will end with an error after 3 seconds - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN XS2149280948 (bond from Bertelsmann) - quote, limit and market orders (both buy and sell) are supported on one exchange - limit orders are executed at exactly the limit price - market orders are executed at a random quote between 90 and 150 percent - for market orders, there is a legal message to confirm set (`legalMessagesToConfirmByOrderModel`) - ISIN US64110L1061 (Netflix Inc.) - one exchange with only quote order - creating the quote order will return an error (quote expired) - ISIN US67066G1040 (NVIDIA) - one exchange with only quote order, allowsQuoteModeLimit=true - quote orders are executed immediately. - if a quoteLimit is provided, execution happen at quoteLimit value - otherwise, a random execution quote will be used - ISIN DE000BAY0017 (Bayer AG) - one exchange with only market order - `costEstimationIsNotAvailable` is true, so no cost estimations should be linked/shown - orders will be canceled after 3 seconds - ISIN DE000PAH0038 (Porsche) - one exchange with only market order - all orders will be canceled - `GetCostEstimation` contains (only) a link to a PDF document. This can be used to test whether linking to a PDF works. - the instrument has both a `riskClassInfo.legalHint` as well as a `strikingHint`. Both should be visible in the order form. - ISIN DE0008404005 (Allianz) and some other hidden ISINs (can be requested from brokerize support) - one exchange with all available orderModels - orders are executed immediately - limit orders are executed at exactly the provided limit price - ISIN DE0008430026 (Munich Re) - one exchange (L&S) with all available orderModels - orders are executed immediately - ISIN FR0000120321 (L\'Oréal) - one exchange with all available orderModels - the exchange has a `securityQuotesToken` set - orders stay open - changesHaveCostEstimations is `true` for orders with this ISIN - ISIN US5949181045 (Microsoft) - one exchange with all available orderModels - if size is even, a partial execution with size 1 is executed, the remaining part stays open - if size is odd, a partial execution with size 1 is executed, the remaining part is canceled - ISIN US30303M1027 (Meta) - one exchange with all available orderModels - for each piece of the order size, there will be one execution with size 1 (so e.g. 10 executions for size 10) - sizes > 30 are not accepted - ISIN US2546871060 (Disney) - one exchange with all available orderModels - all orders are canceled after 3s - `costEstimationMustBeShown` is false and `costEstimationIsOnlyDetailedTable` is true (frontends must only show a link to the cost estimation table) - ISIN XX1234567890 (example of an ISIN that can never be mapped by frontends) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007100000 (Mercedes-Benz) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007472060 (Wirecard) - test instrument for `empty orderModelsBuy` / `onlySellAllowed` - ISIN BTC (Bitcoin/Euro) - has one exchange with support for quote, market and limit orders - orders will be executed right away - can be used to test frontend mapping of cryptos - when you prepare a trade in the *second* portfolio (which has two cash accounts), `sizeUnitsByCashAccountId` will be set, so that the frontend can let the user select a combination of `cashAccount` and `sizeUnit`. - ISIN DE0006231004 (Infineon Technologies AG) - one exchange with `orderModelsSell=[\'market\'] and `orderModelsBuy=[]` - ISIN DE0005552004 (Deutsche Post AG) - one exchange with `orderModelsSell=[] and `orderModelsBuy=[\'market\']` - market buy orders are executed immediately - ISIN US8740541094 (Take Two) - three exchanges are available. all have `market` and `limit` available - configuration for `takeProfitStopLoss` is different for the three exchanges. This can be used to test the implementation of takeProfit/stopLoss creation. - exchange_with_exclusive_tp_sl: `takeProfitStopLoss.exclusive` is `true`, so that only one of the two can be set. Also, both fields are limited to market buy orders - exchange_with_unlimited_tp_sl: `takeProfitStopLoss.exclusive` is `false`, so that both tp and sl may be set, for both sell and buy orders and both support orderModels - exchange_without_tp_sl: `takeProfitStopLoss` is not set, so that no tp/sl can be set - orders stay open forever - ISIN US5529531015 (MGM Resorts International) - one exchange with market and limit orders - orders are executed immediately - short selling is allowed, so `availableOrderIntents` as well as `availableOrderIntentsToken` is set. \"sell to open\" and \"buy to close\" can be tested here. - ISIN XAU (Gold) - only quote trading is allowed - depending on the selected portfolio, it is possible to select a cash account (e.g. EUR or USD) to trade with - users can chose between specifying the order size in the cash currency or in grams - quotes have the `totalAmount` field set - `CryptoPair` ADA-USD (Cardano - US Dollar) - \'quote\', \'market\', \'limit\' order models are available - One of the created demobroker portfolios does not have an USD cash account. For this portfolio an error will appear upon opening the order form - users can chose between specifying the order size in the cash currency (USD) or in ADA - validity types for limit orders are [\'IOC\', \'GTDT\']. With \'GTDT\' the user can specify a date AND time at which his order should be executed - the size input decimal places are limited per sizeUnit. For USD it\'s 2 and for ADA it is 4 decimal places - the orders will be canceled after 3 seconds - all other orders will be canceled after 3 seconds Cost estimations for `buy` and `sell` return a different set of fields. This can be used to test proper UI behavior when fields are set or unavailable. Behavior of `PortfolioQuotes` in the demo broker: - portfolio 1 starts with 100.000€ cash. portfolio 2 has two cash accounts, one starts with 100.000€, one with 100.000$. - when cash account values are summed up, we just assume an exchange rate of 1:1 - each open buy order reserves 10€ cash from the availableCash - profit loss of the portfolio is the sum of the position\'s profit loss - if a EUR cashAccount has the value 0,00€, its `hideInOverviews` property is set to true. This can be used to test the frontend\'s behavior when a cash account is hidden.
21
+ */
22
+ async createDemoAccountRaw(requestParameters, initOverrides) {
23
+ const queryParameters = {};
24
+ const headerParameters = {};
25
+ headerParameters["Content-Type"] = "application/json";
26
+ if (this.configuration && this.configuration.apiKey) {
27
+ headerParameters["x-brkrz-client-id"] =
28
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
29
+ }
30
+ if (this.configuration && this.configuration.accessToken) {
31
+ const token = this.configuration.accessToken;
32
+ const tokenString = await token("idToken", []);
33
+ if (tokenString) {
34
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
35
+ }
36
+ }
37
+ const response = await this.request({
38
+ path: `/demo/accounts`,
39
+ method: "POST",
40
+ headers: headerParameters,
41
+ query: queryParameters,
42
+ body: DemoAccountSettingsToJSON(requestParameters.demoAccountSettings),
43
+ }, initOverrides);
44
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreatedResponseBodyFromJSON(jsonValue));
45
+ }
46
+ /**
47
+ * Create an account at the demo broker for the logged-in user. The account will have a default set of two empty portfolios by default. If the setting `isSinglePortfolio` is set, only one portfolio is created. The account as well as the two portfolios have a randomly generated name. To log into an account, use the account\'s generated name as username (Account name) in `AddSession`. - with the password `42`, the login will succeed immediately - with the password `1337`, a challenge with type text will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - with the password `7`, a challenge with type base64png will be returned which must be completed by using `addSessionCompleteChallenge` (with a challengeResponse `42`) - other passwords will not allow to log in The demo broker implements the following pre-defined trade behaviors, so that different flows can be tested: - ISIN US0378331005 (Apple): - market buy order is executed after 10 seconds by the backend at a random quote - stop buy or stop loss order stays open forever (can be used for testing cancellation) - cost estimations contain a `costDetailsLink` and a `costAcceptancePrompt` - securityDetailedInfo is set, so a \"KID\" link should be displayed and linked to the corresponding table - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN LU0378438732 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - orders are rejected with code `ORDER_REJECTED` immediately - ISIN LU2611732046 (a DAX ETF) - preparedTrade has `costEstimationIsOnlyDetailedTable` set to true, so that deviating order form behaviors can be tested - two exchanges are available (\"xetra\" and \"quoteExchange\") - xetra allows market and limit orders for buying and has defaultValidityByOrderModel set to GFD for market and GTD 2030-01-01 for limit - orders are rejected with code `ORDER_REJECTED` immediately - ISIN DE000MD96WE8 (a knock out with DAX as underlying) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN DE000DTR0CK8 (Daimler Truck Holding) - prepareTrade is rejected with a message that the user may not trade risky derivatives. - ISIN US4180561072 (Hasbro) - only quote orders on one exchange are supported - the quotes are valid for 45 seconds - quote value is always `42` - the order gets executed immediately - ISIN DE0005557508 (Deutsche Telekom) - only quote orders on two different exchanges are supported - the quotes do *NOT* have an expiration - quote value is always `42` - quote comes together with a costEstimation. Subsequent getCostEstimation calls are not allowed. - `noExchangeDefault` is true, so that exchange must be selected by the user - order will be canceled after 3 seconds - ISIN US98980L1017 (Zoom) - only market orders (both buy and sell) are suppored on one exchange - orders are executed immediately at a random quote - order creation requires the user to accept a hint (i.e. first try will result in a `MUST_ACCEPT_HINT` error) - default validity is set to `GTD` with a date of `2030-01-01` - ISIN US29786A1060 (Etsy) - the prepareTrade request takes 5 seconds - create challenge takes 5 seconds. for authMethod photoTAN, the challenge will return with an error after that period of time - only quote and market orders allowed - at exchange \"Slow exchange\" it takes 7 seconds to get a quote as well as 7 seconds to retrieve order costs - at exchange \"Exchange with quote and cost errors\" the quote request as well as cost estimation will end with an error after 3 seconds - the preparedTrade\'s `costEstimationMustBeShown` is true, so that the correct behavior (users cannot skip cost estimation in that case) can be tested. - ISIN XS2149280948 (bond from Bertelsmann) - quote, limit and market orders (both buy and sell) are supported on one exchange - limit orders are executed at exactly the limit price - market orders are executed at a random quote between 90 and 150 percent - for market orders, there is a legal message to confirm set (`legalMessagesToConfirmByOrderModel`) - ISIN US64110L1061 (Netflix Inc.) - one exchange with only quote order - creating the quote order will return an error (quote expired) - ISIN US67066G1040 (NVIDIA) - one exchange with only quote order, allowsQuoteModeLimit=true - quote orders are executed immediately. - if a quoteLimit is provided, execution happen at quoteLimit value - otherwise, a random execution quote will be used - ISIN DE000BAY0017 (Bayer AG) - one exchange with only market order - `costEstimationIsNotAvailable` is true, so no cost estimations should be linked/shown - orders will be canceled after 3 seconds - ISIN DE000PAH0038 (Porsche) - one exchange with only market order - all orders will be canceled - `GetCostEstimation` contains (only) a link to a PDF document. This can be used to test whether linking to a PDF works. - the instrument has both a `riskClassInfo.legalHint` as well as a `strikingHint`. Both should be visible in the order form. - ISIN DE0008404005 (Allianz) and some other hidden ISINs (can be requested from brokerize support) - one exchange with all available orderModels - orders are executed immediately - limit orders are executed at exactly the provided limit price - ISIN DE0008430026 (Munich Re) - one exchange (L&S) with all available orderModels - orders are executed immediately - ISIN FR0000120321 (L\'Oréal) - one exchange with all available orderModels - the exchange has a `securityQuotesToken` set - orders stay open - changesHaveCostEstimations is `true` for orders with this ISIN - ISIN US5949181045 (Microsoft) - one exchange with all available orderModels - if size is even, a partial execution with size 1 is executed, the remaining part stays open - if size is odd, a partial execution with size 1 is executed, the remaining part is canceled - ISIN US30303M1027 (Meta) - one exchange with all available orderModels - for each piece of the order size, there will be one execution with size 1 (so e.g. 10 executions for size 10) - sizes > 30 are not accepted - ISIN US2546871060 (Disney) - one exchange with all available orderModels - all orders are canceled after 3s - `costEstimationMustBeShown` is false and `costEstimationIsOnlyDetailedTable` is true (frontends must only show a link to the cost estimation table) - ISIN XX1234567890 (example of an ISIN that can never be mapped by frontends) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007100000 (Mercedes-Benz) - one exchange with all available orderModels - the instrument has two sellPositions to choose from (\"Sell Position A\" and \"Sell Position B\"). If no correct sell position is provided, trades will be rejected. - orders are executed immediately - ISIN DE0007472060 (Wirecard) - test instrument for `empty orderModelsBuy` / `onlySellAllowed` - ISIN BTC (Bitcoin/Euro) - has one exchange with support for quote, market and limit orders - orders will be executed right away - can be used to test frontend mapping of cryptos - when you prepare a trade in the *second* portfolio (which has two cash accounts), `sizeUnitsByCashAccountId` will be set, so that the frontend can let the user select a combination of `cashAccount` and `sizeUnit`. - ISIN DE0006231004 (Infineon Technologies AG) - one exchange with `orderModelsSell=[\'market\'] and `orderModelsBuy=[]` - ISIN DE0005552004 (Deutsche Post AG) - one exchange with `orderModelsSell=[] and `orderModelsBuy=[\'market\']` - market buy orders are executed immediately - ISIN US8740541094 (Take Two) - three exchanges are available. all have `market` and `limit` available - configuration for `takeProfitStopLoss` is different for the three exchanges. This can be used to test the implementation of takeProfit/stopLoss creation. - exchange_with_exclusive_tp_sl: `takeProfitStopLoss.exclusive` is `true`, so that only one of the two can be set. Also, both fields are limited to market buy orders - exchange_with_unlimited_tp_sl: `takeProfitStopLoss.exclusive` is `false`, so that both tp and sl may be set, for both sell and buy orders and both support orderModels - exchange_without_tp_sl: `takeProfitStopLoss` is not set, so that no tp/sl can be set - orders stay open forever - ISIN US5529531015 (MGM Resorts International) - one exchange with market and limit orders - orders are executed immediately - short selling is allowed, so `availableOrderIntents` as well as `availableOrderIntentsToken` is set. \"sell to open\" and \"buy to close\" can be tested here. - ISIN XAU (Gold) - only quote trading is allowed - depending on the selected portfolio, it is possible to select a cash account (e.g. EUR or USD) to trade with - users can chose between specifying the order size in the cash currency or in grams - quotes have the `totalAmount` field set - `CryptoPair` ADA-USD (Cardano - US Dollar) - \'quote\', \'market\', \'limit\' order models are available - One of the created demobroker portfolios does not have an USD cash account. For this portfolio an error will appear upon opening the order form - users can chose between specifying the order size in the cash currency (USD) or in ADA - validity types for limit orders are [\'IOC\', \'GTDT\']. With \'GTDT\' the user can specify a date AND time at which his order should be executed - the size input decimal places are limited per sizeUnit. For USD it\'s 2 and for ADA it is 4 decimal places - the orders will be canceled after 3 seconds - all other orders will be canceled after 3 seconds Cost estimations for `buy` and `sell` return a different set of fields. This can be used to test proper UI behavior when fields are set or unavailable. Behavior of `PortfolioQuotes` in the demo broker: - portfolio 1 starts with 100.000€ cash. portfolio 2 has two cash accounts, one starts with 100.000€, one with 100.000$. - when cash account values are summed up, we just assume an exchange rate of 1:1 - each open buy order reserves 10€ cash from the availableCash - profit loss of the portfolio is the sum of the position\'s profit loss - if a EUR cashAccount has the value 0,00€, its `hideInOverviews` property is set to true. This can be used to test the frontend\'s behavior when a cash account is hidden.
48
+ */
49
+ async createDemoAccount(requestParameters = {}, initOverrides) {
50
+ const response = await this.createDemoAccountRaw(requestParameters, initOverrides);
51
+ return await response.value();
52
+ }
53
+ /**
54
+ * Delete the given demo account and all data (demo portfolios and the related orders) *permanently*.
55
+ */
56
+ async deleteDemoAccountRaw(requestParameters, initOverrides) {
57
+ if (requestParameters.accountId === null ||
58
+ requestParameters.accountId === undefined) {
59
+ throw new runtime.RequiredError("accountId", "Required parameter requestParameters.accountId was null or undefined when calling deleteDemoAccount.");
60
+ }
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["x-brkrz-client-id"] =
65
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
66
+ }
67
+ if (this.configuration && this.configuration.accessToken) {
68
+ const token = this.configuration.accessToken;
69
+ const tokenString = await token("idToken", []);
70
+ if (tokenString) {
71
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
72
+ }
73
+ }
74
+ const response = await this.request({
75
+ path: `/demo/accounts/{accountId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
76
+ method: "DELETE",
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => OkResponseBodyFromJSON(jsonValue));
81
+ }
82
+ /**
83
+ * Delete the given demo account and all data (demo portfolios and the related orders) *permanently*.
84
+ */
85
+ async deleteDemoAccount(requestParameters, initOverrides) {
86
+ const response = await this.deleteDemoAccountRaw(requestParameters, initOverrides);
87
+ return await response.value();
88
+ }
89
+ /**
90
+ * List all demo accounts that the user has in her account. The account name can be used as the login username in the demo broker login process.
91
+ */
92
+ async getDemoAccountsRaw(initOverrides) {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["x-brkrz-client-id"] =
97
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
98
+ }
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = await token("idToken", []);
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ const response = await this.request({
107
+ path: `/demo/accounts`,
108
+ method: "GET",
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }, initOverrides);
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => DemoAccountsResponseFromJSON(jsonValue));
113
+ }
114
+ /**
115
+ * List all demo accounts that the user has in her account. The account name can be used as the login username in the demo broker login process.
116
+ */
117
+ async getDemoAccounts(initOverrides) {
118
+ const response = await this.getDemoAccountsRaw(initOverrides);
119
+ return await response.value();
120
+ }
121
+ /**
122
+ * Only for demo broker portfolios: set a sync error for a session. This can be used for testing.
123
+ */
124
+ async triggerDemoSessionSyncErrorRaw(requestParameters, initOverrides) {
125
+ if (requestParameters.sessionId === null ||
126
+ requestParameters.sessionId === undefined) {
127
+ throw new runtime.RequiredError("sessionId", "Required parameter requestParameters.sessionId was null or undefined when calling triggerDemoSessionSyncError.");
128
+ }
129
+ const queryParameters = {};
130
+ const headerParameters = {};
131
+ if (this.configuration && this.configuration.apiKey) {
132
+ headerParameters["x-brkrz-client-id"] =
133
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
134
+ }
135
+ if (this.configuration && this.configuration.accessToken) {
136
+ const token = this.configuration.accessToken;
137
+ const tokenString = await token("idToken", []);
138
+ if (tokenString) {
139
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
140
+ }
141
+ }
142
+ const response = await this.request({
143
+ path: `/sessions/{sessionId}/triggerSyncError`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters.sessionId))),
144
+ method: "POST",
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ }, initOverrides);
148
+ return new runtime.JSONApiResponse(response, (jsonValue) => OkResponseBodyFromJSON(jsonValue));
149
+ }
150
+ /**
151
+ * Only for demo broker portfolios: set a sync error for a session. This can be used for testing.
152
+ */
153
+ async triggerDemoSessionSyncError(requestParameters, initOverrides) {
154
+ const response = await this.triggerDemoSessionSyncErrorRaw(requestParameters, initOverrides);
155
+ return await response.value();
156
+ }
157
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from "../runtime";
12
+ import { RenderGenericTableParams } from "../models";
13
+ export interface RenderGenericTableRequest {
14
+ renderGenericTableParams: RenderGenericTableParams;
15
+ }
16
+ /**
17
+ *
18
+ */
19
+ export declare class ExportApi extends runtime.BaseAPI {
20
+ /**
21
+ * Render a `GenericTable`, as retrievable from other endpoints. By default, this will return a PDF download. If the header `Accept` is set to `text/html`, output will be an HTML document.
22
+ */
23
+ renderGenericTableRaw(requestParameters: RenderGenericTableRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<string>>;
24
+ /**
25
+ * Render a `GenericTable`, as retrievable from other endpoints. By default, this will return a PDF download. If the header `Accept` is set to `text/html`, output will be an HTML document.
26
+ */
27
+ renderGenericTable(requestParameters: RenderGenericTableRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<string>;
28
+ }
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import * as runtime from "../runtime";
14
+ import { RenderGenericTableParamsToJSON, } from "../models";
15
+ /**
16
+ *
17
+ */
18
+ export class ExportApi extends runtime.BaseAPI {
19
+ /**
20
+ * Render a `GenericTable`, as retrievable from other endpoints. By default, this will return a PDF download. If the header `Accept` is set to `text/html`, output will be an HTML document.
21
+ */
22
+ async renderGenericTableRaw(requestParameters, initOverrides) {
23
+ if (requestParameters.renderGenericTableParams === null ||
24
+ requestParameters.renderGenericTableParams === undefined) {
25
+ throw new runtime.RequiredError("renderGenericTableParams", "Required parameter requestParameters.renderGenericTableParams was null or undefined when calling renderGenericTable.");
26
+ }
27
+ const queryParameters = {};
28
+ const headerParameters = {};
29
+ headerParameters["Content-Type"] = "application/json";
30
+ if (this.configuration && this.configuration.apiKey) {
31
+ headerParameters["x-brkrz-client-id"] =
32
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
33
+ }
34
+ if (this.configuration && this.configuration.accessToken) {
35
+ const token = this.configuration.accessToken;
36
+ const tokenString = await token("idToken", []);
37
+ if (tokenString) {
38
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
39
+ }
40
+ }
41
+ const response = await this.request({
42
+ path: `/export/renderGenericTable`,
43
+ method: "POST",
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: RenderGenericTableParamsToJSON(requestParameters.renderGenericTableParams),
47
+ }, initOverrides);
48
+ return new runtime.TextApiResponse(response);
49
+ }
50
+ /**
51
+ * Render a `GenericTable`, as retrievable from other endpoints. By default, this will return a PDF download. If the header `Accept` is set to `text/html`, output will be an HTML document.
52
+ */
53
+ async renderGenericTable(requestParameters, initOverrides) {
54
+ const response = await this.renderGenericTableRaw(requestParameters, initOverrides);
55
+ return await response.value();
56
+ }
57
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from "../runtime";
12
+ import { ExchangesResponse, GetBrokersResponse, LegalTermsResponse, PagesConfigurationResponse } from "../models";
13
+ export interface GetPagesConfigurationRequest {
14
+ clientId?: string;
15
+ clientName?: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class MetaApi extends runtime.BaseAPI {
21
+ /**
22
+ * List all brokers that users can log in to. Describes *how* to login by specifying either a `loginForm` or some other means of login (e.g. the brokers\' OAuth process in the future).
23
+ */
24
+ getBrokersRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetBrokersResponse>>;
25
+ /**
26
+ * List all brokers that users can log in to. Describes *how* to login by specifying either a `loginForm` or some other means of login (e.g. the brokers\' OAuth process in the future).
27
+ */
28
+ getBrokers(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetBrokersResponse>;
29
+ /**
30
+ * List all exchanges mapped in brokerize. Brokers provide their own list of exchanges with any order preparation request, so there may be cases where a broker exchange is not mapped to this brokerize exchange list. This is totally valid: this list serves as a known subset of exchanges to facilitate switching between brokers or mapping to your own exchange database.
31
+ */
32
+ getExchangesRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<ExchangesResponse>>;
33
+ /**
34
+ * List all exchanges mapped in brokerize. Brokers provide their own list of exchanges with any order preparation request, so there may be cases where a broker exchange is not mapped to this brokerize exchange list. This is totally valid: this list serves as a known subset of exchanges to facilitate switching between brokers or mapping to your own exchange database.
35
+ */
36
+ getExchanges(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<ExchangesResponse>;
37
+ /**
38
+ * Get the legal terms that the user has to accept before logging in to any broker.
39
+ */
40
+ getLegalTermsRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LegalTermsResponse>>;
41
+ /**
42
+ * Get the legal terms that the user has to accept before logging in to any broker.
43
+ */
44
+ getLegalTerms(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LegalTermsResponse>;
45
+ /**
46
+ * Get the matching brokerize pages configuration. The endpoint will try to find a matching configuration in this order: - if parameter `clientId` is given: load the pages configuration for the given client id - if parameter `clientName` is given: load the pages configuration for the given client name - if neither parameter is provided, the requests `origin` will be used to find the configuration.
47
+ */
48
+ getPagesConfigurationRaw(requestParameters: GetPagesConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PagesConfigurationResponse>>;
49
+ /**
50
+ * Get the matching brokerize pages configuration. The endpoint will try to find a matching configuration in this order: - if parameter `clientId` is given: load the pages configuration for the given client id - if parameter `clientName` is given: load the pages configuration for the given client name - if neither parameter is provided, the requests `origin` will be used to find the configuration.
51
+ */
52
+ getPagesConfiguration(requestParameters?: GetPagesConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PagesConfigurationResponse>;
53
+ }
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import * as runtime from "../runtime";
14
+ import { ExchangesResponseFromJSON, GetBrokersResponseFromJSON, LegalTermsResponseFromJSON, PagesConfigurationResponseFromJSON, } from "../models";
15
+ /**
16
+ *
17
+ */
18
+ export class MetaApi extends runtime.BaseAPI {
19
+ /**
20
+ * List all brokers that users can log in to. Describes *how* to login by specifying either a `loginForm` or some other means of login (e.g. the brokers\' OAuth process in the future).
21
+ */
22
+ async getBrokersRaw(initOverrides) {
23
+ const queryParameters = {};
24
+ const headerParameters = {};
25
+ if (this.configuration && this.configuration.apiKey) {
26
+ headerParameters["x-brkrz-client-id"] =
27
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
28
+ }
29
+ const response = await this.request({
30
+ path: `/brokers`,
31
+ method: "GET",
32
+ headers: headerParameters,
33
+ query: queryParameters,
34
+ }, initOverrides);
35
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetBrokersResponseFromJSON(jsonValue));
36
+ }
37
+ /**
38
+ * List all brokers that users can log in to. Describes *how* to login by specifying either a `loginForm` or some other means of login (e.g. the brokers\' OAuth process in the future).
39
+ */
40
+ async getBrokers(initOverrides) {
41
+ const response = await this.getBrokersRaw(initOverrides);
42
+ return await response.value();
43
+ }
44
+ /**
45
+ * List all exchanges mapped in brokerize. Brokers provide their own list of exchanges with any order preparation request, so there may be cases where a broker exchange is not mapped to this brokerize exchange list. This is totally valid: this list serves as a known subset of exchanges to facilitate switching between brokers or mapping to your own exchange database.
46
+ */
47
+ async getExchangesRaw(initOverrides) {
48
+ const queryParameters = {};
49
+ const headerParameters = {};
50
+ if (this.configuration && this.configuration.apiKey) {
51
+ headerParameters["x-brkrz-client-id"] =
52
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
53
+ }
54
+ const response = await this.request({
55
+ path: `/exchanges`,
56
+ method: "GET",
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => ExchangesResponseFromJSON(jsonValue));
61
+ }
62
+ /**
63
+ * List all exchanges mapped in brokerize. Brokers provide their own list of exchanges with any order preparation request, so there may be cases where a broker exchange is not mapped to this brokerize exchange list. This is totally valid: this list serves as a known subset of exchanges to facilitate switching between brokers or mapping to your own exchange database.
64
+ */
65
+ async getExchanges(initOverrides) {
66
+ const response = await this.getExchangesRaw(initOverrides);
67
+ return await response.value();
68
+ }
69
+ /**
70
+ * Get the legal terms that the user has to accept before logging in to any broker.
71
+ */
72
+ async getLegalTermsRaw(initOverrides) {
73
+ const queryParameters = {};
74
+ const headerParameters = {};
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["x-brkrz-client-id"] =
77
+ this.configuration.apiKey("x-brkrz-client-id"); // clientId authentication
78
+ }
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = await token("idToken", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
85
+ }
86
+ const response = await this.request({
87
+ path: `/legalTerms`,
88
+ method: "GET",
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ }, initOverrides);
92
+ return new runtime.JSONApiResponse(response, (jsonValue) => LegalTermsResponseFromJSON(jsonValue));
93
+ }
94
+ /**
95
+ * Get the legal terms that the user has to accept before logging in to any broker.
96
+ */
97
+ async getLegalTerms(initOverrides) {
98
+ const response = await this.getLegalTermsRaw(initOverrides);
99
+ return await response.value();
100
+ }
101
+ /**
102
+ * Get the matching brokerize pages configuration. The endpoint will try to find a matching configuration in this order: - if parameter `clientId` is given: load the pages configuration for the given client id - if parameter `clientName` is given: load the pages configuration for the given client name - if neither parameter is provided, the requests `origin` will be used to find the configuration.
103
+ */
104
+ async getPagesConfigurationRaw(requestParameters, initOverrides) {
105
+ const queryParameters = {};
106
+ if (requestParameters.clientId !== undefined) {
107
+ queryParameters["clientId"] = requestParameters.clientId;
108
+ }
109
+ if (requestParameters.clientName !== undefined) {
110
+ queryParameters["clientName"] = requestParameters.clientName;
111
+ }
112
+ const headerParameters = {};
113
+ const response = await this.request({
114
+ path: `/pages`,
115
+ method: "GET",
116
+ headers: headerParameters,
117
+ query: queryParameters,
118
+ }, initOverrides);
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => PagesConfigurationResponseFromJSON(jsonValue));
120
+ }
121
+ /**
122
+ * Get the matching brokerize pages configuration. The endpoint will try to find a matching configuration in this order: - if parameter `clientId` is given: load the pages configuration for the given client id - if parameter `clientName` is given: load the pages configuration for the given client name - if neither parameter is provided, the requests `origin` will be used to find the configuration.
123
+ */
124
+ async getPagesConfiguration(requestParameters = {}, initOverrides) {
125
+ const response = await this.getPagesConfigurationRaw(requestParameters, initOverrides);
126
+ return await response.value();
127
+ }
128
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from "../runtime";
12
+ import { SecurityQuotesMeta, SecurityQuotesResponse } from "../models";
13
+ export interface GetSecurityQuotesRequest {
14
+ securityQuotesToken: string;
15
+ }
16
+ export interface GetSecurityQuotesMetaRequest {
17
+ securityQuotesToken: string;
18
+ }
19
+ /**
20
+ *
21
+ */
22
+ export declare class SecuritiesApi extends runtime.BaseAPI {
23
+ /**
24
+ * Load the current quotes for the given `securityQuotesToken` (provided by `PreparedTrade`). Currently, polling this endpoint is the only way to get the current quotes. A polling interval of 2500 milliseconds is recommended and it counts towards the general rate limit.
25
+ */
26
+ getSecurityQuotesRaw(requestParameters: GetSecurityQuotesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<SecurityQuotesResponse>>;
27
+ /**
28
+ * Load the current quotes for the given `securityQuotesToken` (provided by `PreparedTrade`). Currently, polling this endpoint is the only way to get the current quotes. A polling interval of 2500 milliseconds is recommended and it counts towards the general rate limit.
29
+ */
30
+ getSecurityQuotes(requestParameters: GetSecurityQuotesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<SecurityQuotesResponse>;
31
+ /**
32
+ * Load metadata about the given securityQuotesToken. This includes the currency, decimals and the quote source name.
33
+ */
34
+ getSecurityQuotesMetaRaw(requestParameters: GetSecurityQuotesMetaRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<SecurityQuotesMeta>>;
35
+ /**
36
+ * Load metadata about the given securityQuotesToken. This includes the currency, decimals and the quote source name.
37
+ */
38
+ getSecurityQuotesMeta(requestParameters: GetSecurityQuotesMetaRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<SecurityQuotesMeta>;
39
+ }