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