Itsik Zamir
New Member
- Joined
- Apr 15, 2011
- Messages
- 1
Hi all,
I have registered an automatic trading platform in which I can send Buy/Sell orders to the stock exchange. In their user manual they gave the following example for a user method that will send orders with VBA. I want to send the orders from Excel but I haven't succeed implementing it.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
The method is: User.SendMaofAsynchSpeedOrder Method <o></o>
Their example is:
<o> </o>
[Visual Basic]
Public Function SendMaofAsynchSpeedOrder {
ByVal SessionId As Long, _
ByRef Orders() As MaofOrderType, _
ByRef ErrNO As Long, _
Optional ByVal SPCOrder As Long = 0
) As Long
<o> </o>
While the MaofOrderType was declared in their example as:
[Visual Basic]
Public Type MaofOrderType
Branch As String <o></o>
Account As String <o></o>
Option As String <o></o>
Operation As String <o></o>
Ammount As String <o></o>
Price As String <o></o>
Sug_Pkuda As String <o></o>
Asmachta As String <o></o>
Pass As Long <o></o>
OrderId As Long <o></o>
<o> </o>
End Type
<o> </o>Public Function SendMaofAsynchSpeedOrder {
ByVal SessionId As Long, _
ByRef Orders() As MaofOrderType, _
ByRef ErrNO As Long, _
Optional ByVal SPCOrder As Long = 0
) As Long
<o> </o>
While the MaofOrderType was declared in their example as:
[Visual Basic]
Public Type MaofOrderType
Branch As String <o></o>
Account As String <o></o>
Option As String <o></o>
Operation As String <o></o>
Ammount As String <o></o>
Price As String <o></o>
Sug_Pkuda As String <o></o>
Asmachta As String <o></o>
Pass As Long <o></o>
OrderId As Long <o></o>
<o> </o>
End Type
Parameters:<o></o>
SessionId <o></o>
Unique Session Identification number that identifies the session for which the function is called. <o></o>
Orders <o></o>
Array of MaofOrderType containing all details regarding the orders that are being sent. <o></o>
ErrNO <o></o>
If an error occurs during the operation, an error number will be relayed back to the client application.<o></o>
Unique Session Identification number that identifies the session for which the function is called. <o></o>
Orders <o></o>
Array of MaofOrderType containing all details regarding the orders that are being sent. <o></o>
ErrNO <o></o>
If an error occurs during the operation, an error number will be relayed back to the client application.<o></o>
<o></o>
<o> </o>
My question is how do I implement the User.SendMaofAsynchSpeedOrder Method ?<o></o>
<o> </o>
Thanks a lot<o></o>