|
|
 |
|

04-10-2008, 10:07 PM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
|
When you call FIX method you should be passing the values of the variables that you have declared. You shouldn't be delcaring them within the method. This is most likely the cause of your error.
|

04-11-2008, 05:11 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
Dim OrderNo, DealerInt As Object
Dim QuoteID As Object
Dim templots As String
templots = cmbLots.Text * LotSize
Dim t As Double = lblPrice.Text
Try
oTradeDesk1.Fix_Open(t, QuoteID, facc, Product, True, templots)
T = the Open Rate Value
QuoteID=""
facc= My Account Number
Product=Product like EUR/USD
True = For Buy and Sell Boolean
Templots = Lot size in like 100000 or 20000
I am still getting the error.
My other question is that when we call
oTradeDesk1.OpenTrade(facc, Product, True, templots, OpenRate, QuoteID, 20, 0, 0, 0, OrderNo, DealerInt)
It save the OrderNo in OrderNo variable to get the OrderNo same time when using FIX What we need to do where we pas the variable?
Thanks
|

04-13-2008, 08:37 PM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
FIX_OPEN is not a function but a property for a trade. You would need to use the CreateFixOrder function in order to send the trade to us.
TradeDeskAut.CreateFixOrder
Brief
Creates a order according with FIX protocol.
Declaration
Function CreateFixOrder (OrderKind As Integer, TradeID as String, Rate As Double, Rate1 As Double, QuoteID As String, AccountID As String, Instrument As String, BuySell As Bool, Lots As Integer, Remark as String, ByRef OrderID as Variant, ByRef DealerIntervention as Variant); Details
Name Description OrderKind Kind of FIX orders. Must be specified as TradeDeskAut property value, shown below. TradeID ID of trade. Can be empty. (Depends on OrderKind) Rate Main rate. Can be zero or negative number. (Depends on OrderKind) Rate1 Secondary rate. Can be zero or negative number. (Depends on OrderKind) QuoteID Quote ID. Can be empty. (Depends on OrderKind) AccountID Account identifier. Can be empty. (Depends on OrderKind) Instrument Instrument name. Can be empty. (Depends on OrderKind) BuySell True if order is 'Buy'. Can be arbitrary. (Depends on OrderKind) Lots Number of lots. Can be zero. (Depends on OrderKind) Remark Operation remark. Can be empty. (Depends on OrderKind) OrderID [out] ID of created order. Some FIX order kinds does not return this value. DealerIntervention [out] DealerIntervention value. True if order was not executed immediately.
|

04-14-2008, 03:01 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
Hi,
First you said use the OpenTrade function it give me price problem it cannot execute the trade at the rate which we are passing.
Then you said use Fix_Open i send on the thread it give me the error than you are saying use oTradeDesk1.CreateFixOrder() property. Please also specify the parameters details which we want to pass like OrderKind,TradeID. in the thread you post can be empty something like that. Is i pass the parameters empty or what i pass please also includes the details of the parameters and is it market order or create entry order? i want to place market order.
Thanks
|

04-14-2008, 03:18 AM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
|
Here's the parameters for each each functions:
Function CreateFixOrder (OrderKind As Integer, TradeID as String, Rate as Double, Ratel As Double, QuoteID As String, AccountID As String, Instrument As String, BuySell As Bool, Lots As Integer, Remark as String, ByRef OrderID As Variant, ByRef DealerIntervention as Variant);
If you are want to create a market order with current market rate, you could use FIX_OPENMARKET.The parameters required for this function are: AccountID, Instrument, BuySell and Lots.
|

04-14-2008, 03:22 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
If it is Market Order for Open how we get the OrderID or TicketID when we are passing the parameter because when we use OpenOrder method it returns us OrderID when we pass blank variable. Now for the Fix_Open how we obtain the orderid or ticketid for the market order. For the Market Orders only we use FIX functions. for Buy, Sell and Close Trade only.
Thanks
|

04-14-2008, 03:27 AM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
|
OrderID would be returned as well when you call the FIX_OPENMARKET function. Same cases for all the other FIX functions.
|

04-14-2008, 03:32 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
If we use following code is it return the code?
Dim orderid as string
Try
orderid = OtradeDesk1.Fix_open (...............)
Catch ex as exception
End Try
Is it return the tradeid/order id in that variable?
|

04-14-2008, 03:37 AM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
|
Yes. If the trade has been executed successfully, an OrderID would be returned in this case.
|

04-14-2008, 04:18 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
Hi,
If you see the post reply dated at 04-10-2008, 10:06 AM (Post # 60) i define the exception which i am getting Please tell me what is the problem in the code.I also attached the snapshot of the error.
Other question:
I removed the fxcm trading station and order2go from my system now when i runb my applicaiton it cannot intilize the object just give erro active x not created something like that.
As i said in my previous posts and asked a question that our customers don't need to instal/run order 2go/fxcm trading station. They run our system and trades place in fxcm throguh API now before removing that versions it intilize the fx cor object but it give me error? I also re added the .dll file in refrence but notwork,.
Thanks
Zafar
|

04-16-2008, 04:43 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
|
Hi,
I posted a question two days before but still no reply from fxcm moderator???
|

04-16-2008, 10:08 PM
|
|
Moderator
|
|
Join Date: Jan 2006
Posts: 2,005
|
|
Zafar,
OTradeDesk1.Fix_Open(Rate as Double, QuoteID as String, AccountID as String, Instrument as String, BuySell as Bool, Lots as Integers)
When passing a fix order, you need to pass all the objects required for fix orders or you will receive this error message. You only passed 6 of the 11 necessary objects. This error message is caused by that issue. You can simply leave the values null if no useful information is passed. (Dim di as Object)
oTradeDesk.Fix_Open(FIXoType, TicketNumber.Text, Rate, RangeAmnt, QuoteID.Text, AccountID.Text, Instrument.Text, BuySell, Lots, remark, OrderNo, di)
With regards to your question about clients installing Order2Go. It is a necessity since it installs everything needed, dlls, registry keys etc There is a runtime version for clients that don't need all the supporting documentation:
http://www.fxcorporate.com/Order2Go/FXOrder2GoRE.EXE
Either you would need to tell the client to install it, or could somehow have your application start the process, but either way, it provides the necessary bridge to FXCM.
|

04-17-2008, 02:27 PM
|
|
Junior Member
|
|
Join Date: Apr 2008
Posts: 1
|
|
Quote:
|
Originally Posted by FXCM Help
Zafar,
OTradeDesk1.Fix_Open(Rate as Double, QuoteID as String, AccountID as String, Instrument as String, BuySell as Bool, Lots as Integers)
When passing a fix order, you need to pass all the objects required for fix orders or you will receive this error message. You only passed 6 of the 11 necessary objects. This error message is caused by that issue. You can simply leave the values null if no useful information is passed. (Dim di as Object)
oTradeDesk.Fix_Open(FIXoType, TicketNumber.Text, Rate, RangeAmnt, QuoteID.Text, AccountID.Text, Instrument.Text, BuySell, Lots, remark, OrderNo, di)
With regards to your question about clients installing Order2Go. It is a necessity since it installs everything needed, dlls, registry keys etc There is a runtime version for clients that don't need all the supporting documentation:
http://www.fxcorporate.com/Order2Go/FXOrder2GoRE.EXE
Either you would need to tell the client to install it, or could somehow have your application start the process, but either way, it provides the necessary bridge to FXCM.
|
Hello, I have been developing professional financial software 20 years and I must say that the documentation of the Order2Go API is really poor. Ok, there is O2G_trader.chm help file but it is only function reference type document that tells nothing about HOW TO USE THE API. Just look at the questions that Zafarpk has asked. They are qood questions but they are also basic questions. It is of course good that you answer questions here but most of the information you give here is basic information about API that should be written in the document called "Order2Go User's Guide".
|

04-26-2008, 10:19 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 4
|
|
|
Some advice
Zafarpk, after reading your questions on many, many threads, you really have no business developing applications for such a complex financial software as FXCM trading station. It would make your life A LOT easier to subcontract the work to a professional programmer who knows how to extract COM references and work with API's.
arikhard, these kinds of questions are very amateur in nature even if the Order2go documentation is a little thin.
my 2 cents. best of luck.
|

05-27-2008, 01:52 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 112
|
|
Quote:
|
Originally Posted by stormaz
Zafarpk, after reading your questions on many, many threads, you really have no business developing applications for such a complex financial software as FXCM trading station. It would make your life A LOT easier to subcontract the work to a professional programmer who knows how to extract COM references and work with API's.
arikhard, these kinds of questions are very amateur in nature even if the Order2go documentation is a little thin.
my 2 cents. best of luck.
|
Dear stormaz,
If i give you a com and ask you to use that for making stop limit and you only make stop not a limit and ask me there is no function for limit what i realize you are programmer or student? To know the functions and how to use api we need to understand completely. See in the thread when i place order i send another price but it execute on another rate in trading station so is it good for business if i am developing trading station? That's why after getting expereince with fxcm api i sent that questions.
Thanks
Zafar
|
 |
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|