!stats command is a powerful tool that allows you to view the flow of money into and out of the overall market, securities, and even specific options contracts.
In this article, we'll explore the complexity of the stats command and how you can make it work to your benefit.
To see statistics for the general market, you can do
!stats market. This will show you the amount of premium going into calls and puts, and will also show the volume for both calls and puts.
To see statistics for a security, you can do
!stats symbol TSLA, where TSLA can be whatever symbol you're interested in.
Options Contract Statistics
Grabbing statistics for an options contract involves some more complexity compared to the previous two versions of the command due to the way option contracts are defined.
To request stats on an options contract, you're going to need to know the
symbol you're interested in, the
strike, whether the contract is a call or put, and the
expiration date of the contract.
An example of what this would look like is like so:
!stats contract AAPL c:call e:2021-11-19 s:200.0
Breaking down the structure of this version of the
c- The parameter name for the contract type. Can also be
type. For example,
!stats contract AAPL type:call e:2021-11-19 s:200.0.
e- The parameter name for the expiration date. Can also be
expiry. For example,
!stats contract AAPL c:call expiry:2021-11-19 s:200.0
s- The parameter name for the strike price. Can also be
strike. For example,
!stats contract AAPL c:call e:2021-11-19 strike:200.0
Note that statistics for these commands are only available on the current day per exchange requirements.
Do you need further assistance?
If you have any questions or need further assistance, please don’t hesitate to reach out to the Quant Data team at firstname.lastname@example.org, or via our live chat located on the bottom right-hand corner of the screen. We are available on the live chat between 9:30 AM and 5:00 PM EST, Monday-Friday.