kalshi-typescript 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +210 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +25 -0
- package/README.md +212 -0
- package/api/api-keys-api.ts +354 -0
- package/api/communications-api.ts +863 -0
- package/api/events-api.ts +330 -0
- package/api/exchange-api.ts +315 -0
- package/api/markets-api.ts +554 -0
- package/api/milestones-api.ts +216 -0
- package/api/multivariate-collections-api.ts +293 -0
- package/api/portfolio-api.ts +1646 -0
- package/api/series-api.ts +208 -0
- package/api/structured-targets-api.ts +216 -0
- package/api.ts +27 -0
- package/base.ts +62 -0
- package/common.ts +98 -0
- package/configuration.ts +94 -0
- package/dist/api/api-keys-api.d.ts +163 -0
- package/dist/api/api-keys-api.js +333 -0
- package/dist/api/communications-api.d.ts +388 -0
- package/dist/api/communications-api.js +803 -0
- package/dist/api/events-api.d.ts +157 -0
- package/dist/api/events-api.js +312 -0
- package/dist/api/exchange-api.d.ts +150 -0
- package/dist/api/exchange-api.js +301 -0
- package/dist/api/markets-api.d.ts +263 -0
- package/dist/api/markets-api.js +515 -0
- package/dist/api/milestones-api.d.ts +104 -0
- package/dist/api/milestones-api.js +209 -0
- package/dist/api/multivariate-collections-api.d.ts +138 -0
- package/dist/api/multivariate-collections-api.js +278 -0
- package/dist/api/portfolio-api.d.ts +742 -0
- package/dist/api/portfolio-api.js +1498 -0
- package/dist/api/series-api.d.ts +100 -0
- package/dist/api/series-api.js +202 -0
- package/dist/api/structured-targets-api.d.ts +104 -0
- package/dist/api/structured-targets-api.js +209 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +39 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +29 -0
- package/dist/common.js +109 -0
- package/dist/configuration.d.ts +75 -0
- package/dist/configuration.js +40 -0
- package/dist/esm/api/api-keys-api.d.ts +163 -0
- package/dist/esm/api/api-keys-api.js +326 -0
- package/dist/esm/api/communications-api.d.ts +388 -0
- package/dist/esm/api/communications-api.js +796 -0
- package/dist/esm/api/events-api.d.ts +157 -0
- package/dist/esm/api/events-api.js +305 -0
- package/dist/esm/api/exchange-api.d.ts +150 -0
- package/dist/esm/api/exchange-api.js +294 -0
- package/dist/esm/api/markets-api.d.ts +263 -0
- package/dist/esm/api/markets-api.js +508 -0
- package/dist/esm/api/milestones-api.d.ts +104 -0
- package/dist/esm/api/milestones-api.js +202 -0
- package/dist/esm/api/multivariate-collections-api.d.ts +138 -0
- package/dist/esm/api/multivariate-collections-api.js +271 -0
- package/dist/esm/api/portfolio-api.d.ts +742 -0
- package/dist/esm/api/portfolio-api.js +1491 -0
- package/dist/esm/api/series-api.d.ts +100 -0
- package/dist/esm/api/series-api.js +195 -0
- package/dist/esm/api/structured-targets-api.d.ts +104 -0
- package/dist/esm/api/structured-targets-api.js +202 -0
- package/dist/esm/api.d.ts +21 -0
- package/dist/esm/api.js +23 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +29 -0
- package/dist/esm/common.js +97 -0
- package/dist/esm/configuration.d.ts +75 -0
- package/dist/esm/configuration.js +36 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/accept-quote-request.d.ts +14 -0
- package/dist/esm/models/accept-quote-request.js +14 -0
- package/dist/esm/models/amend-order-request.d.ts +16 -0
- package/dist/esm/models/amend-order-request.js +14 -0
- package/dist/esm/models/amend-order-response.d.ts +15 -0
- package/dist/esm/models/amend-order-response.js +14 -0
- package/dist/esm/models/announcement.d.ts +28 -0
- package/dist/esm/models/announcement.js +22 -0
- package/dist/esm/models/api-key.d.ts +25 -0
- package/dist/esm/models/api-key.js +14 -0
- package/dist/esm/models/batch-cancel-orders-request.d.ts +14 -0
- package/dist/esm/models/batch-cancel-orders-request.js +14 -0
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.js +14 -0
- package/dist/esm/models/batch-cancel-orders-response.d.ts +15 -0
- package/dist/esm/models/batch-cancel-orders-response.js +14 -0
- package/dist/esm/models/batch-create-orders-request.d.ts +15 -0
- package/dist/esm/models/batch-create-orders-request.js +14 -0
- package/dist/esm/models/batch-create-orders-response-responses-inner.d.ts +17 -0
- package/dist/esm/models/batch-create-orders-response-responses-inner.js +14 -0
- package/dist/esm/models/batch-create-orders-response.d.ts +15 -0
- package/dist/esm/models/batch-create-orders-response.js +14 -0
- package/dist/esm/models/cancel-order-response.d.ts +16 -0
- package/dist/esm/models/cancel-order-response.js +14 -0
- package/dist/esm/models/candlestick.d.ts +20 -0
- package/dist/esm/models/candlestick.js +14 -0
- package/dist/esm/models/create-api-key-request.d.ts +21 -0
- package/dist/esm/models/create-api-key-request.js +14 -0
- package/dist/esm/models/create-api-key-response.d.ts +17 -0
- package/dist/esm/models/create-api-key-response.js +14 -0
- package/dist/esm/models/create-order-group-request.d.ts +14 -0
- package/dist/esm/models/create-order-group-request.js +14 -0
- package/dist/esm/models/create-order-group-response.d.ts +15 -0
- package/dist/esm/models/create-order-group-response.js +14 -0
- package/dist/esm/models/create-order-request.d.ts +39 -0
- package/dist/esm/models/create-order-request.js +25 -0
- package/dist/esm/models/create-order-response.d.ts +15 -0
- package/dist/esm/models/create-order-response.js +14 -0
- package/dist/esm/models/create-quote-request.d.ts +16 -0
- package/dist/esm/models/create-quote-request.js +14 -0
- package/dist/esm/models/create-quote-response.d.ts +15 -0
- package/dist/esm/models/create-quote-response.js +14 -0
- package/dist/esm/models/create-rfqrequest.d.ts +22 -0
- package/dist/esm/models/create-rfqrequest.js +17 -0
- package/dist/esm/models/create-rfqresponse.d.ts +15 -0
- package/dist/esm/models/create-rfqresponse.js +14 -0
- package/dist/esm/models/daily-schedule.d.ts +15 -0
- package/dist/esm/models/daily-schedule.js +14 -0
- package/dist/esm/models/decrease-order-request.d.ts +14 -0
- package/dist/esm/models/decrease-order-request.js +14 -0
- package/dist/esm/models/decrease-order-response.d.ts +15 -0
- package/dist/esm/models/decrease-order-response.js +14 -0
- package/dist/esm/models/error-response-error.d.ts +25 -0
- package/dist/esm/models/error-response-error.js +14 -0
- package/dist/esm/models/error-response.d.ts +15 -0
- package/dist/esm/models/error-response.js +14 -0
- package/dist/esm/models/event.d.ts +26 -0
- package/dist/esm/models/event.js +18 -0
- package/dist/esm/models/exchange-status.d.ts +15 -0
- package/dist/esm/models/exchange-status.js +14 -0
- package/dist/esm/models/fill.d.ts +32 -0
- package/dist/esm/models/fill.js +21 -0
- package/dist/esm/models/generate-api-key-request.d.ts +17 -0
- package/dist/esm/models/generate-api-key-request.js +14 -0
- package/dist/esm/models/generate-api-key-response.d.ts +21 -0
- package/dist/esm/models/generate-api-key-response.js +14 -0
- package/dist/esm/models/get-api-keys-response.d.ts +18 -0
- package/dist/esm/models/get-api-keys-response.js +14 -0
- package/dist/esm/models/get-balance-response.d.ts +17 -0
- package/dist/esm/models/get-balance-response.js +14 -0
- package/dist/esm/models/get-communications-idresponse.d.ts +17 -0
- package/dist/esm/models/get-communications-idresponse.js +14 -0
- package/dist/esm/models/get-event-metadata-response.d.ts +14 -0
- package/dist/esm/models/get-event-metadata-response.js +14 -0
- package/dist/esm/models/get-event-response.d.ts +17 -0
- package/dist/esm/models/get-event-response.js +14 -0
- package/dist/esm/models/get-events-response.d.ts +16 -0
- package/dist/esm/models/get-events-response.js +14 -0
- package/dist/esm/models/get-exchange-announcements-response.d.ts +15 -0
- package/dist/esm/models/get-exchange-announcements-response.js +14 -0
- package/dist/esm/models/get-exchange-schedule-response-schedule.d.ts +21 -0
- package/dist/esm/models/get-exchange-schedule-response-schedule.js +14 -0
- package/dist/esm/models/get-exchange-schedule-response.d.ts +15 -0
- package/dist/esm/models/get-exchange-schedule-response.js +14 -0
- package/dist/esm/models/get-fills-response.d.ts +16 -0
- package/dist/esm/models/get-fills-response.js +14 -0
- package/dist/esm/models/get-market-candlesticks-response.d.ts +15 -0
- package/dist/esm/models/get-market-candlesticks-response.js +14 -0
- package/dist/esm/models/get-market-orderbook-response-orderbook.d.ts +16 -0
- package/dist/esm/models/get-market-orderbook-response-orderbook.js +14 -0
- package/dist/esm/models/get-market-orderbook-response.d.ts +15 -0
- package/dist/esm/models/get-market-orderbook-response.js +14 -0
- package/dist/esm/models/get-market-response.d.ts +15 -0
- package/dist/esm/models/get-market-response.js +14 -0
- package/dist/esm/models/get-markets-response.d.ts +16 -0
- package/dist/esm/models/get-markets-response.js +14 -0
- package/dist/esm/models/get-milestone-response.d.ts +15 -0
- package/dist/esm/models/get-milestone-response.js +14 -0
- package/dist/esm/models/get-milestones-response.d.ts +15 -0
- package/dist/esm/models/get-milestones-response.js +14 -0
- package/dist/esm/models/get-multivariate-event-collection-response.d.ts +15 -0
- package/dist/esm/models/get-multivariate-event-collection-response.js +14 -0
- package/dist/esm/models/get-multivariate-event-collections-response.d.ts +15 -0
- package/dist/esm/models/get-multivariate-event-collections-response.js +14 -0
- package/dist/esm/models/get-order-groups-response.d.ts +16 -0
- package/dist/esm/models/get-order-groups-response.js +14 -0
- package/dist/esm/models/get-order-queue-position-response.d.ts +14 -0
- package/dist/esm/models/get-order-queue-position-response.js +14 -0
- package/dist/esm/models/get-order-response.d.ts +15 -0
- package/dist/esm/models/get-order-response.js +14 -0
- package/dist/esm/models/get-orders-response.d.ts +16 -0
- package/dist/esm/models/get-orders-response.js +14 -0
- package/dist/esm/models/get-positions-response.d.ts +16 -0
- package/dist/esm/models/get-positions-response.js +14 -0
- package/dist/esm/models/get-queue-positions-request.d.ts +14 -0
- package/dist/esm/models/get-queue-positions-request.js +14 -0
- package/dist/esm/models/get-queue-positions-response.d.ts +16 -0
- package/dist/esm/models/get-queue-positions-response.js +14 -0
- package/dist/esm/models/get-quote-response.d.ts +15 -0
- package/dist/esm/models/get-quote-response.js +14 -0
- package/dist/esm/models/get-quotes-response.d.ts +15 -0
- package/dist/esm/models/get-quotes-response.js +14 -0
- package/dist/esm/models/get-rfqresponse.d.ts +15 -0
- package/dist/esm/models/get-rfqresponse.js +14 -0
- package/dist/esm/models/get-rfqs-response.d.ts +15 -0
- package/dist/esm/models/get-rfqs-response.js +14 -0
- package/dist/esm/models/get-series-by-ticker-response.d.ts +15 -0
- package/dist/esm/models/get-series-by-ticker-response.js +14 -0
- package/dist/esm/models/get-series-response.d.ts +15 -0
- package/dist/esm/models/get-series-response.js +14 -0
- package/dist/esm/models/get-settlements-response.d.ts +16 -0
- package/dist/esm/models/get-settlements-response.js +14 -0
- package/dist/esm/models/get-structured-target-response.d.ts +15 -0
- package/dist/esm/models/get-structured-target-response.js +14 -0
- package/dist/esm/models/get-structured-targets-response.d.ts +15 -0
- package/dist/esm/models/get-structured-targets-response.js +14 -0
- package/dist/esm/models/get-total-resting-order-value-response.d.ts +14 -0
- package/dist/esm/models/get-total-resting-order-value-response.js +14 -0
- package/dist/esm/models/get-trades-response.d.ts +16 -0
- package/dist/esm/models/get-trades-response.js +14 -0
- package/dist/esm/models/get-user-data-timestamp-response.d.ts +14 -0
- package/dist/esm/models/get-user-data-timestamp-response.js +14 -0
- package/dist/esm/models/index.d.ts +88 -0
- package/dist/esm/models/index.js +88 -0
- package/dist/esm/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-request-bundle-inner.js +14 -0
- package/dist/esm/models/lookup-bundle-request.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-request.js +14 -0
- package/dist/esm/models/lookup-bundle-response.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-response.js +14 -0
- package/dist/esm/models/market.d.ts +49 -0
- package/dist/esm/models/market.js +25 -0
- package/dist/esm/models/milestone.d.ts +16 -0
- package/dist/esm/models/milestone.js +14 -0
- package/dist/esm/models/multivariate-event-collection-events-inner.d.ts +17 -0
- package/dist/esm/models/multivariate-event-collection-events-inner.js +14 -0
- package/dist/esm/models/multivariate-event-collection.d.ts +18 -0
- package/dist/esm/models/multivariate-event-collection.js +14 -0
- package/dist/esm/models/order-group.d.ts +17 -0
- package/dist/esm/models/order-group.js +14 -0
- package/dist/esm/models/order.d.ts +49 -0
- package/dist/esm/models/order.js +31 -0
- package/dist/esm/models/orderbook-level.d.ts +15 -0
- package/dist/esm/models/orderbook-level.js +14 -0
- package/dist/esm/models/position.d.ts +26 -0
- package/dist/esm/models/position.js +17 -0
- package/dist/esm/models/quote.d.ts +27 -0
- package/dist/esm/models/quote.js +17 -0
- package/dist/esm/models/rfq.d.ts +26 -0
- package/dist/esm/models/rfq.js +17 -0
- package/dist/esm/models/series.d.ts +20 -0
- package/dist/esm/models/series.js +14 -0
- package/dist/esm/models/settlement.d.ts +24 -0
- package/dist/esm/models/settlement.js +17 -0
- package/dist/esm/models/structured-target.d.ts +16 -0
- package/dist/esm/models/structured-target.js +14 -0
- package/dist/esm/models/trade.d.ts +24 -0
- package/dist/esm/models/trade.js +17 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/accept-quote-request.d.ts +14 -0
- package/dist/models/accept-quote-request.js +15 -0
- package/dist/models/amend-order-request.d.ts +16 -0
- package/dist/models/amend-order-request.js +15 -0
- package/dist/models/amend-order-response.d.ts +15 -0
- package/dist/models/amend-order-response.js +15 -0
- package/dist/models/announcement.d.ts +28 -0
- package/dist/models/announcement.js +25 -0
- package/dist/models/api-key.d.ts +25 -0
- package/dist/models/api-key.js +15 -0
- package/dist/models/batch-cancel-orders-request.d.ts +14 -0
- package/dist/models/batch-cancel-orders-request.js +15 -0
- package/dist/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
- package/dist/models/batch-cancel-orders-response-responses-inner.js +15 -0
- package/dist/models/batch-cancel-orders-response.d.ts +15 -0
- package/dist/models/batch-cancel-orders-response.js +15 -0
- package/dist/models/batch-create-orders-request.d.ts +15 -0
- package/dist/models/batch-create-orders-request.js +15 -0
- package/dist/models/batch-create-orders-response-responses-inner.d.ts +17 -0
- package/dist/models/batch-create-orders-response-responses-inner.js +15 -0
- package/dist/models/batch-create-orders-response.d.ts +15 -0
- package/dist/models/batch-create-orders-response.js +15 -0
- package/dist/models/cancel-order-response.d.ts +16 -0
- package/dist/models/cancel-order-response.js +15 -0
- package/dist/models/candlestick.d.ts +20 -0
- package/dist/models/candlestick.js +15 -0
- package/dist/models/create-api-key-request.d.ts +21 -0
- package/dist/models/create-api-key-request.js +15 -0
- package/dist/models/create-api-key-response.d.ts +17 -0
- package/dist/models/create-api-key-response.js +15 -0
- package/dist/models/create-order-group-request.d.ts +14 -0
- package/dist/models/create-order-group-request.js +15 -0
- package/dist/models/create-order-group-response.d.ts +15 -0
- package/dist/models/create-order-group-response.js +15 -0
- package/dist/models/create-order-request.d.ts +39 -0
- package/dist/models/create-order-request.js +28 -0
- package/dist/models/create-order-response.d.ts +15 -0
- package/dist/models/create-order-response.js +15 -0
- package/dist/models/create-quote-request.d.ts +16 -0
- package/dist/models/create-quote-request.js +15 -0
- package/dist/models/create-quote-response.d.ts +15 -0
- package/dist/models/create-quote-response.js +15 -0
- package/dist/models/create-rfqrequest.d.ts +22 -0
- package/dist/models/create-rfqrequest.js +20 -0
- package/dist/models/create-rfqresponse.d.ts +15 -0
- package/dist/models/create-rfqresponse.js +15 -0
- package/dist/models/daily-schedule.d.ts +15 -0
- package/dist/models/daily-schedule.js +15 -0
- package/dist/models/decrease-order-request.d.ts +14 -0
- package/dist/models/decrease-order-request.js +15 -0
- package/dist/models/decrease-order-response.d.ts +15 -0
- package/dist/models/decrease-order-response.js +15 -0
- package/dist/models/error-response-error.d.ts +25 -0
- package/dist/models/error-response-error.js +15 -0
- package/dist/models/error-response.d.ts +15 -0
- package/dist/models/error-response.js +15 -0
- package/dist/models/event.d.ts +26 -0
- package/dist/models/event.js +21 -0
- package/dist/models/exchange-status.d.ts +15 -0
- package/dist/models/exchange-status.js +15 -0
- package/dist/models/fill.d.ts +32 -0
- package/dist/models/fill.js +24 -0
- package/dist/models/generate-api-key-request.d.ts +17 -0
- package/dist/models/generate-api-key-request.js +15 -0
- package/dist/models/generate-api-key-response.d.ts +21 -0
- package/dist/models/generate-api-key-response.js +15 -0
- package/dist/models/get-api-keys-response.d.ts +18 -0
- package/dist/models/get-api-keys-response.js +15 -0
- package/dist/models/get-balance-response.d.ts +17 -0
- package/dist/models/get-balance-response.js +15 -0
- package/dist/models/get-communications-idresponse.d.ts +17 -0
- package/dist/models/get-communications-idresponse.js +15 -0
- package/dist/models/get-event-metadata-response.d.ts +14 -0
- package/dist/models/get-event-metadata-response.js +15 -0
- package/dist/models/get-event-response.d.ts +17 -0
- package/dist/models/get-event-response.js +15 -0
- package/dist/models/get-events-response.d.ts +16 -0
- package/dist/models/get-events-response.js +15 -0
- package/dist/models/get-exchange-announcements-response.d.ts +15 -0
- package/dist/models/get-exchange-announcements-response.js +15 -0
- package/dist/models/get-exchange-schedule-response-schedule.d.ts +21 -0
- package/dist/models/get-exchange-schedule-response-schedule.js +15 -0
- package/dist/models/get-exchange-schedule-response.d.ts +15 -0
- package/dist/models/get-exchange-schedule-response.js +15 -0
- package/dist/models/get-fills-response.d.ts +16 -0
- package/dist/models/get-fills-response.js +15 -0
- package/dist/models/get-market-candlesticks-response.d.ts +15 -0
- package/dist/models/get-market-candlesticks-response.js +15 -0
- package/dist/models/get-market-orderbook-response-orderbook.d.ts +16 -0
- package/dist/models/get-market-orderbook-response-orderbook.js +15 -0
- package/dist/models/get-market-orderbook-response.d.ts +15 -0
- package/dist/models/get-market-orderbook-response.js +15 -0
- package/dist/models/get-market-response.d.ts +15 -0
- package/dist/models/get-market-response.js +15 -0
- package/dist/models/get-markets-response.d.ts +16 -0
- package/dist/models/get-markets-response.js +15 -0
- package/dist/models/get-milestone-response.d.ts +15 -0
- package/dist/models/get-milestone-response.js +15 -0
- package/dist/models/get-milestones-response.d.ts +15 -0
- package/dist/models/get-milestones-response.js +15 -0
- package/dist/models/get-multivariate-event-collection-response.d.ts +15 -0
- package/dist/models/get-multivariate-event-collection-response.js +15 -0
- package/dist/models/get-multivariate-event-collections-response.d.ts +15 -0
- package/dist/models/get-multivariate-event-collections-response.js +15 -0
- package/dist/models/get-order-groups-response.d.ts +16 -0
- package/dist/models/get-order-groups-response.js +15 -0
- package/dist/models/get-order-queue-position-response.d.ts +14 -0
- package/dist/models/get-order-queue-position-response.js +15 -0
- package/dist/models/get-order-response.d.ts +15 -0
- package/dist/models/get-order-response.js +15 -0
- package/dist/models/get-orders-response.d.ts +16 -0
- package/dist/models/get-orders-response.js +15 -0
- package/dist/models/get-positions-response.d.ts +16 -0
- package/dist/models/get-positions-response.js +15 -0
- package/dist/models/get-queue-positions-request.d.ts +14 -0
- package/dist/models/get-queue-positions-request.js +15 -0
- package/dist/models/get-queue-positions-response.d.ts +16 -0
- package/dist/models/get-queue-positions-response.js +15 -0
- package/dist/models/get-quote-response.d.ts +15 -0
- package/dist/models/get-quote-response.js +15 -0
- package/dist/models/get-quotes-response.d.ts +15 -0
- package/dist/models/get-quotes-response.js +15 -0
- package/dist/models/get-rfqresponse.d.ts +15 -0
- package/dist/models/get-rfqresponse.js +15 -0
- package/dist/models/get-rfqs-response.d.ts +15 -0
- package/dist/models/get-rfqs-response.js +15 -0
- package/dist/models/get-series-by-ticker-response.d.ts +15 -0
- package/dist/models/get-series-by-ticker-response.js +15 -0
- package/dist/models/get-series-response.d.ts +15 -0
- package/dist/models/get-series-response.js +15 -0
- package/dist/models/get-settlements-response.d.ts +16 -0
- package/dist/models/get-settlements-response.js +15 -0
- package/dist/models/get-structured-target-response.d.ts +15 -0
- package/dist/models/get-structured-target-response.js +15 -0
- package/dist/models/get-structured-targets-response.d.ts +15 -0
- package/dist/models/get-structured-targets-response.js +15 -0
- package/dist/models/get-total-resting-order-value-response.d.ts +14 -0
- package/dist/models/get-total-resting-order-value-response.js +15 -0
- package/dist/models/get-trades-response.d.ts +16 -0
- package/dist/models/get-trades-response.js +15 -0
- package/dist/models/get-user-data-timestamp-response.d.ts +14 -0
- package/dist/models/get-user-data-timestamp-response.js +15 -0
- package/dist/models/index.d.ts +88 -0
- package/dist/models/index.js +104 -0
- package/dist/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
- package/dist/models/lookup-bundle-request-bundle-inner.js +15 -0
- package/dist/models/lookup-bundle-request.d.ts +15 -0
- package/dist/models/lookup-bundle-request.js +15 -0
- package/dist/models/lookup-bundle-response.d.ts +15 -0
- package/dist/models/lookup-bundle-response.js +15 -0
- package/dist/models/market.d.ts +49 -0
- package/dist/models/market.js +28 -0
- package/dist/models/milestone.d.ts +16 -0
- package/dist/models/milestone.js +15 -0
- package/dist/models/multivariate-event-collection-events-inner.d.ts +17 -0
- package/dist/models/multivariate-event-collection-events-inner.js +15 -0
- package/dist/models/multivariate-event-collection.d.ts +18 -0
- package/dist/models/multivariate-event-collection.js +15 -0
- package/dist/models/order-group.d.ts +17 -0
- package/dist/models/order-group.js +15 -0
- package/dist/models/order.d.ts +49 -0
- package/dist/models/order.js +34 -0
- package/dist/models/orderbook-level.d.ts +15 -0
- package/dist/models/orderbook-level.js +15 -0
- package/dist/models/position.d.ts +26 -0
- package/dist/models/position.js +20 -0
- package/dist/models/quote.d.ts +27 -0
- package/dist/models/quote.js +20 -0
- package/dist/models/rfq.d.ts +26 -0
- package/dist/models/rfq.js +20 -0
- package/dist/models/series.d.ts +20 -0
- package/dist/models/series.js +15 -0
- package/dist/models/settlement.d.ts +24 -0
- package/dist/models/settlement.js +20 -0
- package/dist/models/structured-target.d.ts +16 -0
- package/dist/models/structured-target.js +15 -0
- package/dist/models/trade.d.ts +24 -0
- package/dist/models/trade.js +20 -0
- package/docs/AcceptQuoteRequest.md +20 -0
- package/docs/AmendOrderRequest.md +24 -0
- package/docs/AmendOrderResponse.md +20 -0
- package/docs/Announcement.md +26 -0
- package/docs/ApiKey.md +24 -0
- package/docs/ApiKeysApi.md +223 -0
- package/docs/BatchCancelOrdersRequest.md +20 -0
- package/docs/BatchCancelOrdersResponse.md +20 -0
- package/docs/BatchCancelOrdersResponseResponsesInner.md +24 -0
- package/docs/BatchCreateOrdersRequest.md +20 -0
- package/docs/BatchCreateOrdersResponse.md +20 -0
- package/docs/BatchCreateOrdersResponseResponsesInner.md +22 -0
- package/docs/CancelOrderResponse.md +22 -0
- package/docs/Candlestick.md +32 -0
- package/docs/CommunicationsApi.md +595 -0
- package/docs/CreateApiKeyRequest.md +22 -0
- package/docs/CreateApiKeyResponse.md +20 -0
- package/docs/CreateOrderGroupRequest.md +20 -0
- package/docs/CreateOrderGroupResponse.md +20 -0
- package/docs/CreateOrderRequest.md +40 -0
- package/docs/CreateOrderResponse.md +20 -0
- package/docs/CreateQuoteRequest.md +24 -0
- package/docs/CreateQuoteResponse.md +20 -0
- package/docs/CreateRFQRequest.md +26 -0
- package/docs/CreateRFQResponse.md +20 -0
- package/docs/DailySchedule.md +22 -0
- package/docs/DecreaseOrderRequest.md +20 -0
- package/docs/DecreaseOrderResponse.md +20 -0
- package/docs/ErrorResponse.md +20 -0
- package/docs/ErrorResponseError.md +24 -0
- package/docs/Event.md +30 -0
- package/docs/EventsApi.md +190 -0
- package/docs/ExchangeApi.md +192 -0
- package/docs/ExchangeStatus.md +22 -0
- package/docs/Fill.md +36 -0
- package/docs/GenerateApiKeyRequest.md +20 -0
- package/docs/GenerateApiKeyResponse.md +22 -0
- package/docs/GetApiKeysResponse.md +20 -0
- package/docs/GetBalanceResponse.md +20 -0
- package/docs/GetCommunicationsIDResponse.md +20 -0
- package/docs/GetEventMetadataResponse.md +20 -0
- package/docs/GetEventResponse.md +22 -0
- package/docs/GetEventsResponse.md +22 -0
- package/docs/GetExchangeAnnouncementsResponse.md +20 -0
- package/docs/GetExchangeScheduleResponse.md +20 -0
- package/docs/GetExchangeScheduleResponseSchedule.md +32 -0
- package/docs/GetFillsResponse.md +22 -0
- package/docs/GetMarketCandlesticksResponse.md +20 -0
- package/docs/GetMarketOrderbookResponse.md +20 -0
- package/docs/GetMarketOrderbookResponseOrderbook.md +22 -0
- package/docs/GetMarketResponse.md +20 -0
- package/docs/GetMarketsResponse.md +22 -0
- package/docs/GetMilestoneResponse.md +20 -0
- package/docs/GetMilestonesResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionsResponse.md +20 -0
- package/docs/GetOrderGroupsResponse.md +22 -0
- package/docs/GetOrderQueuePositionResponse.md +20 -0
- package/docs/GetOrderResponse.md +20 -0
- package/docs/GetOrdersResponse.md +22 -0
- package/docs/GetPositionsResponse.md +22 -0
- package/docs/GetQueuePositionsRequest.md +20 -0
- package/docs/GetQueuePositionsResponse.md +20 -0
- package/docs/GetQuoteResponse.md +20 -0
- package/docs/GetQuotesResponse.md +20 -0
- package/docs/GetRFQResponse.md +20 -0
- package/docs/GetRFQsResponse.md +20 -0
- package/docs/GetSeriesByTickerResponse.md +20 -0
- package/docs/GetSeriesResponse.md +20 -0
- package/docs/GetSettlementsResponse.md +22 -0
- package/docs/GetStructuredTargetResponse.md +20 -0
- package/docs/GetStructuredTargetsResponse.md +20 -0
- package/docs/GetTotalRestingOrderValueResponse.md +20 -0
- package/docs/GetTradesResponse.md +22 -0
- package/docs/GetUserDataTimestampResponse.md +20 -0
- package/docs/LookupBundleRequest.md +20 -0
- package/docs/LookupBundleRequestBundleInner.md +22 -0
- package/docs/LookupBundleResponse.md +22 -0
- package/docs/Market.md +56 -0
- package/docs/MarketsApi.md +330 -0
- package/docs/Milestone.md +24 -0
- package/docs/MilestonesApi.md +119 -0
- package/docs/MultivariateCollectionsApi.md +176 -0
- package/docs/MultivariateEventCollection.md +26 -0
- package/docs/MultivariateEventCollectionEventsInner.md +26 -0
- package/docs/Order.md +46 -0
- package/docs/OrderGroup.md +26 -0
- package/docs/OrderbookLevel.md +22 -0
- package/docs/PortfolioApi.md +1109 -0
- package/docs/Position.md +34 -0
- package/docs/Quote.md +36 -0
- package/docs/RFQ.md +34 -0
- package/docs/Series.md +26 -0
- package/docs/SeriesApi.md +116 -0
- package/docs/Settlement.md +30 -0
- package/docs/StructuredTarget.md +24 -0
- package/docs/StructuredTargetsApi.md +119 -0
- package/docs/Trade.md +30 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/accept-quote-request.ts +20 -0
- package/models/amend-order-request.ts +22 -0
- package/models/amend-order-response.ts +23 -0
- package/models/announcement.ts +38 -0
- package/models/api-key.ts +31 -0
- package/models/batch-cancel-orders-request.ts +20 -0
- package/models/batch-cancel-orders-response-responses-inner.ts +25 -0
- package/models/batch-cancel-orders-response.ts +23 -0
- package/models/batch-create-orders-request.ts +23 -0
- package/models/batch-create-orders-response-responses-inner.ts +27 -0
- package/models/batch-create-orders-response.ts +23 -0
- package/models/cancel-order-response.ts +24 -0
- package/models/candlestick.ts +26 -0
- package/models/create-api-key-request.ts +27 -0
- package/models/create-api-key-response.ts +23 -0
- package/models/create-order-group-request.ts +20 -0
- package/models/create-order-group-response.ts +23 -0
- package/models/create-order-request.ts +50 -0
- package/models/create-order-response.ts +23 -0
- package/models/create-quote-request.ts +22 -0
- package/models/create-quote-response.ts +23 -0
- package/models/create-rfqrequest.ts +31 -0
- package/models/create-rfqresponse.ts +23 -0
- package/models/daily-schedule.ts +21 -0
- package/models/decrease-order-request.ts +20 -0
- package/models/decrease-order-response.ts +23 -0
- package/models/error-response-error.ts +31 -0
- package/models/error-response.ts +23 -0
- package/models/event.ts +37 -0
- package/models/exchange-status.ts +21 -0
- package/models/fill.ts +42 -0
- package/models/generate-api-key-request.ts +23 -0
- package/models/generate-api-key-response.ts +27 -0
- package/models/get-api-keys-response.ts +26 -0
- package/models/get-balance-response.ts +23 -0
- package/models/get-communications-idresponse.ts +23 -0
- package/models/get-event-metadata-response.ts +20 -0
- package/models/get-event-response.ts +27 -0
- package/models/get-events-response.ts +24 -0
- package/models/get-exchange-announcements-response.ts +23 -0
- package/models/get-exchange-schedule-response-schedule.ts +29 -0
- package/models/get-exchange-schedule-response.ts +23 -0
- package/models/get-fills-response.ts +24 -0
- package/models/get-market-candlesticks-response.ts +23 -0
- package/models/get-market-orderbook-response-orderbook.ts +24 -0
- package/models/get-market-orderbook-response.ts +23 -0
- package/models/get-market-response.ts +23 -0
- package/models/get-markets-response.ts +24 -0
- package/models/get-milestone-response.ts +23 -0
- package/models/get-milestones-response.ts +23 -0
- package/models/get-multivariate-event-collection-response.ts +23 -0
- package/models/get-multivariate-event-collections-response.ts +23 -0
- package/models/get-order-groups-response.ts +24 -0
- package/models/get-order-queue-position-response.ts +20 -0
- package/models/get-order-response.ts +23 -0
- package/models/get-orders-response.ts +24 -0
- package/models/get-positions-response.ts +24 -0
- package/models/get-queue-positions-request.ts +20 -0
- package/models/get-queue-positions-response.ts +20 -0
- package/models/get-quote-response.ts +23 -0
- package/models/get-quotes-response.ts +23 -0
- package/models/get-rfqresponse.ts +23 -0
- package/models/get-rfqs-response.ts +23 -0
- package/models/get-series-by-ticker-response.ts +23 -0
- package/models/get-series-response.ts +23 -0
- package/models/get-settlements-response.ts +24 -0
- package/models/get-structured-target-response.ts +23 -0
- package/models/get-structured-targets-response.ts +23 -0
- package/models/get-total-resting-order-value-response.ts +20 -0
- package/models/get-trades-response.ts +24 -0
- package/models/get-user-data-timestamp-response.ts +20 -0
- package/models/index.ts +88 -0
- package/models/lookup-bundle-request-bundle-inner.ts +21 -0
- package/models/lookup-bundle-request.ts +23 -0
- package/models/lookup-bundle-response.ts +21 -0
- package/models/market.ts +59 -0
- package/models/milestone.ts +22 -0
- package/models/multivariate-event-collection-events-inner.ts +23 -0
- package/models/multivariate-event-collection.ts +26 -0
- package/models/order-group.ts +23 -0
- package/models/order.ts +61 -0
- package/models/orderbook-level.ts +21 -0
- package/models/position.ts +35 -0
- package/models/quote.ts +36 -0
- package/models/rfq.ts +35 -0
- package/models/series.ts +26 -0
- package/models/settlement.ts +33 -0
- package/models/structured-target.ts +22 -0
- package/models/trade.ts +33 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,1498 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kalshi Trading API
|
|
6
|
+
* Complete API for the Kalshi trading platform including all handlers for SDK generation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@kalshi.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PortfolioApi = exports.PortfolioApiFactory = exports.PortfolioApiFp = exports.PortfolioApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../base");
|
|
35
|
+
/**
|
|
36
|
+
* PortfolioApi - axios parameter creator
|
|
37
|
+
*/
|
|
38
|
+
const PortfolioApiAxiosParamCreator = function (configuration) {
|
|
39
|
+
return {
|
|
40
|
+
/**
|
|
41
|
+
* Amend an existing order
|
|
42
|
+
* @summary Amend Order
|
|
43
|
+
* @param {string} orderId Order ID
|
|
44
|
+
* @param {AmendOrderRequest} amendOrderRequest
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
amendOrder: (orderId_1, amendOrderRequest_1, ...args_1) => __awaiter(this, [orderId_1, amendOrderRequest_1, ...args_1], void 0, function* (orderId, amendOrderRequest, options = {}) {
|
|
49
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('amendOrder', 'orderId', orderId);
|
|
51
|
+
// verify required parameter 'amendOrderRequest' is not null or undefined
|
|
52
|
+
(0, common_1.assertParamExists)('amendOrder', 'amendOrderRequest', amendOrderRequest);
|
|
53
|
+
const localVarPath = `/portfolio/orders/{order_id}/amend`
|
|
54
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication bearerAuth required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(amendOrderRequest, localVarRequestOptions, configuration);
|
|
72
|
+
return {
|
|
73
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
}),
|
|
77
|
+
/**
|
|
78
|
+
* Cancel multiple orders in a single request
|
|
79
|
+
* @summary Batch Cancel Orders
|
|
80
|
+
* @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
batchCancelOrders: (batchCancelOrdersRequest_1, ...args_1) => __awaiter(this, [batchCancelOrdersRequest_1, ...args_1], void 0, function* (batchCancelOrdersRequest, options = {}) {
|
|
85
|
+
// verify required parameter 'batchCancelOrdersRequest' is not null or undefined
|
|
86
|
+
(0, common_1.assertParamExists)('batchCancelOrders', 'batchCancelOrdersRequest', batchCancelOrdersRequest);
|
|
87
|
+
const localVarPath = `/portfolio/orders/batched`;
|
|
88
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
90
|
+
let baseOptions;
|
|
91
|
+
if (configuration) {
|
|
92
|
+
baseOptions = configuration.baseOptions;
|
|
93
|
+
}
|
|
94
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
95
|
+
const localVarHeaderParameter = {};
|
|
96
|
+
const localVarQueryParameter = {};
|
|
97
|
+
// authentication bearerAuth required
|
|
98
|
+
// http bearer authentication required
|
|
99
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
101
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
104
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchCancelOrdersRequest, localVarRequestOptions, configuration);
|
|
105
|
+
return {
|
|
106
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
/**
|
|
111
|
+
* Create multiple orders in a single request
|
|
112
|
+
* @summary Batch Create Orders
|
|
113
|
+
* @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
batchCreateOrders: (batchCreateOrdersRequest_1, ...args_1) => __awaiter(this, [batchCreateOrdersRequest_1, ...args_1], void 0, function* (batchCreateOrdersRequest, options = {}) {
|
|
118
|
+
// verify required parameter 'batchCreateOrdersRequest' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('batchCreateOrders', 'batchCreateOrdersRequest', batchCreateOrdersRequest);
|
|
120
|
+
const localVarPath = `/portfolio/orders/batched`;
|
|
121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
+
let baseOptions;
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
}
|
|
127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
128
|
+
const localVarHeaderParameter = {};
|
|
129
|
+
const localVarQueryParameter = {};
|
|
130
|
+
// authentication bearerAuth required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchCreateOrdersRequest, localVarRequestOptions, configuration);
|
|
138
|
+
return {
|
|
139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
}),
|
|
143
|
+
/**
|
|
144
|
+
* Cancel an order
|
|
145
|
+
* @summary Cancel Order
|
|
146
|
+
* @param {string} orderId Order ID
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
cancelOrder: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
151
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
152
|
+
(0, common_1.assertParamExists)('cancelOrder', 'orderId', orderId);
|
|
153
|
+
const localVarPath = `/portfolio/orders/{order_id}`
|
|
154
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
if (configuration) {
|
|
159
|
+
baseOptions = configuration.baseOptions;
|
|
160
|
+
}
|
|
161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
163
|
+
const localVarQueryParameter = {};
|
|
164
|
+
// authentication bearerAuth required
|
|
165
|
+
// http bearer authentication required
|
|
166
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
170
|
+
return {
|
|
171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
* Create a new order
|
|
177
|
+
* @summary Create Order
|
|
178
|
+
* @param {CreateOrderRequest} createOrderRequest
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
createOrder: (createOrderRequest_1, ...args_1) => __awaiter(this, [createOrderRequest_1, ...args_1], void 0, function* (createOrderRequest, options = {}) {
|
|
183
|
+
// verify required parameter 'createOrderRequest' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('createOrder', 'createOrderRequest', createOrderRequest);
|
|
185
|
+
const localVarPath = `/portfolio/orders`;
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication bearerAuth required
|
|
196
|
+
// http bearer authentication required
|
|
197
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderRequest, localVarRequestOptions, configuration);
|
|
203
|
+
return {
|
|
204
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
}),
|
|
208
|
+
/**
|
|
209
|
+
* Create a new order group
|
|
210
|
+
* @summary Create Order Group
|
|
211
|
+
* @param {CreateOrderGroupRequest} createOrderGroupRequest
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
createOrderGroup: (createOrderGroupRequest_1, ...args_1) => __awaiter(this, [createOrderGroupRequest_1, ...args_1], void 0, function* (createOrderGroupRequest, options = {}) {
|
|
216
|
+
// verify required parameter 'createOrderGroupRequest' is not null or undefined
|
|
217
|
+
(0, common_1.assertParamExists)('createOrderGroup', 'createOrderGroupRequest', createOrderGroupRequest);
|
|
218
|
+
const localVarPath = `/portfolio/order_groups/create`;
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
}
|
|
225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
226
|
+
const localVarHeaderParameter = {};
|
|
227
|
+
const localVarQueryParameter = {};
|
|
228
|
+
// authentication bearerAuth required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
231
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderGroupRequest, localVarRequestOptions, configuration);
|
|
236
|
+
return {
|
|
237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
};
|
|
240
|
+
}),
|
|
241
|
+
/**
|
|
242
|
+
* Decrease the size of an existing order
|
|
243
|
+
* @summary Decrease Order
|
|
244
|
+
* @param {string} orderId Order ID
|
|
245
|
+
* @param {DecreaseOrderRequest} decreaseOrderRequest
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
decreaseOrder: (orderId_1, decreaseOrderRequest_1, ...args_1) => __awaiter(this, [orderId_1, decreaseOrderRequest_1, ...args_1], void 0, function* (orderId, decreaseOrderRequest, options = {}) {
|
|
250
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
251
|
+
(0, common_1.assertParamExists)('decreaseOrder', 'orderId', orderId);
|
|
252
|
+
// verify required parameter 'decreaseOrderRequest' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('decreaseOrder', 'decreaseOrderRequest', decreaseOrderRequest);
|
|
254
|
+
const localVarPath = `/portfolio/orders/{order_id}/decrease`
|
|
255
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
256
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
257
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
258
|
+
let baseOptions;
|
|
259
|
+
if (configuration) {
|
|
260
|
+
baseOptions = configuration.baseOptions;
|
|
261
|
+
}
|
|
262
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
263
|
+
const localVarHeaderParameter = {};
|
|
264
|
+
const localVarQueryParameter = {};
|
|
265
|
+
// authentication bearerAuth required
|
|
266
|
+
// http bearer authentication required
|
|
267
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
268
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
269
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
271
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
272
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(decreaseOrderRequest, localVarRequestOptions, configuration);
|
|
273
|
+
return {
|
|
274
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
275
|
+
options: localVarRequestOptions,
|
|
276
|
+
};
|
|
277
|
+
}),
|
|
278
|
+
/**
|
|
279
|
+
* Delete an order group
|
|
280
|
+
* @summary Delete Order Group
|
|
281
|
+
* @param {string} orderGroupId Order group ID
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
deleteOrderGroup: (orderGroupId_1, ...args_1) => __awaiter(this, [orderGroupId_1, ...args_1], void 0, function* (orderGroupId, options = {}) {
|
|
286
|
+
// verify required parameter 'orderGroupId' is not null or undefined
|
|
287
|
+
(0, common_1.assertParamExists)('deleteOrderGroup', 'orderGroupId', orderGroupId);
|
|
288
|
+
const localVarPath = `/portfolio/order_groups/{order_group_id}`
|
|
289
|
+
.replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
|
|
290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
292
|
+
let baseOptions;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
}
|
|
296
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
297
|
+
const localVarHeaderParameter = {};
|
|
298
|
+
const localVarQueryParameter = {};
|
|
299
|
+
// authentication bearerAuth required
|
|
300
|
+
// http bearer authentication required
|
|
301
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
305
|
+
return {
|
|
306
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
307
|
+
options: localVarRequestOptions,
|
|
308
|
+
};
|
|
309
|
+
}),
|
|
310
|
+
/**
|
|
311
|
+
* Get the user\'s current balance
|
|
312
|
+
* @summary Get Balance
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
getBalance: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
317
|
+
const localVarPath = `/portfolio/balance`;
|
|
318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
319
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
320
|
+
let baseOptions;
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
}
|
|
324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
325
|
+
const localVarHeaderParameter = {};
|
|
326
|
+
const localVarQueryParameter = {};
|
|
327
|
+
// authentication bearerAuth required
|
|
328
|
+
// http bearer authentication required
|
|
329
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
330
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
333
|
+
return {
|
|
334
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
338
|
+
/**
|
|
339
|
+
* Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
|
|
340
|
+
* @summary Get Fills
|
|
341
|
+
* @param {string} [ticker] Filter by market ticker
|
|
342
|
+
* @param {string} [orderId] Filter by order ID
|
|
343
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
344
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
345
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
346
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
getFills: (ticker_1, orderId_1, minTs_1, maxTs_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [ticker_1, orderId_1, minTs_1, maxTs_1, limit_1, cursor_1, ...args_1], void 0, function* (ticker, orderId, minTs, maxTs, limit, cursor, options = {}) {
|
|
351
|
+
const localVarPath = `/portfolio/fills`;
|
|
352
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
353
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
354
|
+
let baseOptions;
|
|
355
|
+
if (configuration) {
|
|
356
|
+
baseOptions = configuration.baseOptions;
|
|
357
|
+
}
|
|
358
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
359
|
+
const localVarHeaderParameter = {};
|
|
360
|
+
const localVarQueryParameter = {};
|
|
361
|
+
// authentication bearerAuth required
|
|
362
|
+
// http bearer authentication required
|
|
363
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
364
|
+
if (ticker !== undefined) {
|
|
365
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
366
|
+
}
|
|
367
|
+
if (orderId !== undefined) {
|
|
368
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
369
|
+
}
|
|
370
|
+
if (minTs !== undefined) {
|
|
371
|
+
localVarQueryParameter['min_ts'] = minTs;
|
|
372
|
+
}
|
|
373
|
+
if (maxTs !== undefined) {
|
|
374
|
+
localVarQueryParameter['max_ts'] = maxTs;
|
|
375
|
+
}
|
|
376
|
+
if (limit !== undefined) {
|
|
377
|
+
localVarQueryParameter['limit'] = limit;
|
|
378
|
+
}
|
|
379
|
+
if (cursor !== undefined) {
|
|
380
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
381
|
+
}
|
|
382
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
385
|
+
return {
|
|
386
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
387
|
+
options: localVarRequestOptions,
|
|
388
|
+
};
|
|
389
|
+
}),
|
|
390
|
+
/**
|
|
391
|
+
* Get a single order by ID
|
|
392
|
+
* @summary Get Order
|
|
393
|
+
* @param {string} orderId Order ID
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
getOrder: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
398
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
|
|
400
|
+
const localVarPath = `/portfolio/orders/{order_id}`
|
|
401
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
403
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
404
|
+
let baseOptions;
|
|
405
|
+
if (configuration) {
|
|
406
|
+
baseOptions = configuration.baseOptions;
|
|
407
|
+
}
|
|
408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
409
|
+
const localVarHeaderParameter = {};
|
|
410
|
+
const localVarQueryParameter = {};
|
|
411
|
+
// authentication bearerAuth required
|
|
412
|
+
// http bearer authentication required
|
|
413
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
414
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
416
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
417
|
+
return {
|
|
418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
419
|
+
options: localVarRequestOptions,
|
|
420
|
+
};
|
|
421
|
+
}),
|
|
422
|
+
/**
|
|
423
|
+
* Get order groups for the logged-in user
|
|
424
|
+
* @summary Get Order Groups
|
|
425
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
426
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
427
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
getOrderGroups: (status_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [status_1, limit_1, cursor_1, ...args_1], void 0, function* (status, limit, cursor, options = {}) {
|
|
432
|
+
const localVarPath = `/portfolio/order_groups`;
|
|
433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
434
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
435
|
+
let baseOptions;
|
|
436
|
+
if (configuration) {
|
|
437
|
+
baseOptions = configuration.baseOptions;
|
|
438
|
+
}
|
|
439
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
440
|
+
const localVarHeaderParameter = {};
|
|
441
|
+
const localVarQueryParameter = {};
|
|
442
|
+
// authentication bearerAuth required
|
|
443
|
+
// http bearer authentication required
|
|
444
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
445
|
+
if (status !== undefined) {
|
|
446
|
+
localVarQueryParameter['status'] = status;
|
|
447
|
+
}
|
|
448
|
+
if (limit !== undefined) {
|
|
449
|
+
localVarQueryParameter['limit'] = limit;
|
|
450
|
+
}
|
|
451
|
+
if (cursor !== undefined) {
|
|
452
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
453
|
+
}
|
|
454
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
455
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
456
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
457
|
+
return {
|
|
458
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
459
|
+
options: localVarRequestOptions,
|
|
460
|
+
};
|
|
461
|
+
}),
|
|
462
|
+
/**
|
|
463
|
+
* Get the queue position for an order
|
|
464
|
+
* @summary Get Order Queue Position
|
|
465
|
+
* @param {string} orderId Order ID
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
getOrderQueuePosition: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
470
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
471
|
+
(0, common_1.assertParamExists)('getOrderQueuePosition', 'orderId', orderId);
|
|
472
|
+
const localVarPath = `/portfolio/orders/{order_id}/queue_position`
|
|
473
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
475
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
476
|
+
let baseOptions;
|
|
477
|
+
if (configuration) {
|
|
478
|
+
baseOptions = configuration.baseOptions;
|
|
479
|
+
}
|
|
480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
481
|
+
const localVarHeaderParameter = {};
|
|
482
|
+
const localVarQueryParameter = {};
|
|
483
|
+
// authentication bearerAuth required
|
|
484
|
+
// http bearer authentication required
|
|
485
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
486
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
489
|
+
return {
|
|
490
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
491
|
+
options: localVarRequestOptions,
|
|
492
|
+
};
|
|
493
|
+
}),
|
|
494
|
+
/**
|
|
495
|
+
* Get orders for the logged-in user
|
|
496
|
+
* @summary Get Orders
|
|
497
|
+
* @param {string} [ticker] Filter by market ticker
|
|
498
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
499
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
500
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
501
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
502
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
503
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
getOrders: (ticker_1, eventTicker_1, minTs_1, maxTs_1, status_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [ticker_1, eventTicker_1, minTs_1, maxTs_1, status_1, limit_1, cursor_1, ...args_1], void 0, function* (ticker, eventTicker, minTs, maxTs, status, limit, cursor, options = {}) {
|
|
508
|
+
const localVarPath = `/portfolio/orders`;
|
|
509
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
511
|
+
let baseOptions;
|
|
512
|
+
if (configuration) {
|
|
513
|
+
baseOptions = configuration.baseOptions;
|
|
514
|
+
}
|
|
515
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
517
|
+
const localVarQueryParameter = {};
|
|
518
|
+
// authentication bearerAuth required
|
|
519
|
+
// http bearer authentication required
|
|
520
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
521
|
+
if (ticker !== undefined) {
|
|
522
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
523
|
+
}
|
|
524
|
+
if (eventTicker !== undefined) {
|
|
525
|
+
localVarQueryParameter['event_ticker'] = eventTicker;
|
|
526
|
+
}
|
|
527
|
+
if (minTs !== undefined) {
|
|
528
|
+
localVarQueryParameter['min_ts'] = minTs;
|
|
529
|
+
}
|
|
530
|
+
if (maxTs !== undefined) {
|
|
531
|
+
localVarQueryParameter['max_ts'] = maxTs;
|
|
532
|
+
}
|
|
533
|
+
if (status !== undefined) {
|
|
534
|
+
localVarQueryParameter['status'] = status;
|
|
535
|
+
}
|
|
536
|
+
if (limit !== undefined) {
|
|
537
|
+
localVarQueryParameter['limit'] = limit;
|
|
538
|
+
}
|
|
539
|
+
if (cursor !== undefined) {
|
|
540
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
541
|
+
}
|
|
542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
544
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
545
|
+
return {
|
|
546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
547
|
+
options: localVarRequestOptions,
|
|
548
|
+
};
|
|
549
|
+
}),
|
|
550
|
+
/**
|
|
551
|
+
* Get positions for the logged-in user
|
|
552
|
+
* @summary Get Positions
|
|
553
|
+
* @param {string} [ticker] Filter by market ticker
|
|
554
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
555
|
+
* @param {number} [countDown] Filter positions by minimum count down value
|
|
556
|
+
* @param {number} [countUp] Filter positions by minimum count up value
|
|
557
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
558
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
getPositions: (ticker_1, eventTicker_1, countDown_1, countUp_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [ticker_1, eventTicker_1, countDown_1, countUp_1, limit_1, cursor_1, ...args_1], void 0, function* (ticker, eventTicker, countDown, countUp, limit, cursor, options = {}) {
|
|
563
|
+
const localVarPath = `/portfolio/positions`;
|
|
564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
565
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
566
|
+
let baseOptions;
|
|
567
|
+
if (configuration) {
|
|
568
|
+
baseOptions = configuration.baseOptions;
|
|
569
|
+
}
|
|
570
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
571
|
+
const localVarHeaderParameter = {};
|
|
572
|
+
const localVarQueryParameter = {};
|
|
573
|
+
// authentication bearerAuth required
|
|
574
|
+
// http bearer authentication required
|
|
575
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
576
|
+
if (ticker !== undefined) {
|
|
577
|
+
localVarQueryParameter['ticker'] = ticker;
|
|
578
|
+
}
|
|
579
|
+
if (eventTicker !== undefined) {
|
|
580
|
+
localVarQueryParameter['event_ticker'] = eventTicker;
|
|
581
|
+
}
|
|
582
|
+
if (countDown !== undefined) {
|
|
583
|
+
localVarQueryParameter['count_down'] = countDown;
|
|
584
|
+
}
|
|
585
|
+
if (countUp !== undefined) {
|
|
586
|
+
localVarQueryParameter['count_up'] = countUp;
|
|
587
|
+
}
|
|
588
|
+
if (limit !== undefined) {
|
|
589
|
+
localVarQueryParameter['limit'] = limit;
|
|
590
|
+
}
|
|
591
|
+
if (cursor !== undefined) {
|
|
592
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
593
|
+
}
|
|
594
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
595
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
596
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
597
|
+
return {
|
|
598
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
599
|
+
options: localVarRequestOptions,
|
|
600
|
+
};
|
|
601
|
+
}),
|
|
602
|
+
/**
|
|
603
|
+
* Get queue positions for multiple orders
|
|
604
|
+
* @summary Get Queue Positions
|
|
605
|
+
* @param {GetQueuePositionsRequest} getQueuePositionsRequest
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
getQueuePositions: (getQueuePositionsRequest_1, ...args_1) => __awaiter(this, [getQueuePositionsRequest_1, ...args_1], void 0, function* (getQueuePositionsRequest, options = {}) {
|
|
610
|
+
// verify required parameter 'getQueuePositionsRequest' is not null or undefined
|
|
611
|
+
(0, common_1.assertParamExists)('getQueuePositions', 'getQueuePositionsRequest', getQueuePositionsRequest);
|
|
612
|
+
const localVarPath = `/portfolio/orders/queue_positions`;
|
|
613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
614
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
615
|
+
let baseOptions;
|
|
616
|
+
if (configuration) {
|
|
617
|
+
baseOptions = configuration.baseOptions;
|
|
618
|
+
}
|
|
619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
620
|
+
const localVarHeaderParameter = {};
|
|
621
|
+
const localVarQueryParameter = {};
|
|
622
|
+
// authentication bearerAuth required
|
|
623
|
+
// http bearer authentication required
|
|
624
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getQueuePositionsRequest, localVarRequestOptions, configuration);
|
|
630
|
+
return {
|
|
631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
632
|
+
options: localVarRequestOptions,
|
|
633
|
+
};
|
|
634
|
+
}),
|
|
635
|
+
/**
|
|
636
|
+
* Get settlements for the logged-in user
|
|
637
|
+
* @summary Get Settlements
|
|
638
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
639
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
getSettlements: (limit_1, cursor_1, ...args_1) => __awaiter(this, [limit_1, cursor_1, ...args_1], void 0, function* (limit, cursor, options = {}) {
|
|
644
|
+
const localVarPath = `/portfolio/settlements`;
|
|
645
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
646
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
647
|
+
let baseOptions;
|
|
648
|
+
if (configuration) {
|
|
649
|
+
baseOptions = configuration.baseOptions;
|
|
650
|
+
}
|
|
651
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
652
|
+
const localVarHeaderParameter = {};
|
|
653
|
+
const localVarQueryParameter = {};
|
|
654
|
+
// authentication bearerAuth required
|
|
655
|
+
// http bearer authentication required
|
|
656
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
657
|
+
if (limit !== undefined) {
|
|
658
|
+
localVarQueryParameter['limit'] = limit;
|
|
659
|
+
}
|
|
660
|
+
if (cursor !== undefined) {
|
|
661
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
662
|
+
}
|
|
663
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
666
|
+
return {
|
|
667
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
668
|
+
options: localVarRequestOptions,
|
|
669
|
+
};
|
|
670
|
+
}),
|
|
671
|
+
/**
|
|
672
|
+
* Get the total value of all resting orders
|
|
673
|
+
* @summary Get Total Resting Order Value
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
getTotalRestingOrderValue: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
678
|
+
const localVarPath = `/portfolio/summary/total_resting_order_value`;
|
|
679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
680
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
681
|
+
let baseOptions;
|
|
682
|
+
if (configuration) {
|
|
683
|
+
baseOptions = configuration.baseOptions;
|
|
684
|
+
}
|
|
685
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
686
|
+
const localVarHeaderParameter = {};
|
|
687
|
+
const localVarQueryParameter = {};
|
|
688
|
+
// authentication bearerAuth required
|
|
689
|
+
// http bearer authentication required
|
|
690
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
691
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
693
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
694
|
+
return {
|
|
695
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
696
|
+
options: localVarRequestOptions,
|
|
697
|
+
};
|
|
698
|
+
}),
|
|
699
|
+
/**
|
|
700
|
+
* Reset an order group
|
|
701
|
+
* @summary Reset Order Group
|
|
702
|
+
* @param {string} orderGroupId Order group ID
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
resetOrderGroup: (orderGroupId_1, ...args_1) => __awaiter(this, [orderGroupId_1, ...args_1], void 0, function* (orderGroupId, options = {}) {
|
|
707
|
+
// verify required parameter 'orderGroupId' is not null or undefined
|
|
708
|
+
(0, common_1.assertParamExists)('resetOrderGroup', 'orderGroupId', orderGroupId);
|
|
709
|
+
const localVarPath = `/portfolio/order_groups/{order_group_id}/reset`
|
|
710
|
+
.replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
|
|
711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
712
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
713
|
+
let baseOptions;
|
|
714
|
+
if (configuration) {
|
|
715
|
+
baseOptions = configuration.baseOptions;
|
|
716
|
+
}
|
|
717
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
718
|
+
const localVarHeaderParameter = {};
|
|
719
|
+
const localVarQueryParameter = {};
|
|
720
|
+
// authentication bearerAuth required
|
|
721
|
+
// http bearer authentication required
|
|
722
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
723
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
726
|
+
return {
|
|
727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
728
|
+
options: localVarRequestOptions,
|
|
729
|
+
};
|
|
730
|
+
}),
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
exports.PortfolioApiAxiosParamCreator = PortfolioApiAxiosParamCreator;
|
|
734
|
+
/**
|
|
735
|
+
* PortfolioApi - functional programming interface
|
|
736
|
+
*/
|
|
737
|
+
const PortfolioApiFp = function (configuration) {
|
|
738
|
+
const localVarAxiosParamCreator = (0, exports.PortfolioApiAxiosParamCreator)(configuration);
|
|
739
|
+
return {
|
|
740
|
+
/**
|
|
741
|
+
* Amend an existing order
|
|
742
|
+
* @summary Amend Order
|
|
743
|
+
* @param {string} orderId Order ID
|
|
744
|
+
* @param {AmendOrderRequest} amendOrderRequest
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
amendOrder(orderId, amendOrderRequest, options) {
|
|
749
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
750
|
+
var _a, _b, _c;
|
|
751
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.amendOrder(orderId, amendOrderRequest, options);
|
|
752
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
753
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.amendOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
754
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
/**
|
|
758
|
+
* Cancel multiple orders in a single request
|
|
759
|
+
* @summary Batch Cancel Orders
|
|
760
|
+
* @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
batchCancelOrders(batchCancelOrdersRequest, options) {
|
|
765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
766
|
+
var _a, _b, _c;
|
|
767
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.batchCancelOrders(batchCancelOrdersRequest, options);
|
|
768
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
769
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.batchCancelOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
770
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
771
|
+
});
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
* Create multiple orders in a single request
|
|
775
|
+
* @summary Batch Create Orders
|
|
776
|
+
* @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
*/
|
|
780
|
+
batchCreateOrders(batchCreateOrdersRequest, options) {
|
|
781
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
782
|
+
var _a, _b, _c;
|
|
783
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.batchCreateOrders(batchCreateOrdersRequest, options);
|
|
784
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
785
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.batchCreateOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
786
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
787
|
+
});
|
|
788
|
+
},
|
|
789
|
+
/**
|
|
790
|
+
* Cancel an order
|
|
791
|
+
* @summary Cancel Order
|
|
792
|
+
* @param {string} orderId Order ID
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
cancelOrder(orderId, options) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
+
var _a, _b, _c;
|
|
799
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrder(orderId, options);
|
|
800
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
801
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.cancelOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
802
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
803
|
+
});
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
* Create a new order
|
|
807
|
+
* @summary Create Order
|
|
808
|
+
* @param {CreateOrderRequest} createOrderRequest
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
createOrder(createOrderRequest, options) {
|
|
813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
814
|
+
var _a, _b, _c;
|
|
815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(createOrderRequest, options);
|
|
816
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
817
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
818
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
819
|
+
});
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
* Create a new order group
|
|
823
|
+
* @summary Create Order Group
|
|
824
|
+
* @param {CreateOrderGroupRequest} createOrderGroupRequest
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
createOrderGroup(createOrderGroupRequest, options) {
|
|
829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
830
|
+
var _a, _b, _c;
|
|
831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrderGroup(createOrderGroupRequest, options);
|
|
832
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
833
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.createOrderGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
834
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
835
|
+
});
|
|
836
|
+
},
|
|
837
|
+
/**
|
|
838
|
+
* Decrease the size of an existing order
|
|
839
|
+
* @summary Decrease Order
|
|
840
|
+
* @param {string} orderId Order ID
|
|
841
|
+
* @param {DecreaseOrderRequest} decreaseOrderRequest
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
decreaseOrder(orderId, decreaseOrderRequest, options) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
var _a, _b, _c;
|
|
848
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.decreaseOrder(orderId, decreaseOrderRequest, options);
|
|
849
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
850
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.decreaseOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
851
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
852
|
+
});
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
* Delete an order group
|
|
856
|
+
* @summary Delete Order Group
|
|
857
|
+
* @param {string} orderGroupId Order group ID
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
*/
|
|
861
|
+
deleteOrderGroup(orderGroupId, options) {
|
|
862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
863
|
+
var _a, _b, _c;
|
|
864
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrderGroup(orderGroupId, options);
|
|
865
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
866
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.deleteOrderGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
867
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
868
|
+
});
|
|
869
|
+
},
|
|
870
|
+
/**
|
|
871
|
+
* Get the user\'s current balance
|
|
872
|
+
* @summary Get Balance
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
getBalance(options) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
878
|
+
var _a, _b, _c;
|
|
879
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(options);
|
|
880
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
881
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getBalance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
882
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
883
|
+
});
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
* Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
|
|
887
|
+
* @summary Get Fills
|
|
888
|
+
* @param {string} [ticker] Filter by market ticker
|
|
889
|
+
* @param {string} [orderId] Filter by order ID
|
|
890
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
891
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
892
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
893
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
getFills(ticker, orderId, minTs, maxTs, limit, cursor, options) {
|
|
898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
899
|
+
var _a, _b, _c;
|
|
900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFills(ticker, orderId, minTs, maxTs, limit, cursor, options);
|
|
901
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
902
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getFills']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
903
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
904
|
+
});
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
* Get a single order by ID
|
|
908
|
+
* @summary Get Order
|
|
909
|
+
* @param {string} orderId Order ID
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
getOrder(orderId, options) {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
var _a, _b, _c;
|
|
916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(orderId, options);
|
|
917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
918
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
919
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
920
|
+
});
|
|
921
|
+
},
|
|
922
|
+
/**
|
|
923
|
+
* Get order groups for the logged-in user
|
|
924
|
+
* @summary Get Order Groups
|
|
925
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
926
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
927
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
getOrderGroups(status, limit, cursor, options) {
|
|
932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
933
|
+
var _a, _b, _c;
|
|
934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderGroups(status, limit, cursor, options);
|
|
935
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
936
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getOrderGroups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
937
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
938
|
+
});
|
|
939
|
+
},
|
|
940
|
+
/**
|
|
941
|
+
* Get the queue position for an order
|
|
942
|
+
* @summary Get Order Queue Position
|
|
943
|
+
* @param {string} orderId Order ID
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
*/
|
|
947
|
+
getOrderQueuePosition(orderId, options) {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
949
|
+
var _a, _b, _c;
|
|
950
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderQueuePosition(orderId, options);
|
|
951
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
952
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getOrderQueuePosition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
953
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
954
|
+
});
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
* Get orders for the logged-in user
|
|
958
|
+
* @summary Get Orders
|
|
959
|
+
* @param {string} [ticker] Filter by market ticker
|
|
960
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
961
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
962
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
963
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
964
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
965
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
|
|
970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
971
|
+
var _a, _b, _c;
|
|
972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options);
|
|
973
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
974
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
975
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
976
|
+
});
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
* Get positions for the logged-in user
|
|
980
|
+
* @summary Get Positions
|
|
981
|
+
* @param {string} [ticker] Filter by market ticker
|
|
982
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
983
|
+
* @param {number} [countDown] Filter positions by minimum count down value
|
|
984
|
+
* @param {number} [countUp] Filter positions by minimum count up value
|
|
985
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
986
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
|
|
991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
var _a, _b, _c;
|
|
993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options);
|
|
994
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
995
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getPositions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
996
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
997
|
+
});
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
* Get queue positions for multiple orders
|
|
1001
|
+
* @summary Get Queue Positions
|
|
1002
|
+
* @param {GetQueuePositionsRequest} getQueuePositionsRequest
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
getQueuePositions(getQueuePositionsRequest, options) {
|
|
1007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
var _a, _b, _c;
|
|
1009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuePositions(getQueuePositionsRequest, options);
|
|
1010
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1011
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getQueuePositions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1012
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1013
|
+
});
|
|
1014
|
+
},
|
|
1015
|
+
/**
|
|
1016
|
+
* Get settlements for the logged-in user
|
|
1017
|
+
* @summary Get Settlements
|
|
1018
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1019
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1020
|
+
* @param {*} [options] Override http request option.
|
|
1021
|
+
* @throws {RequiredError}
|
|
1022
|
+
*/
|
|
1023
|
+
getSettlements(limit, cursor, options) {
|
|
1024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1025
|
+
var _a, _b, _c;
|
|
1026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettlements(limit, cursor, options);
|
|
1027
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1028
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getSettlements']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1029
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1030
|
+
});
|
|
1031
|
+
},
|
|
1032
|
+
/**
|
|
1033
|
+
* Get the total value of all resting orders
|
|
1034
|
+
* @summary Get Total Resting Order Value
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
getTotalRestingOrderValue(options) {
|
|
1039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
|
+
var _a, _b, _c;
|
|
1041
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTotalRestingOrderValue(options);
|
|
1042
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1043
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getTotalRestingOrderValue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1044
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
1047
|
+
/**
|
|
1048
|
+
* Reset an order group
|
|
1049
|
+
* @summary Reset Order Group
|
|
1050
|
+
* @param {string} orderGroupId Order group ID
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
resetOrderGroup(orderGroupId, options) {
|
|
1055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
|
+
var _a, _b, _c;
|
|
1057
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetOrderGroup(orderGroupId, options);
|
|
1058
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1059
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.resetOrderGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1060
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1061
|
+
});
|
|
1062
|
+
},
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
exports.PortfolioApiFp = PortfolioApiFp;
|
|
1066
|
+
/**
|
|
1067
|
+
* PortfolioApi - factory interface
|
|
1068
|
+
*/
|
|
1069
|
+
const PortfolioApiFactory = function (configuration, basePath, axios) {
|
|
1070
|
+
const localVarFp = (0, exports.PortfolioApiFp)(configuration);
|
|
1071
|
+
return {
|
|
1072
|
+
/**
|
|
1073
|
+
* Amend an existing order
|
|
1074
|
+
* @summary Amend Order
|
|
1075
|
+
* @param {string} orderId Order ID
|
|
1076
|
+
* @param {AmendOrderRequest} amendOrderRequest
|
|
1077
|
+
* @param {*} [options] Override http request option.
|
|
1078
|
+
* @throws {RequiredError}
|
|
1079
|
+
*/
|
|
1080
|
+
amendOrder(orderId, amendOrderRequest, options) {
|
|
1081
|
+
return localVarFp.amendOrder(orderId, amendOrderRequest, options).then((request) => request(axios, basePath));
|
|
1082
|
+
},
|
|
1083
|
+
/**
|
|
1084
|
+
* Cancel multiple orders in a single request
|
|
1085
|
+
* @summary Batch Cancel Orders
|
|
1086
|
+
* @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
*/
|
|
1090
|
+
batchCancelOrders(batchCancelOrdersRequest, options) {
|
|
1091
|
+
return localVarFp.batchCancelOrders(batchCancelOrdersRequest, options).then((request) => request(axios, basePath));
|
|
1092
|
+
},
|
|
1093
|
+
/**
|
|
1094
|
+
* Create multiple orders in a single request
|
|
1095
|
+
* @summary Batch Create Orders
|
|
1096
|
+
* @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
*/
|
|
1100
|
+
batchCreateOrders(batchCreateOrdersRequest, options) {
|
|
1101
|
+
return localVarFp.batchCreateOrders(batchCreateOrdersRequest, options).then((request) => request(axios, basePath));
|
|
1102
|
+
},
|
|
1103
|
+
/**
|
|
1104
|
+
* Cancel an order
|
|
1105
|
+
* @summary Cancel Order
|
|
1106
|
+
* @param {string} orderId Order ID
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
cancelOrder(orderId, options) {
|
|
1111
|
+
return localVarFp.cancelOrder(orderId, options).then((request) => request(axios, basePath));
|
|
1112
|
+
},
|
|
1113
|
+
/**
|
|
1114
|
+
* Create a new order
|
|
1115
|
+
* @summary Create Order
|
|
1116
|
+
* @param {CreateOrderRequest} createOrderRequest
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
*/
|
|
1120
|
+
createOrder(createOrderRequest, options) {
|
|
1121
|
+
return localVarFp.createOrder(createOrderRequest, options).then((request) => request(axios, basePath));
|
|
1122
|
+
},
|
|
1123
|
+
/**
|
|
1124
|
+
* Create a new order group
|
|
1125
|
+
* @summary Create Order Group
|
|
1126
|
+
* @param {CreateOrderGroupRequest} createOrderGroupRequest
|
|
1127
|
+
* @param {*} [options] Override http request option.
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
*/
|
|
1130
|
+
createOrderGroup(createOrderGroupRequest, options) {
|
|
1131
|
+
return localVarFp.createOrderGroup(createOrderGroupRequest, options).then((request) => request(axios, basePath));
|
|
1132
|
+
},
|
|
1133
|
+
/**
|
|
1134
|
+
* Decrease the size of an existing order
|
|
1135
|
+
* @summary Decrease Order
|
|
1136
|
+
* @param {string} orderId Order ID
|
|
1137
|
+
* @param {DecreaseOrderRequest} decreaseOrderRequest
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
decreaseOrder(orderId, decreaseOrderRequest, options) {
|
|
1142
|
+
return localVarFp.decreaseOrder(orderId, decreaseOrderRequest, options).then((request) => request(axios, basePath));
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
* Delete an order group
|
|
1146
|
+
* @summary Delete Order Group
|
|
1147
|
+
* @param {string} orderGroupId Order group ID
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
deleteOrderGroup(orderGroupId, options) {
|
|
1152
|
+
return localVarFp.deleteOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
|
|
1153
|
+
},
|
|
1154
|
+
/**
|
|
1155
|
+
* Get the user\'s current balance
|
|
1156
|
+
* @summary Get Balance
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
*/
|
|
1160
|
+
getBalance(options) {
|
|
1161
|
+
return localVarFp.getBalance(options).then((request) => request(axios, basePath));
|
|
1162
|
+
},
|
|
1163
|
+
/**
|
|
1164
|
+
* Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
|
|
1165
|
+
* @summary Get Fills
|
|
1166
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1167
|
+
* @param {string} [orderId] Filter by order ID
|
|
1168
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
1169
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
1170
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1171
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1172
|
+
* @param {*} [options] Override http request option.
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
*/
|
|
1175
|
+
getFills(ticker, orderId, minTs, maxTs, limit, cursor, options) {
|
|
1176
|
+
return localVarFp.getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1177
|
+
},
|
|
1178
|
+
/**
|
|
1179
|
+
* Get a single order by ID
|
|
1180
|
+
* @summary Get Order
|
|
1181
|
+
* @param {string} orderId Order ID
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
*/
|
|
1185
|
+
getOrder(orderId, options) {
|
|
1186
|
+
return localVarFp.getOrder(orderId, options).then((request) => request(axios, basePath));
|
|
1187
|
+
},
|
|
1188
|
+
/**
|
|
1189
|
+
* Get order groups for the logged-in user
|
|
1190
|
+
* @summary Get Order Groups
|
|
1191
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
1192
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1193
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
*/
|
|
1197
|
+
getOrderGroups(status, limit, cursor, options) {
|
|
1198
|
+
return localVarFp.getOrderGroups(status, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
* Get the queue position for an order
|
|
1202
|
+
* @summary Get Order Queue Position
|
|
1203
|
+
* @param {string} orderId Order ID
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
getOrderQueuePosition(orderId, options) {
|
|
1208
|
+
return localVarFp.getOrderQueuePosition(orderId, options).then((request) => request(axios, basePath));
|
|
1209
|
+
},
|
|
1210
|
+
/**
|
|
1211
|
+
* Get orders for the logged-in user
|
|
1212
|
+
* @summary Get Orders
|
|
1213
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1214
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
1215
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
1216
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
1217
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
1218
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1219
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
|
|
1224
|
+
return localVarFp.getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1225
|
+
},
|
|
1226
|
+
/**
|
|
1227
|
+
* Get positions for the logged-in user
|
|
1228
|
+
* @summary Get Positions
|
|
1229
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1230
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
1231
|
+
* @param {number} [countDown] Filter positions by minimum count down value
|
|
1232
|
+
* @param {number} [countUp] Filter positions by minimum count up value
|
|
1233
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1234
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1235
|
+
* @param {*} [options] Override http request option.
|
|
1236
|
+
* @throws {RequiredError}
|
|
1237
|
+
*/
|
|
1238
|
+
getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
|
|
1239
|
+
return localVarFp.getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
* Get queue positions for multiple orders
|
|
1243
|
+
* @summary Get Queue Positions
|
|
1244
|
+
* @param {GetQueuePositionsRequest} getQueuePositionsRequest
|
|
1245
|
+
* @param {*} [options] Override http request option.
|
|
1246
|
+
* @throws {RequiredError}
|
|
1247
|
+
*/
|
|
1248
|
+
getQueuePositions(getQueuePositionsRequest, options) {
|
|
1249
|
+
return localVarFp.getQueuePositions(getQueuePositionsRequest, options).then((request) => request(axios, basePath));
|
|
1250
|
+
},
|
|
1251
|
+
/**
|
|
1252
|
+
* Get settlements for the logged-in user
|
|
1253
|
+
* @summary Get Settlements
|
|
1254
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1255
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1256
|
+
* @param {*} [options] Override http request option.
|
|
1257
|
+
* @throws {RequiredError}
|
|
1258
|
+
*/
|
|
1259
|
+
getSettlements(limit, cursor, options) {
|
|
1260
|
+
return localVarFp.getSettlements(limit, cursor, options).then((request) => request(axios, basePath));
|
|
1261
|
+
},
|
|
1262
|
+
/**
|
|
1263
|
+
* Get the total value of all resting orders
|
|
1264
|
+
* @summary Get Total Resting Order Value
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
*/
|
|
1268
|
+
getTotalRestingOrderValue(options) {
|
|
1269
|
+
return localVarFp.getTotalRestingOrderValue(options).then((request) => request(axios, basePath));
|
|
1270
|
+
},
|
|
1271
|
+
/**
|
|
1272
|
+
* Reset an order group
|
|
1273
|
+
* @summary Reset Order Group
|
|
1274
|
+
* @param {string} orderGroupId Order group ID
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
resetOrderGroup(orderGroupId, options) {
|
|
1279
|
+
return localVarFp.resetOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
|
|
1280
|
+
},
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
exports.PortfolioApiFactory = PortfolioApiFactory;
|
|
1284
|
+
/**
|
|
1285
|
+
* PortfolioApi - object-oriented interface
|
|
1286
|
+
*/
|
|
1287
|
+
class PortfolioApi extends base_1.BaseAPI {
|
|
1288
|
+
/**
|
|
1289
|
+
* Amend an existing order
|
|
1290
|
+
* @summary Amend Order
|
|
1291
|
+
* @param {string} orderId Order ID
|
|
1292
|
+
* @param {AmendOrderRequest} amendOrderRequest
|
|
1293
|
+
* @param {*} [options] Override http request option.
|
|
1294
|
+
* @throws {RequiredError}
|
|
1295
|
+
*/
|
|
1296
|
+
amendOrder(orderId, amendOrderRequest, options) {
|
|
1297
|
+
return (0, exports.PortfolioApiFp)(this.configuration).amendOrder(orderId, amendOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Cancel multiple orders in a single request
|
|
1301
|
+
* @summary Batch Cancel Orders
|
|
1302
|
+
* @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
batchCancelOrders(batchCancelOrdersRequest, options) {
|
|
1307
|
+
return (0, exports.PortfolioApiFp)(this.configuration).batchCancelOrders(batchCancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Create multiple orders in a single request
|
|
1311
|
+
* @summary Batch Create Orders
|
|
1312
|
+
* @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
|
|
1313
|
+
* @param {*} [options] Override http request option.
|
|
1314
|
+
* @throws {RequiredError}
|
|
1315
|
+
*/
|
|
1316
|
+
batchCreateOrders(batchCreateOrdersRequest, options) {
|
|
1317
|
+
return (0, exports.PortfolioApiFp)(this.configuration).batchCreateOrders(batchCreateOrdersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Cancel an order
|
|
1321
|
+
* @summary Cancel Order
|
|
1322
|
+
* @param {string} orderId Order ID
|
|
1323
|
+
* @param {*} [options] Override http request option.
|
|
1324
|
+
* @throws {RequiredError}
|
|
1325
|
+
*/
|
|
1326
|
+
cancelOrder(orderId, options) {
|
|
1327
|
+
return (0, exports.PortfolioApiFp)(this.configuration).cancelOrder(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Create a new order
|
|
1331
|
+
* @summary Create Order
|
|
1332
|
+
* @param {CreateOrderRequest} createOrderRequest
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
createOrder(createOrderRequest, options) {
|
|
1337
|
+
return (0, exports.PortfolioApiFp)(this.configuration).createOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Create a new order group
|
|
1341
|
+
* @summary Create Order Group
|
|
1342
|
+
* @param {CreateOrderGroupRequest} createOrderGroupRequest
|
|
1343
|
+
* @param {*} [options] Override http request option.
|
|
1344
|
+
* @throws {RequiredError}
|
|
1345
|
+
*/
|
|
1346
|
+
createOrderGroup(createOrderGroupRequest, options) {
|
|
1347
|
+
return (0, exports.PortfolioApiFp)(this.configuration).createOrderGroup(createOrderGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Decrease the size of an existing order
|
|
1351
|
+
* @summary Decrease Order
|
|
1352
|
+
* @param {string} orderId Order ID
|
|
1353
|
+
* @param {DecreaseOrderRequest} decreaseOrderRequest
|
|
1354
|
+
* @param {*} [options] Override http request option.
|
|
1355
|
+
* @throws {RequiredError}
|
|
1356
|
+
*/
|
|
1357
|
+
decreaseOrder(orderId, decreaseOrderRequest, options) {
|
|
1358
|
+
return (0, exports.PortfolioApiFp)(this.configuration).decreaseOrder(orderId, decreaseOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Delete an order group
|
|
1362
|
+
* @summary Delete Order Group
|
|
1363
|
+
* @param {string} orderGroupId Order group ID
|
|
1364
|
+
* @param {*} [options] Override http request option.
|
|
1365
|
+
* @throws {RequiredError}
|
|
1366
|
+
*/
|
|
1367
|
+
deleteOrderGroup(orderGroupId, options) {
|
|
1368
|
+
return (0, exports.PortfolioApiFp)(this.configuration).deleteOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Get the user\'s current balance
|
|
1372
|
+
* @summary Get Balance
|
|
1373
|
+
* @param {*} [options] Override http request option.
|
|
1374
|
+
* @throws {RequiredError}
|
|
1375
|
+
*/
|
|
1376
|
+
getBalance(options) {
|
|
1377
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getBalance(options).then((request) => request(this.axios, this.basePath));
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
|
|
1381
|
+
* @summary Get Fills
|
|
1382
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1383
|
+
* @param {string} [orderId] Filter by order ID
|
|
1384
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
1385
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
1386
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1387
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1388
|
+
* @param {*} [options] Override http request option.
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
*/
|
|
1391
|
+
getFills(ticker, orderId, minTs, maxTs, limit, cursor, options) {
|
|
1392
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Get a single order by ID
|
|
1396
|
+
* @summary Get Order
|
|
1397
|
+
* @param {string} orderId Order ID
|
|
1398
|
+
* @param {*} [options] Override http request option.
|
|
1399
|
+
* @throws {RequiredError}
|
|
1400
|
+
*/
|
|
1401
|
+
getOrder(orderId, options) {
|
|
1402
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getOrder(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Get order groups for the logged-in user
|
|
1406
|
+
* @summary Get Order Groups
|
|
1407
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
1408
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1409
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1410
|
+
* @param {*} [options] Override http request option.
|
|
1411
|
+
* @throws {RequiredError}
|
|
1412
|
+
*/
|
|
1413
|
+
getOrderGroups(status, limit, cursor, options) {
|
|
1414
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getOrderGroups(status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Get the queue position for an order
|
|
1418
|
+
* @summary Get Order Queue Position
|
|
1419
|
+
* @param {string} orderId Order ID
|
|
1420
|
+
* @param {*} [options] Override http request option.
|
|
1421
|
+
* @throws {RequiredError}
|
|
1422
|
+
*/
|
|
1423
|
+
getOrderQueuePosition(orderId, options) {
|
|
1424
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getOrderQueuePosition(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Get orders for the logged-in user
|
|
1428
|
+
* @summary Get Orders
|
|
1429
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1430
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
1431
|
+
* @param {number} [minTs] Filter items after this Unix timestamp
|
|
1432
|
+
* @param {number} [maxTs] Filter items before this Unix timestamp
|
|
1433
|
+
* @param {string} [status] Filter by status. Possible values depend on the endpoint.
|
|
1434
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1435
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1436
|
+
* @param {*} [options] Override http request option.
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
*/
|
|
1439
|
+
getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
|
|
1440
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* Get positions for the logged-in user
|
|
1444
|
+
* @summary Get Positions
|
|
1445
|
+
* @param {string} [ticker] Filter by market ticker
|
|
1446
|
+
* @param {string} [eventTicker] Filter by event ticker
|
|
1447
|
+
* @param {number} [countDown] Filter positions by minimum count down value
|
|
1448
|
+
* @param {number} [countUp] Filter positions by minimum count up value
|
|
1449
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1450
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1451
|
+
* @param {*} [options] Override http request option.
|
|
1452
|
+
* @throws {RequiredError}
|
|
1453
|
+
*/
|
|
1454
|
+
getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
|
|
1455
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Get queue positions for multiple orders
|
|
1459
|
+
* @summary Get Queue Positions
|
|
1460
|
+
* @param {GetQueuePositionsRequest} getQueuePositionsRequest
|
|
1461
|
+
* @param {*} [options] Override http request option.
|
|
1462
|
+
* @throws {RequiredError}
|
|
1463
|
+
*/
|
|
1464
|
+
getQueuePositions(getQueuePositionsRequest, options) {
|
|
1465
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getQueuePositions(getQueuePositionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Get settlements for the logged-in user
|
|
1469
|
+
* @summary Get Settlements
|
|
1470
|
+
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
|
|
1471
|
+
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
*/
|
|
1475
|
+
getSettlements(limit, cursor, options) {
|
|
1476
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getSettlements(limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Get the total value of all resting orders
|
|
1480
|
+
* @summary Get Total Resting Order Value
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
*/
|
|
1484
|
+
getTotalRestingOrderValue(options) {
|
|
1485
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getTotalRestingOrderValue(options).then((request) => request(this.axios, this.basePath));
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Reset an order group
|
|
1489
|
+
* @summary Reset Order Group
|
|
1490
|
+
* @param {string} orderGroupId Order group ID
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
resetOrderGroup(orderGroupId, options) {
|
|
1495
|
+
return (0, exports.PortfolioApiFp)(this.configuration).resetOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
exports.PortfolioApi = PortfolioApi;
|