CommLib Begin show the next contract N days before expiration Show contracts by a schedule Specify how to adjust prices in a series Don't adjust adjust foregoing contracts adjust following contracts Represents offset for next\previous Value for a next; prevStop - nextStart Slices a set of contracts by certain rule Contains dates in UTC Date should be in UTC Utility class for formatting and parsing prices This class using special notation for price format:
  • positive values specifies number of digits after decimal point (2 = 0.00)
  • negative - divisor of fraction (-32 = 1/32)
Construct the formatter using given format specifiers, value and min/max value Multiplier, power of 10 Tick size - mimimal price increment Price value Minimum Maximum Constructs formatter using given format specifiers value and default min/max values (0, 1e9) Multiplier, power of 10 Tick size - minimal price increment Price value Parse formatted price string price false, if price doesn't match expected pattern Parse formatted price string price false, if price doesn't match expected pattern Format current value formatted price Format current value formatted price increase value by 1 tick decrease value by 1 tick Returns a string representing input mask for given format and tick string mask builds format string for using with string.Format(integer part, fractional part) price format string get or set current price value when assigning, value will be aligned by tick size and min/max boundaries. get/set min value get/set maxvalue Account type Customer account House account CME106R account Wash account Give-up account Standard FX account Mini FX account Equity account Universal account Open position Cash balance Equity-related balance lowest price- lowest acc (for backward compatibility) lowest price-highest acc (for backward compatibility) lowest price- lowest acc lowest price-highest acc highest price- lowest acc highest price-highest acc Average price system Contract type for given commission Commission for electronically executed order Commission for order in the pit base class for order items, such as state, command, version and fill Fill type Describes how to use fill in calculations Fill of ordinary order Fill of positive leg of compound order Fill of negative leg of compound order Fill of positive leg of spread Fill of negative leg of spread Side of an order No side order to buy order to sell buy to cover short sell Type of order MarketOnPitOpen = MarketOnOpen, but uses pit session opening time
StopLimit order requires two prices.
Some contracts/exchanges do not support some of order types.
Market order - filled by current bid/offer Limit order - filled by limit price or better Stop order (Stop loss order) - when trade price reaches the stop price, filled as market order Stop limit order - when trade price reaches the stop price, filled as limit order Market if touched when trade price crosses order price, filled as market order When partially filled, remaining part filled as limit order by partial fill price Market order, released on session open Market open, released before session closes Market order, released on pit session open (when applicable) Market order, released before pit session closes (when applicable) Stop order, adjusted to market price. Stop/Limit order, adjusted to market price. Iceberg - Limit order showing less qty. State of order. Basic state diagram for order lifetime.
            Sent -> [Held] -> [Accepted] -> Working -> Completed.
\-> Rejected <-/ \-> Cancelled.
Order was not sent Order sent to server, awaiting confirmation Order accepted by risk system. Optional. Order is waiting to be accepted or released Order is active Order is (partially) filled and completed Order was canceled Order was rejected Order state unknown - error occurred Type of order command Create command - first command of order Modification request Cancellation request Order command state New commands have 'Sent' state, then it is changed to Executed and Failed state. Awaiting completion Command executed successfully Command failed Order execution flags Normal order Good till cancelled Fill or Kill Immediate or cancel All or nothing See OEC.Data.ExecInst.AON Normal order All or nothing This namespace contains some enumerations and constants for OEC API.
See OEC.API.OECClient class for API overview
Data type for data domain of OSM algo parameter. Signed 32-bit integer value Signed 64-bit integer value 64-bit floating-point value Boolean value String value Date/time value Enumeration of fixed string values UTC timestamp Trade price Trade volume Reserved Deleted by badtick filter 32-bit value for volume True means that price is descending, false - price is growing. This field used by PriceServer to calc UpTicks/DownTicks properly Current price values Obsolete. Enumerating fields in price record Subscription type Last price and stats Depth of market Ticks Intraday bar, of time interval in minutes Histogram of session Bars of N ticks Bars of N total volume Bars of N tick size range Bars of N seconds Bars of N days Bars of N weeks Bars of N months Momentum Bars Price break bars Risk limitation type No risk limit specified Locked type, not trades are possible Liquidation only type, only decreasing of position is possible Some special risk limits is specified Specifies the state of ServerStrategy. ServerStrategy is created and sent to server, but not confirmed by the server. ServerStrategy is confirmed by the server, global ID is assigned, but the strategy is not strated yet. After Confirmed state, both or states are possible. ServerStrategy is accepted by server and is running. Stopping ServerStrategy is initiated by a client and the stop request sent to server. ServerStrategy is stopped or not accepted by server. No further processing is performed. ServerStrategy is being held by server, i.e. it doesn't send any further orders until it started again or stopped finally Specifies the reason of stopping ServerStrategy. Specifies a data type of ServerStrategyParam. Signed 32-bit integer value. Signed 64-bit integer value. 64-bit floating-point value. Boolean value. String value. Date/Time value. Enumeration of fixed string values. Param is a container for other params. Used for storing to/retrieving from DB. Unlimited access Common trader Research brokers - chat only, no orders/contracts manual and FIX brokers - custom execution Multiple Traders + allocation block functionality. TraderManager + some admin functionality Invalid user name or password User with same name already connected Invalid client version - upgrade required Wrong data is received User account is expired User disabled User temporarily locked out User software is not allowed to connect Session is disconnected by owner Password has been expired Map of field name/field information WinForms Control wrapper with windows message queue overload protection WinForms control begininvoke generic wrapper with windows message queue overload protection Generic wrapper for WinForms control invoke. Indicates if caller is different than control creator thread Synchronous write - blocks Async write and forget, no notification Async Write closing Async write empty msg Async write empty msg Traces network activity 1 write, 2 read, 4 pair(begin/end), 8 keepalive, 16 misc Thread-safe queue Thread-safe list Clears the list. Old contents of list Simple base interface for dictionaries which doesn't include ICollection and IEnumerable interfaces Simple dictionary with basic methods Thread-safe version of simple dictionary Thread-safe wrapper for any dictionary with rwl locks. Key type Value type Containter type : IDictionary Extracts a value from list, or returns a provided value if key does not present Key Default value Value Compare and Replace Key Predicate New value Add value if key is not found Thread-safe - returns a copy of list and clears list Thread-safe - returns a copy of list and clears list Thread-safe - returns a copy of list must use ReaderLock Thread-safe - returns a copy of list Thread-safe - returns a copy of list Thread-Safe Dictionary Thread-safe sorted list Key type Value type Predecessor Value or default Last value in the list (by key order) Thread-safe dictionary with default value for not-found keys Does not throw an exception if key is not found. Thread-safe version of CreatingDictionary SortedList creating a new value for not-found keys Does not throw an exception if key is not found. SortedList creating a new value for not-found keys using given creator Dictionary creating a new value for not-found keys using given creator Does not throw an exception if key is not found. must ininitialize creator later Dictionary creating a new value for not-found keys using given creator Does not throw an exception if key is not found. Thread-safe version of CreatingSortedList Dictionary creating a new value for not-found keys Does not throw an exception if key is not found. Dictionary returning null (or default value) for not found keys SortedList returning null (or default value) for not found keys List maintaining given order. Override Compare to provide custom order Inserts an item to a position by order Log message severity Not specified Performance messages Debug tracing messages Information messages Warning messages Error messages Critical error messages OEC Log Default implementation creates a separate file for each day. It can be replaced by custom implementation Custom logical thead name used for log output Gets or sets whether to output non-DBG entries to console for internal logger Logger can be changed to own implementation Custom log implementation Starts logger at default path Starts logger at cpecified path Stops logger Logs formatted text with Dbg severity Logs formatted text with specified severity User defined loging thread context, can be used to pass user defined parameters from application to log implementation. Different threads have different contexts Implementation for log contexts Properties container for log context in form of property name -> stack collection Returns typed current Stacks object Type used to return Top logging stack object of type T Returns current Stacks object Stack of user-defined objects Stack push Stack pop Access to top object String representation of stack top object Custom log implementation. Signal that logging has started. Can be used to place starting code for logging, like starting log thread for example Path on which log file is intended to be created. Can be ignored by custom application in favor of own path Signal that logging has stopped. Called for log message output. Severity of the message Message format like in string.Format Arguments for message formatting like in string.Format Log record. Type of data feed entitlement to be used by bizRules.getFirstContract only ContractMonth provides expiration dates for Usually it is used when a is not available Contract for API using only for API using only. See BaseSymbol Date and Time Contract is traded electronically Contract is traded manually in the pit Contract is routed to third-party execution (public) Contract can be traded electronically or in the pit (public) Symbol lookup mode A request "GE" returns all contracts that include GE in symbol or description A request "GE" returns all contracts that start with GE: GE, GEM9, etc A request "GE" returns all contracts with description that start with GE: GENERAL ELECTRIC, GENESIS A request "GE" returns all contracts with description or symbol that start with GE: GENERAL ELECTRIC, GENESIS, GE A request "GE" returns only one contract - GENERAL ELECTRIC Symbol lookup, filter by options type http://www.cftc.gov/opa/press00/opa4441-00.htm Used for communication/syncronization between API servers for bulk load Serializes objects using ProtoBuf protocol Serializes length of packet as int32, then packet contents Time range Checks whether amoment belongs to range Checks whether a moment belongs to range inclusive Checks whether a range lies within. Checks whether a range intersects with this range. Checks whether a range intersects with or touches this range. Checks whether a range touches this range. Calculates an intersection of ranges Calculates superset of ranges Maximum time range A large time range, which does not include minvalue and maxvalue Generates days from range, starting from EndDate backwards. Generates days from range Returns number of holidays within range Validate range Thread-safe waitable queue Intializes a new queue object Writes object in the queue object to write waits for data available and extract first item null if no data in the queue and timeout expired extracts first available item returns immediatelly. null if no data in the queue number of items in the queue This class contains collection features which are not available in .NET 2.0 Concatenates two enumerators to one element type first enumerator second enumerator combined enumerator Adds an item to enumeration, if it is not empty element type enumerator item combined enumerator Combines arbitrary number of enumerators element type enumerators combined enumerator Combines arbitrary number of enumerators element type enumerators combined enumerator Groups elements in a list by count element type List Count of items per group List of group lists Returns first N elements of a list element type list N list Returns tail of the list element type list list returns an empty enumeration Element type list Returns an enumeration containing only filtered items element type list filter filtered list Returns an enumeration containing only filtered items and extract them from original source element type list filter filtered list Creates a verbose list of map elements Key type Value type Collection string Compares doubles with precision of 5e-8. Groups elements in a list by key function Key type Element type List Grouping key (should implement IComparable) List of group lists Returns a list containing a subrange of a source list. Element type List Stard index End index (not inclusive) subrange list Union arbitrary number of enumerators element type enumerators combined enumerator Virtual list based on a subrange of an existing lists Read-only. Element type Comparable pair of items