=odd_get( ticker [,date] [,mode] )
- Ticker: ( string, required ): indicates what's the ticker query.
- Date: ( date, optional ): indicates the query's date. The current date is the default value is not indicated.
- Mode: ( integer, optional ): indicates the mode of working. The default value is 1.
Mode | Mode behaviour | Prior to oldest date in DB | In between dates in the DB | On date in DB | In the future |
---|---|---|---|---|---|
0 | Exact Date | Return Value not Available | Return Value not Available | Return value for date | Return Value not Available |
1 | Closest date | Return oldest value | Return closest value | Return value for date | Return latest value |
2 | Interpolate | Return oldest value | Interpolate | Return value for date | Return latest value |
3 | Random value from distribution | Return oldest value | Interpolate | Return value for date | Return random value from distribution |