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