class O2GValueMap

Parents
System.Collections.Generic.IEnumerable<O2GValueMap>

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

ChildrenCount

A number of child value maps.

Item

A child value map.

Public Methods

appendChild

Adds the value map to the list of child value maps.

clear

Clears the value map.

clone

Makes a copy of the value map.

getChild

Gets a child value map.

setBoolean

Sets a boolean value.

setDouble

Sets a double value.

setInt

Sets an integer value.

setString

Sets a string value.

back