0% found this document useful (0 votes)
129 views2 pages

Alveo Trading API - Apiary Fund

This document provides documentation for an API related to trading. It details many functions for selecting, opening, closing, modifying and retrieving information about orders. The API allows interacting with trading data and placing orders through code.

Uploaded by

futuregm2400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views2 pages

Alveo Trading API - Apiary Fund

This document provides documentation for an API related to trading. It details many functions for selecting, opening, closing, modifying and retrieving information about orders. The API allows interacting with trading data and placing orders through code.

Uploaded by

futuregm2400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

5/11/2020 Alveo Trading API | Apiary Fund

Sign in

Home About Reviews FAQ Pricing Promise

Back to Alveo Alveo Trading API


/// * Closes open order
/// Ticket - Unique number of the order ticket
/// Slippage - Value of the maximum price slippage in points
/// Color - Color of the closing arrow on the chart. If the parameter is missing or has CLR_NONE
/// Returns true if successful, otherwise false
protected bool OrderClose(int ticket, double lots, double price, int slippage, color Color = def

/// * Closes an opened order by another opposite opened order


/// Ticket - Unique number of the order ticket
/// Opposite - Unique number of the opposite order ticket
/// Color - Color of the closing arrow on the chart. If the parameter is missing or has CLR_NONE
/// Returns true if successful, otherwise false
protected bool OrderCloseBy(int ticket, int opposite, color Color = default(color))

/// * The close price of currently selected order. The order must be previously selected by the
protected double OrderClosePrice()

/// * Close time for the currently selected order. If order close time is not 0, then the order
/// closed and retrieved from the account history. Open and pending orders close time is equal t
/// The order must be previously selected by the OrderSelect() function
protected datetime OrderCloseTime()

/// * Returns comment of the currently selected order. The order must be previously selected by
protected string OrderComment()

/// * Returns calculated commission of the currently selected order. The order must be previousl
/// OrderSelect() function
protected double OrderCommission()

/// * Deletes previously opened pending order


/// Color - Color of the delete arrow on the chart. If the parameter is missing or has CLR_NONE
protected bool OrderDelete(int ticket, color Color = default(color))

/// * Returns expiration date of the selected pending order. The order must be previously select
protected datetime OrderExpiration()

/// * Returns amount of lots of the selected order. The order must be previously selected by the
protected double OrderLots()

/// * Modification of characteristics of the previously opened position or pending orders


protected bool OrderModify(int ticket, double price, double stoploss, double takeprofit, datetim

/// * Open price of the currently selected order. The order must be previously selected by the O
protected double OrderOpenPrice()

/// * Returns open time of the currently selected order. The order must be previously selected b
protected datetime OrderOpenTime()

/// * Prints information about the selected order in the log and app journal. The order must be
protected void OrderPrint()

/// * Returns profit of the currently selected order.The order must be previously selected by th
protected double OrderProfit()

/// * The function selects an order for further processing


/// Index - Order index or order ticket depending on the second parameter
/// Select - Selecting flags. It can be any of the following values:
/// SELECT_BY_POS - index in the order pool,
/// SELECT_BY_TICKET - index is order ticket.
/// C l O ti l d l i d U d h th l t d t i SELECT BY POS It
https://apiaryfund.com/alveo/codebase/trading 1/2
5/11/2020 Alveo Trading API | Apiary Fund
/// Color - Optional order pool index. Used when the selected parameter is SELECT_BY_POS. It can
/// MODE_TRADES (default)- order selected from trading pool(opened and pending orders)
/// MODE_HISTORY - order selected from history pool (closed and canceled order)
protected bool OrderSelect(int index, int select, int pool = MODE_TRADES)

/// * The main function used to open a market order or place a pending order
/// cmd - Operation type. It can be any of the Trade operation enumeration
/// magic - Order magic number. May be used as user defined identifier (0 default)
/// arrow_color - Color of the opening arrow on the chart. If parameter is missing or has CLR_NO
/// Returns number of the ticket assigned to the order by the trade server or -1 if it fails. To
protected int OrderSend(string symbol, int cmd, double volume, double price, int slippage, doubl

/// * Returns the number of closed orders in the account history loaded into the terminal
protected int OrdersHistoryTotal()

/// * Returns stop loss value of the currently selected order


protected double OrderStopLoss()

/// * Returns the number of market and pending orders


protected int OrdersTotal()

/// * Returns swap value of the currently selected order.The order must be previously selected b
protected double OrderSwap()

/// * Returns symbol name of the currently selected order.The order must be previously selected
protected string OrderSymbol()

/// * Returns take profit value of the currently selected order.The order must be previously sel
protected double OrderTakeProfit()

/// * Returns ticket number of the currently selected order.The order must be previously selecte
protected int OrderTicket()

/// * Returns order operation type of the currently selected order.The order must be previously
/// OrderSelect() function
/// OP_BUY - buying position,
/// OP_SELL - selling position,
/// OP_BUYLIMIT - buy limit pending position,
/// OP_BUYSTOP - buy stop pending position,
/// OP_SELLLIMIT - sell limit pending position,
/// OP_SELLSTOP - sell stop pending position.
protected int OrderType()

Contact Us Investing in securities, currencies, and/or contracts associated © 2020 All Rights Reserved
therewith carries inherent risks. No person, institution, or entity, Apiary Investment Fund
Terms of Service including the Apiary Investment Fund, can guarantee a return
on investment for such transactions. Neither the Apiary 383 W Lakeview Rd
Disclaimer Investment Fund nor its representatives will recommend the Lindon UT 84042
Privacy Policy purchase, sale, or transaction advice for a specific security. 1-801-701-1650

https://apiaryfund.com/alveo/codebase/trading 2/2

You might also like