In lower-end forex shops, you're simply authorizing your broker to calculate how much money you would have won or lost had the trade actually occurred and debit/credit your account accordingly. No foreign currencies change hands and no financial instruments are implicated.
These are called "bucket shops" and they're so slimy that Bitcoin exchange operators feel obligated to describe that they're not like them.
More than a century ago, Jesse Livermore[1] made and lost several fortunes trading stocks via bucket shops. Not unlike what happens to current day card counters, the bucket shops banned Livermore. Bucket shops (at least for stocks) have long been illegal in the USA.
[1] https://en.wikipedia.org/wiki/Reminiscences_of_a_Stock_Opera...
The original bucket shops were only slimy because they could have real traders at the exchange manipulating the price to wipe out customers in the bucket shop. (as far as I know)
There are other forms of FX trading. For example, you can go to 'betting' sites to bet on currency rate movements -- for example, in the UK this is usually better for retail clients than normal FX trading as the profits fall under betting profits and not trading profits, and the former are lower. (Ridiculous, I know.)
- CHFEUR floor is 1.2 (or that's what everybody thought)
- so you short the CHF @ 1.2
- side effect: your money is essentially stored safely in a position that has no downside but has upside (or so you think)
- if, for any reason, CHFEUR is >1.2, then you exit your short position with some profit
- when CHFEUR is back to 1.2, then do the same again.
Works brilliantly, until the black swan flies through your window, and everything is full of shattered glass. So in short, people relied on the SNB's promise, they thought there's zero risk of this thing happening (i.e. removing the floor without notice), and took positions that had small upside with ~1 probability and huge downside with ~0 probability. At least they have a good story to tell now.