|
|
|
|
The following tables provide information on the most significant constants in the Aspen API.

Some of these constants have use in more than one context.
|
Constant |
Meaning |
Value |
|
Yes, or true |
1 | |
|
No, or false |
0 | |
|
Error |
(-1) | |
|
Zero |
((void *)0) | |
|
No price |
((long)0x80000002) |
The maximum possible positive value that an ASPEN_PRICE field can contain is defined by the constant ASPEN_MAX_NUM. The minimum negative value is set by the constant ASPEN_MIN_NUM. A special value, ASPEN_NO_NUM, is also used when the price field must indicate that there is no price value available. Signed comparisons must be used when comparing price values. Numerically speaking, ASPEN_NO_NUM is less than ASPEN_MIN_NUM. There are no values whatsoever greater than the defined maximum.
|
Constant |
Meaning |
Value |
|
Maximum value storable in a ASPEN_TIME variable |
0x7FFFFFFFL | |
|
Maximum value storable in a ASPEN_VOLUME variable |
0x7FFFFFFFL | |
|
ASPEN_NO_NUM |
ASPEN_NO_NUM | |
|
Maximum number of bars in GetBarHistory request |
256 | |
|
Maximum number of bars in GetTickHistory request |
256 |
|
Constant |
Meaning |
Value |
|
IPX |
(Not supported.) 0 | |
|
TCP/IP |
1 | |
|
Maximum length of a server address (DNS resolved name) |
128 |
Price quanta are defined with a base, binary or decimal.
|
Constant |
Meaning |
Value |
|
The base of an Aspen quantum is binary. |
1 | |
|
The base of an Aspen quantum is decimal. |
0 |
The number of minutes in 24 hours.
|
Constant |
Meaning |
Value |
|
Number of minutes in a trading day. |
1440 | |
|
Maximum number of trading sessions a financial instrument may trade in one day. |
4 |
The maximum length of a financial instrument's symbol and description.
|
Constant |
Meaning |
Value |
|
Maximum length of a financial instrument symbol. |
20 | |
|
Maximum length of a financial instrument description. |
40 | |
|
Maximum length of a financial instrument label. |
16 |
|
Constant |
Meaning |
Value |
|
The maximum length of a textual string. |
52 |
The supported data feeds.
|
Constant |
Meaning |
Value |
|
The Server's source of data is probably an experimental or synthetic feed and has not yet been assigned a permanent ID. |
0 | |
|
DBC Signal |
2 | |
|
Reuters data feeds. |
3 | |
|
S&P ComStock |
6 | |
|
DTN |
8 | |
|
Bonneville Market Information |
9 | |
|
BridgeFeed |
14 |
Types of financial instruments.
|
Constant |
Meaning |
Value |
|
Unknown to this API. |
0 | |
|
Futures contract. |
1 | |
|
Stock. |
2 | |
|
Foreign exchange instrument. |
3 | |
|
US Treasury Cash. |
4 | |
|
Mortgage backed security. |
5 | |
|
Indices or statistical values. |
6 | |
|
Corporate bond. |
7 | |
|
Mutual fund. |
8 | |
|
Money Market fund. |
9 | |
|
Basket of securities. |
10 | |
|
Cash or spot commodity. |
11 | |
|
Spreads on futures or options. |
12 | |
|
Municipal bond. |
13 | |
|
more...? |
|
|
|
Constant |
Meaning |
Value |
|
Length of exchange abbreviation. |
16 | |
|
|
Maximum length of exchange description. |
104 |
List of regional exchanges (exchanges from which stock (instrument type 2) trades may originate).
|
Constant |
Meaning |
Value |
|
Unknown |
0 | |
|
Boston |
1 | |
|
Cincinnati |
2 | |
|
Midwest |
3 | |
|
Pacific |
4 | |
|
NASDAQ |
5 | |
|
Philadelphia |
6 | |
|
Internet |
7 | |
|
New York Stock Exchange |
8 | |
|
American Stock Exchange |
9 |
Tick types or bate codes (see also, ASPEN_BATE).
|
Constant |
Meaning |
Value |
|
informational only; not used with historical ticks. |
0 | |
|
Tick is a trade. |
1 | |
|
Tick is a bid. |
2 | |
|
Tick is an ask. |
3 | |
|
Tick is a settlement price. |
4 | |
|
Tick is an open price. |
5 | |
|
Tick is a close price. |
6 | |
|
Tick is unknown to this API. |
7 |
Symbol event notices.
|
Constant |
Meaning |
Value |
|
Add symbol to the Server database. |
0 | |
|
Delete symbol from Server database. |
1 |
User name and password max length.
|
Constant |
Meaning |
Value |
|
Maximum size of a user name. |
128 | |
|
Maximum size of a password. |
12 |
|
Constant |
Meaning |
Value |
|
Maximum length of holiday list name. |
20 |
|
Constant |
Meaning |
Value |
|
Maximum length of a news title. |
82 | |
|
Specifies a query of all news headlines. |
0x02 | |
|
Specifies a query of headlines within a particular news category. |
0x00 | |
|
Maximum number of headlines per query. |
15 |
|
Constant |
Meaning |
Value |
|
Maximum length of array used to track bid ask depth of market for Level II analysis. |
30 |
©2006 Aspen Research Group, Ltd. All rights reserved. Terms of Use.