FX/Forex Currency - FIX Tag 54 How to use it - fix-protocol

I am new to FIX protocol
I am not sure how exactly Tag54 (Buy/Sell) works
According to the API I am reading for making FX Single Order via FIX
They say:
Tag 55 Tag 54 Tag 15
Buy EUR EUR/USD 1 EUR
Sell USD EUR/USD 1 USD <-- Why is this a Sell?
Sell EUR EUR/USD 2 EUR
Buy USD EUR/USD 2 USD <-- Why is this a Buy?
reference : (Page 5) http://www.commanderfx.com/downloads/Commander_Rules_Of_Engagement_v1_5.pdf
I would have expected this:
Tag 55 Tag 54 Tag 15
Buy EUR EUR/USD 1 EUR
Sell USD EUR/USD 2 USD <-- Tag 54 changed
Sell EUR EUR/USD 2 EUR
Buy USD EUR/USD 1 USD <-- Tag 54 Changed?

You overlooked this important point.
Please note that the Side (tag 54) always refers to the base currency
So it always points to what side you are on your base currency(sell/buy) and not on what currency you are buying or selling.

The currency pair for each of these trades is EUR/USD so each of the buy or sell orders is relative to this (the rates are in market convention). The rate EUR/USD means how many USD I will get for each unit of EUR that I exchange, buying USD from EUR is termed as buying EUR/USD, selling USD to get EUR is selling the pair. Remember that buy or sell is relative to the pair in this way. In FX trader terms you don't buy or sell a currency you buy or sell the PAIR in MARKET CONVENTION. I hope that helps.

Related

How to combine the date in different columns? (Tableau)

I have a dataset ab the donor of the organization. Each row starts with donor's ID and name, home address, donate_date_1, donate_amount_1, donate_date_2, donate_amount_2, keep going until 98. It looks similar to this
Donor_ID NAME donate_date_1 donate_amount_1 donate_date_2 donate_amount_2 Total_Amount
0 A Month/Day/Year 100 Month/Day/Year 200 300
1 B Month/Day/Year 200 Month/Day/Year 50 250
2 C Month/Day/Year 1000 Month/Day/Year 500 1500
The dataset has the donors' records from 1982. Every donor starts to donate on different date, ex: 2007 to donor1 is the first donation, but to donor 2 might be the 10th donation.
So here is my question: How can I combine all the dates to see which year the donors donate the most money and create the filter to see how much money was donated in total in the specific period?

Extracting specific data from a table using Scala?

Heres a sample DF:
Date Party name Symbol Buy/Sell indicator # of shares trade price
2011-01-03 American Funds EuPc;A AAPL BUY 2400 332.87
2011-02-14 American Funds CWGI;A SLB BUY 6700 94.08
2011-01-06 Tudor Investment Corp ALL BUY 11800 31.92
2011-01-20 American Funds Inc;A AMZN SELL 3600 180.14
And here is what I wish to achieve:
Date Party name Symbol Buy/Sell # of shares trade price trading volume
2011-04-21 Federated Prime Obl;Inst MMM BUY 2600 96.17 250042
2011-01-05 Fortress Investment Group CMCSA SELL 29700 21.96 644193
2011-02-28 Dodge & Cox Intl Stock DELL SELL 57400 15.67 899458
2011-05-02 American Funds Inc;A S BUY 137300 5.19 712587
The new trading volume column is the # of shares column * trade price column. Anyone know how to achieve this automatically since there are a lot more lines? What I would like to do after is take the trading volume values and show them as an output in descending order. The exact instruction is
The biggest dollar trading volume counter parties, top twenty list.
I have this so far:
val dataframe = spark.read.cvs("c:\data")
val newdf = dataframe.select("# of shares","trade price")
Any help would be much appreciated. Thank you.
Here you go:
import org.apache.spark.sql.functions._
val newdf = dataframe.withColumn("trading volume",col("# of shares")*col("trade price"))
.select("# of shares","trade price","trading volume")

Commission with Paypal Express Checkout

I would like to know how much is the commission on a Paypal Express Checkout transaction.
Thanks for helping, TC
Are you referring to the PayPal fee? It depends on your monthly volume and a few other variables, but here's a basic break-down.
$0 - $3,000 / mo = 2.9% + 30 cents
$3,001 - $10,000 / mo = 2.5% + 30 cents
$10,001 - $100,000 / mo = 2.2% + 30 cents
$100,000+ / mo = Negotiable with PayPal
For more details, see PayPal's fee page.

How to find group wise total(Sum) in SAP crystal report?

How to find group wise total(Sum) in SAP crystal report?
Dear All,
I have to find the Sum of value based on the Date(01/01/2014……) And Regional (North,West,East,Central) wise….But 2014,2013 column data type varchar(25)
Here I will give little Example of what I want to do:
Date Regional StationName 2014 2013
01/01/14 North AAA 1000.00 100.20
01/01/14 North BBB 500.00 50.00
1500.00 150.2
01/01/14 West ZZZ 100.00 00.00
01/01/14 West YYY 500.00 10.00
600.00 10.00
Grand Total :2100.00 160.2
to get that done you will have to create 2 groups, one by Date(suppressed) and another by Regional where you are going to place all of your fields. Then crate to formulas, one for 2014 and another for 2013 columns to convert those strings to number using tonumber() function. For example tonumber(2014). Then you will have to summarize 2014 and 2013 based on Regional Group and grand totals for both as well.

How to implement PayPal recurring payment with dynamic amount?

I want to implement recurring payment in PayPal with variable amount. I successfully implement recurring payment with constant amount. But i don't know how to implement the recurring payment with variable amount,
Very typical scenario would be Telephone Bill amount deduction by the service providers.
If my September month bill contains Rental : 20 Euros, usage : 15 Euros, then the deduction would be 35 euros
Next if my October month bill contains Rental : 20 Euros , usage : 25 Euros, then the deduction would be 45 Euros.
Next if my November month bill contains Rental : 20 Euros , usage : 50 Euros, then the deduction would be 70 Euros.
Considering the above scenarios, please advise how to handle it from both the sides..
Thanks in advance..
Riyaz
You might have to simply automate the PayPal payment from your end,
not automatically from PayPal's end. You can't have a subscription
that varies in price, so you'll have to do a single charge every
month, with the amount you specify. (As far as I know)
That also means that you'll have to manage the subscriptions on your
end (pretty easily doable), and there will be no way for the user to
un-subscribe from the PayPal side.