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