class O2GValueMap
Parents | |
System.Collections.Generic.IEnumerable< |
Brief
A value map containing order parameters.
Details
To create IO2GValueMap
use
O2GRequestFactory
.createValueMap
.
O2GValueMap
contains elements of O2GRequestParamsEnum
(order parameters) as keys
and corresponding string, boolean, double, or integer values.
O2GValueMap
is used to combine order parameters when creating order request by
O2GRequestFactory
.createOrderRequest
.
Create and fill O2GValueMap [hide]
public void CreateEntryOrder(string sAccountID, string sOfferID, double dRate, int iAmount, string sBuySell, string sOrderType) { O2GRequestFactory factory = Program.Session.getRequestFactory(); if (factory == null) return; O2GValueMap valuemap = factory.createValueMap(); valuemap.setString(O2GRequestParamsEnum.Command, Constants.Commands.CreateOrder); valuemap.setString(O2GRequestParamsEnum.OrderType, sOrderType); valuemap.setString(O2GRequestParamsEnum.AccountID, sAccountID); valuemap.setString(O2GRequestParamsEnum.OfferID, sOfferID); valuemap.setString(O2GRequestParamsEnum.BuySell, sBuySell); valuemap.setInt(O2GRequestParamsEnum.Amount, iAmount); valuemap.setDouble(O2GRequestParamsEnum.Rate, dRate); O2GRequest request = factory.createOrderRequest(valuemap); Program.Session.sendRequest(request); }
The type defined in the fxcore2.dll
assembly.
The namespace is fxcore2
.
Public Properties | |
A number of child value maps. |
|
A child value map. |
Public Methods | |
Adds the value map to the list of child value maps. |
|
Clears the value map. |
|
Makes a copy of the value map. |
|
Gets a child value map. |
|
Sets a boolean value. |
|
Sets a double value. |
|
Sets an integer value. |
|
Sets a string value. |