API Support Forum
User Profile

Viewing User Profile for: HKusumakar79


About

Feb 18, 2008 08:49 AM

Jun 23, 2008 09:57 AM

Jun 23, 2008 10:00 AM



Post Statistics
HKusumakar79 has contributed to 21 posts out of 5677 total posts (0.37%) in 6155 days (0.00 posts per day).

20 most recent posts:

API Support » ConvertFromOECContractList Jun 23, 2008 @ 09:57 AM (Total replies: 3)

hi,

i have add new tab and put one dropdownbox to get nearest contracts of basecontracts , so i am using what you said

OECClient.Global.BaseContracts["GCL"].GetNearestContract()

but it is not working.

it is showing me error : System.ArgumentNullException was unhandled by user code
Message="Value cannot be null.\r\nParameter name: item"

actually this type of code working earlier after you change dll this is not working so please help me.
Edited by HKusumakar79 on Jun 23, 2008 at 10:00 AM

Order Execution » trailing stop logic May 30, 2008 @ 09:50 AM (Total replies: 1)

When I place an order with a trailing stop, is OEC server executing the trailing logic or is it implemented by the exchange?

As far as I understand the exchange doesn't offer any trailing stop type orders. So I assume that OEC servers offer this feature.

API Support » Current Month/Most Active Month May 30, 2008 @ 09:38 AM (Total replies: 1)

Is there a way to query the API and get the nearest month of a contract?

Is there a way to query the API and get the most active month of a contract?

I know that in some contracts (e.g. GGC, CCM) the current month and the most active contract month are not the same.

New Feature Requests » more detailed Tick Data May 30, 2008 @ 09:30 AM (Total replies: 3)

It would be nice to include current bid and offer price when you send Tick Data. So, the table for tick data will have Time, Price, Volume, Bid Price, Ask Price

Also it would be nice to have time come in date, hours, minutes, seconds format where seconds will be up to millisecond level.

Market Data » DOM query May 28, 2008 @ 03:48 PM (Total replies: 1)

I have a few questions regarding DOM:

  • Does DOM subscription give all bid/ask size changes or is it throttled?If it is throttled, what is the throttle rate?

  • Is the DOM subscription faster than OnPriceChange?


API Support » Some confusion in OnTicksReceivedEvent May 28, 2008 @ 08:49 AM (Total replies: 1)

hi,

i am using OnTicksReceivedEvent to get tick data. It is working fine but i am confuse what is contract Type which it is returning?

API Support » Problem in OnBarsReceivedEvent May 28, 2008 @ 08:41 AM (Total replies: 1)

hi,

i am using OnBarsReceivedEvent to get time interval data. Whatever value it is returning are correct but i have noticed that first 10 records are junk so can you guide me why it is giving these records?

API Support » Tick Chart May 22, 2008 @ 03:59 AM (Total replies: 1)

i want tick chart can you please help me to get it? i am using API advance example.

Market Data » Tick Data May 21, 2008 @ 09:33 AM (Total replies: 32)

I m using OnTickReceived(Subscription Subscription, Ticks Ticks) events.

now i want price from ticks so i m doing like this.
float total = Ticks.Prices[0];

here prices returning array so i m doing this. but sometime it is giving me error index out of range.

can you guide me why it is like that? bcoz when any trade will happen at that time only this event will fire so it must have price array so this error should not be generate.

please guide me.

API Support » Auto Subscribe Apr 18, 2008 @ 10:31 AM (Total replies: 5)

But my possition has been closed then why it is needed?

is there any other solution to unsubscribe it?

API Support » Auto Subscribe Apr 18, 2008 @ 05:18 AM (Total replies: 5)

Hi,

I have problem with quotes. I havent subscribe for any contract then also it is showing me 2 to 4 contracts default whenever i execute program, i cant understand why it is happening? even i have unsubscribed for it but it is not unsubscribing what to do?

API Support » Problem with OnOrderPriceChanged events Apr 07, 2008 @ 09:52 AM (Total replies: 1)

hi,

i have made some calculation in OnOrderPriceChanged events and i have made one order for one contract. Now i want to check price of the contracts so i have subscribed in quotes, it is working properly at this point. Now i have subscribed in quotes for another contracts. Now price changes for any contract this event is fire and i am getting wrong value for calculation so what i have to do?

Actually what i am doing is, when this event is fire i am storing last trade price in one varialbe and doing some calculation on it but now i have subscribed 2 contracts and price change in any contract this event will fire and it is giving wrong like other contract value for calculation And if i will restrict with making contraction validation then also its not working properly bcoz if price change same time then this event fire for only one contract.

tell me is there any thing like OnOrderPriceChanged event for perticular contract? and also tell me how i can come out from this?


Edited by HKusumakar79 on Apr 7, 2008 at 09:58 AM

API Support » Contract List Mar 25, 2008 @ 10:27 AM (Total replies: 8)

hi,

This is working.

Thank you thank you very much.

API Support » Contract List Mar 25, 2008 @ 08:54 AM (Total replies: 8)

hi,

Yes you are right it is there in example but i am using advance example and it is not there and when i am using like simple example and putting oecClient1 object in advance example it is not even getting connection.

how to solvel this?

API Support » Contract List Mar 24, 2008 @ 08:26 AM (Total replies: 8)

Thanks for your suggestion.

Can you send me code to bind dropdownbox with contracts of any perticular group?

right now my code is like this :

---------------
IList<ContractListEntry> contracts = OECContracts.ConvertFromOECContractList();
//ContractList contracts = contractList.Contracts;

cbSymbol.ValueMember = "Symbol";
cbSymbol.DisplayMember = "Name";
cbSymbol.DropDownWidth = 200;

BindingSource bs = new BindingSource(contracts, "");
cbSymbol.DataSource = bs;

-----------------------

so send me the code like this only. i have once tried with oecclient object but it was showing me error "object reference not found in the object"

API Support » Contract List Mar 21, 2008 @ 03:06 AM (Total replies: 8)

Thanks for your quick reply..

Actually i would like to show contract list in dropdown and i have used OECClient object to get all contract as per your suggessions but still i am not getting proper resut. this is my code :

private void PrepareContracts()
{
OECClient contractList = new OECClient();


ContractList contracts = contractList.Contracts;


cbSymbol.ValueMember = "Symbol";
cbSymbol.DisplayMember = "Name";
cbSymbol.DropDownWidth = 200;

BindingSource bs = new BindingSource(contracts, "");
cbSymbol.DataSource = bs;


cbSymbol.Text = string.Empty;
}

API Support » Contract List Mar 20, 2008 @ 07:09 AM (Total replies: 8)

hi,

I am using

IList<ContractListEntry> contracts = OECContracts.ConvertFromOECContractList();

to get list of contracts and i am getting list of it but i think its not from all the groups so can you tell me how i can get all the contracts from all the groups? becoz i need to have contracts from energy and currency groups.

what the changes required?

Market Data » LastPrice changed Mar 07, 2008 @ 06:04 AM (Total replies: 1)

I would like to know that lastprice has been changed or not? how it is possible? when i m using onPriceChanged event it is fire whenever any price change like bid/ask anything then i m not able to know that lastprice is changed or not.

Advanced Order Management » How to place order with trailing stop Feb 21, 2008 @ 06:12 AM (Total replies: 1)

I want to place order with trailing stop. is there any function of it?

Market Data » Volume and bid or ask Feb 19, 2008 @ 05:50 AM (Total replies: 17)

I got the answer i have just removed subscriptiong from onPriceChanged events and i have subscribed for tick where i am subscribing for price changed and its working fine.