Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Filter inputs

NameTypeDescriptionMandatoryAvailable from version
BrickIdsGuid[]Filter by array of BrickIds. BrickId is the internal id of a currency exchange order.
2.25
OrderDirectionKeyStringFilter based on if you want to show buy or sell orders. Enter "Buy" for buy orders and "Sell" for sell orders.
2.25
AccountOwnersGuid[]Filter based on the BrickId of the account owner Legal Entities.
2.25
AccountsGuid[]Filter based on the Account where the order is associated.
2.25
BuyCashAssetBrickIdsGuid[]Filter based on the Cash asset BrickIds of the currency that should be bought.
2.25
SellCashAssetBrickIdsGuid[]Filter based on the Cash asset BrickIds of the currency that should be sold.
2.25
CommentsString[]Filter based on the comments on the orders.
2.25
CreatedDateFromDateTimeFilter on the created date of the orders.
2.25
CreatedDateToDateTime
2.25
FromBuyAmountDecimalIn case of a buy order you can filter based on the amount that should be bought.
2.25
ToBuyAmountDecimal
2.25
FromSellAmountDecimalIn case of a sell order you can filter based on the amount that should be sold.
2.25
ToSellAmountDecimal
2.25
OrderNosString[]Filter by order numbers.
2.25
StatesString[]

Filter by order status, available statuses are:

Placed - the initial state
PrePlaced - if the order is placed but money is not available to reserve
Processed - the order is ready to be sent for execution
Sent - the order was sent for execution
Executed - the order was executed
Settled - the order was settled
Cancelled - the order was cancelled
Review - the order is currently in review


2.25

...

Code Block
languagec#
themeRDark
titleC# - Get all account types Currency Exchange Orders from a BFS instance
linenumberstrue
collapsetrue
 var request = new GetCurrencyExchangeOrderRequest();

            request.Credentials = CorrectCredentials();
            request.identify = CorrectIdentify();

            request.Args = new GetCurrencyExchangeOrderArgs
            {
                OrderDirectionKey = "Buy",
                AccountOwners = new []{Guid.Empty, },
                Accounts = new []{Guid.Empty, },
                BrickIds = new []{Guid.Empty, },
                BuyCashAssetBrickIds = new []{Guid.Empty, },
                SellCashAssetBrickIds = new []{Guid.Empty, },
                Comments = new []{"Test"},
                CreatedDateFrom = DateTime.MinValue,
                CreatedDateTo = DateTime.MaxValue,
                FromBuyAmount = 0M,
                ToBuyAmount = 1000000M,
                OrderNos = new []{"878889", "7786"},
                States = new []{"Placed", "Settled"}
            };

            request.Fields = new GetCurrencyExchangeOrderFields
            {
                BuyCashAssetBrickId = true,
                SellCashAssetBrickId = true,
                Comment = true,
                BuyAmount = true,
                AccountId = true,
                AllocationOrder = true,
                CurrencyExchangeBatchOrder = true,
                BrickId = true,
                CreatedDate = true,
                CustomFields = true,
                ExecutionInterfaceId = true,
                LegalEntityId = true,
                OrderDirectionKey = true,
                OrderNo = true,
                State = true,
                SellAmount = true
            };

            var response = client.GetCurrencyExchangeOrders(request);


Blog Posts
sortcreation
contenttitles
labelsgetaccounttypesgetcurrencyexchangeorders