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