Search for theory / math of CFDs (forex)

 

I searched for books / websites with same subject as this post. I don't look for trading strategies (as all books offer which I've found). Just plain theory / math of what happens in detail. To understand what is happening behind the curtains of the brokers API / GUI. My goal is to understand the complete chain to program my own code for testing purposes.

Can you recommend some sources?

Thanks in advance

 
Contract for Differences (CFD) Definition: Uses and Examples
Contract for Differences (CFD) Definition: Uses and Examples
  • www.investopedia.com
A contract for differences (CFD) is an arrangement made in financial derivatives trading where the differences in the settlement between the open and closing trade prices are cash-settled. There is no delivery of physical goods or securities with CFDs. Contracts for differences is an advanced trading strategy that is used by experienced traders...
 
Reason: