@@ -16,7 +16,13 @@ import { previousClose } from "./previousClose";
16
16
import { IOptionTrades , trades } from "./trades" ;
17
17
import { IOptionsLastTrade , lastTrade } from "./lastTrade" ;
18
18
import { IOptionQuotes , quotes } from "./quotes" ;
19
- import { IOptionsSnapshotContract , snapshotOptionContract } from "./snapshots" ;
19
+ import {
20
+ IOptionsSnapshotContract ,
21
+ IOptionsSnapshotChain ,
22
+ IOptionsChainQuery ,
23
+ snapshotOptionContract ,
24
+ snapshotOptionChain
25
+ } from "./snapshots" ;
20
26
import { ISummaries , ISummariesQuery } from "../stocks/summaries" ;
21
27
import { summaries } from "./summaries" ;
22
28
@@ -27,7 +33,13 @@ export {
27
33
export { IOptionTrades } from "./trades" ;
28
34
export { IOptionsLastTrade } from "./lastTrade" ;
29
35
export { IOptionQuotes } from "./quotes" ;
30
- export { IOptionsSnapshotContract , snapshotOptionContract } from "./snapshots" ;
36
+ export {
37
+ IOptionsSnapshotContract ,
38
+ IOptionsSnapshotChain ,
39
+ IOptionsChainQuery ,
40
+ snapshotOptionContract ,
41
+ snapshotOptionChain ,
42
+ } from "./snapshots" ;
31
43
32
44
export interface IOptionsClient {
33
45
aggregates : (
@@ -62,6 +74,10 @@ export interface IOptionsClient {
62
74
underlyingAsset : string ,
63
75
optionContract : string
64
76
) => Promise < IOptionsSnapshotContract > ;
77
+ snapshotOptionChain : (
78
+ underlyingAsset : string ,
79
+ query ?: IOptionsChainQuery
80
+ ) => Promise < IOptionsSnapshotChain > ;
65
81
}
66
82
67
83
export const optionsClient = (
@@ -77,6 +93,7 @@ export const optionsClient = (
77
93
lastTrade : auth ( apiKey , lastTrade , apiBase ) ,
78
94
quotes : auth ( apiKey , quotes , apiBase ) ,
79
95
snapshotOptionContract : auth ( apiKey , snapshotOptionContract , apiBase ) ,
96
+ snapshotOptionChain : auth ( apiKey , snapshotOptionChain , apiBase ) ,
80
97
} ) ;
81
98
82
99
export default optionsClient ;
0 commit comments