Pages:
Author

Topic: Long+Short basket currencies - page 2. (Read 3583 times)

hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
September 28, 2012, 10:20:44 PM
#22
Well presumably the price they name must at least be on the correct side of the strike?

So long person must name at least strike, and short person must name at most strike?

Maybe you can run through your example again but this time with it being the case that the prices they can get out in the world are below their strike price not above it?

-MarkM-

If I understand you correctly, you mean something like this (let's just use MtGox now; I think the arbitrage scenario has been established):

1. Bob and Alice create a CFD for 1 Bitcoin, beginning at $5. Bob takes the short, Alice takes the long.
2. Bitcoin drops to $4. Alice wants to cheat Bob; she claims it's at $6
3. Bob says "sure, it's at $6." He pays her $1 (the difference).
4. Since Alice named the price, she must accept the trade. Bob buys 1 BTC for $4 and sells it to her for $6. She sells it back to the exchange for $4.
5. Math. Bob sends MtGox $4, Alice 1 BTC, and Alice $1; he receives $6 and 1 BTC from Alice. This is a profit of $1, which makes sense because he "won" his short.
Alice sends MtGox 1 BTC and Bob $6; she receives 1 BTC from Bob, $1 from Bob, and $4 from MtGox. This is a loss of $1, which makes sense because in truth, the exchange rate fell, so her long position should be losing.

Really, the party can name any price for exercise (even a negative price Tongue) and it will still work out properly.

In the case that there really are two different prices (say 2 different local markets or something), then it's possible for both parties to profit; this profit comes from the arbitrage.
legendary
Activity: 2940
Merit: 1090
September 28, 2012, 10:10:26 PM
#21
Well presumably the price they name must at least be on the correct side of the strike?

So long person must name at least strike, and short person must name at most strike?

Maybe you can run through your example again but this time with it being the case that the prices they can get out in the world are below their strike price not above it?

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
September 28, 2012, 10:04:11 PM
#20
Hmm, okay, so the long person has to accept a coin at their choice of long price to exercies the contract.

Presumably meanwhile the short person has to provide a coin at their coince of short price in order to exercise the contract?

So if Bob, who took the short side, claims his oracle's price is $1, while Alice, who took long, claims her oracle's price is $10... What then?

If Bob is correct that short is the way it went, he has to send Alice a bitcoin for $1.

If Alice is correct that long is the way it went, she has to pay Bob $10 for a bitcoin.

So what is the net effect? Are they both right, so Bob sends a bitcoin and Alice sends him $9 change?

Or are they both right, so Bob sends one bitcoin for $1 and a second bitcoin for $10 and receives $11 from Alice for the pair of them?

Oh wait, the $5 comes into it somewhere too presumably...
That won't work. If it's a no-oracle CFD (aka futures contract Wink), then they have to agree on the exercise price. Who is on which end of the trade would be specified in the contract. Possibilities include...
- CFD can be exercised at will; exerciser is forced to make the trade (forced to buy if they are long or sell if they are short)
- CFD is exercised at set date; the long person (or the short person, as specified in contract) is forced to make the trade

In both possibilities, the person forced to make the trade names the price.

Quote
EDIT: By the way, for my purposes fees to the platform/exchange are irrelevant, so only worry about whether Bob or Alice require a fee one from the other. Both are paying per API call for each and every thing they have the platform do for them, including telling them about each other's offers.
I think the most elegant way is to not specify any fees in the contract. If I can buy bitcoins for $1 each at an exchange which charges 1200% commission, is that really worth concluding a short CFD over?
legendary
Activity: 2940
Merit: 1090
September 28, 2012, 09:29:42 PM
#19
Hmm, okay, so the long person has to accept a coin at their choice of long price to exercies the contract.

Presumably meanwhile the short person has to provide a coin at their coince of short price in order to exercise the contract?

So if Bob, who took the short side, claims his oracle's price is $1, while Alice, who took long, claims her oracle's price is $10... What then?

If Bob is correct that short is the way it went, he has to send Alice a bitcoin for $1.

If Alice is correct that long is the way it went, she has to pay Bob $10 for a bitcoin.

So what is the net effect? Are they both right, so Bob sends a bitcoin and Alice sends him $9 change?

Or are they both right, so Bob sends one bitcoin for $1 and a second bitcoin for $10 and receives $11 from Alice for the pair of them?

Oh wait, the $5 comes into it somewhere too presumably...

EDIT: By the way, for my purposes fees to the platform/exchange are irrelevant, so only worry about whether Bob or Alice require a fee one from the other. Both are paying per API call for each and every thing they have the platform do for them, including telling them about each other's offers.

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
September 28, 2012, 09:12:14 PM
#18
Oh that is very nice, yes, thank you for that.

But it is already a step toward letting the players discover prices themselves aka a step away from "the oracle". In fact there is not really "an" oracle anymore, and no reason to think there are only two places where alice and/or bob could discover yet more prices.

Thus, I still think the properly elegant solution I am looking for would be one in which no one other than maybe alice needs concern themselves about what alice uses as an orancle or even wjether she uses one at all (aka uses her ass as in pulls numbers out of her ass) and same for bob; thus no oracles other than the players themselves in their oracular capacities (however limited those capacities might be).
I still believe my solution works. Bob and Alice do not need to agree on the price at all; they must simply accept trades for the value of the CFD at that price. Consider the scenario in which Alice tries to scam Bob:

1. Bob and Alice create a CFD for 1 Bitcoin, beginning at $5. Bob takes the short, Alice takes the long.
2. BTC-e trades at $6; MtGox trades at $7. (Bob only has access to BTC-e)
3. Alice claims that tradeb1tco1ns.tk is trading at $10.
4. In order to exercise the CFD at $10, Alice must accept 1 BTC from Bob for $10. Bob then sends her $5 (the difference).
5. Do the math. Bob buys the 1 BTC for $6 and sells it for $10, but must send Alice the $5 difference. 10-6-5 = -1. He loses $1, which is the difference between $5 and $6.
Alice sends Bob $10 and receives 1 BTC (the sale) and $5 (the difference). She sells the 1 BTC at MtGox for $7. 5+7-10=2. She gains $2, which is the difference between $5 and $7.

The actual transactions (some of it cancels) are:
Bob  -> Alice 1 BTC
Alice -> Bob $5

Tee-hee! It all cancels! This method of a no-oracle CFD is simply a futures contract at spot price! A 1 BTC CFD starting at $5 is really just a 1 BTC future/forward.

Quote
Thus I still have not really come up with anything better yet than the thread-titular baskets, though I have been reading upon how MPEx works (and finding out their secret sauce seems to be secret).
I think MPEX options are just oracle-based options in which no USD is transacted. If you buy a 1 BTC call, and BTC rises $1.2, you get 1.2 USD * (BTC/USD).


[/quote]
legendary
Activity: 2940
Merit: 1090
September 17, 2012, 05:58:54 AM
#17
Oh that is very nice, yes, thank you for that.

But it is already a step toward letting the players discover prices themselves aka a step away from "the oracle". In fact there is not really "an" oracle anymore, and no reason to think there are only two places where alice and/or bob could discover yet more prices.

Thus, I still think the properly elegant solution I am looking for would be one in which no one other than maybe alice needs concern themselves about what alice uses as an oracle or even whether she uses one at all (aka uses her ass as in pulls numbers out of her ass) and same for bob; thus no oracles other than the players themselves in their oracular capacities (however limited those capacities might be).

Thus I still have not really come up with anything better yet than the thread-titular baskets, though I have been reading upon how MPEx works (and finding out their secret sauce seems to be secret).

I am wondering whether these baskets might become more palatable to people when used/viewed in conjunction with a capital-building "line of collateral-building credit" I have also been thinking about. Basically that idea involves a broker who holds (escrow basically; a margin account kind of thing) a collateral account against which you can borrow up to lets say about 50% of its assessed value. Since this type of margin account already forces you to have 50% of your collateral tied up, maybe the way that these baskets also tie up some funds will not seem so bad, or maybe even the two ideas (the collateral account you can borrow against to buy more collateral that you can borrow against to buy more collateral etc etc etc and the long+short basket currencies idea) can be brought closer together, maybe even somehow to some extent actually integrated...

-MarkM-

hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
September 16, 2012, 11:01:07 AM
#16
It seems my main objection really is the oracle. It just seems to manipulable to me in bitcoin's case way too volatile.

Would some kind of smothing be acceptable for an oracle? I expect gamblers will want the most volatile oracle to be used, but for your serious purpose would a smoother one work? It kind of seems like really a call option would be best for your purpose?

I was thinking back to this thread the other day, and I came up with the solution for the oracle problem. When one party wants to exercise the CFD (or when the CFD expires), both parties try to agree on the price. If they can't, the parties must accept trades up to the value of the CFD for their quoted price (adjusted by some reasonable fraction for fees).

Consider this scenario:
1. Bob and Alice create a CFD for 1 Bitcoin, beginning at $5. Bob takes the short, Alice takes the long.
2. BTC-e trades at $6; MtGox trades at $7.
3. Alice wants to use the MtGox price (obviously). Bob doesn't have access to MtGox.
4. Bob buys 1 Bitcoin at $6 from BTC-e, and sells it for $7 (minus some reasonable percentage agreed upon in step 1) to Alice.
5. Alice accepts payment of $2 and sells Bob's coin at MtGox.

Because Bob profited $1 (minus some reasonable fee) from his arbitrage sale, his payment of $2 is really only a loss of $1. From his net loss, it's like the contract was concluded using BTC-e as the oracle.

Because Alice sold Bob's coin, her profit is still $2. From her net profit, it's like the contract was concluded using MtGox as the oracle.
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
August 30, 2012, 05:42:00 PM
#15
A CFD is free? Why does anyone off them then? What is their business model?

-MarkM-

CFD's can be done between two people with no middleman, and it's been done more than once on these forums.
legendary
Activity: 2940
Merit: 1090
August 30, 2012, 05:08:48 PM
#14
A CFD is free? Why does anyone offer them then? What is their business model?

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
August 30, 2012, 04:57:16 PM
#13
The thing is that a CFD locks in your "repay" price for free, while the call option locks in the maximum repay price at a cost. In this way, the CFD is less gamble-y.
legendary
Activity: 2940
Merit: 1090
August 30, 2012, 04:35:20 PM
#12
Yes, I like futures (calls and puts) better than contract for difference. It is more obviously related to what you are doing, too. YOu want a hundred bitcoins in future for similar price you borrowed at, and someone agrees they will sell you them at that price.

It even lacks the gambling aspect more, as you aren't going to end up getting an even better price die to random fluctuations of some oracle.

It seems my main objection really is the oracle. It just seems too manipulable to me in bitcoin's case way too volatile.

Would some kind of smothing be acceptable for an oracle? I expect gamblers will want the most volatile oracle to be used, but for your serious purpose would a smoother one work? It kind of seems like really a call option would be best for your purpose?

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
August 30, 2012, 04:15:13 PM
#11
a serious investment/hedging thing...
Say you take out a 100 BTC loan when BTC is $10 (because nobody else will give you it in USD anyways...) and sell it for 1000 USD, because you can't buy XYZ with BTC. It makes sense to also get a 100 BTC CFD and take the long position:
BTC goes up by $3. You make $300 USD, it costs $1300 to get 100 BTC. You pay $1000.
BTC goes down by $3. you lose $300 USD, but it costs $700 to get 100 BTC. You pay $1000.
Hedge successful!

With baskets, you need more money to buy them. Having a basket is less useful than bridging finance between jobs. If a 1 BTC shortcoin is $30, how can this help you hedge at all?

There's also options; someone taking out a loan in BTC could buy a call option.
legendary
Activity: 2940
Merit: 1090
August 30, 2012, 03:46:13 PM
#10
After some thinking, I like raw CFD's the best. There is the risk that the opposite party won't pay, but what's the point of having a shortcoin if it cost you 3 BTC?

Yes, contract for difference, especially leveraged, is doubtless the most appealing approach for sure, and bound to attract gamblers like crazy with its lure of cheap easy massive profit if you bet the right way.

I have two problems though with actually implementing it:

One, it requires a price/value oracle, some source from which to magically "know" what price/value is par compared to which higher or lower is to be determined to see whether those who bet it would be lower win or those who bet it would be higher win.

Two, the oracles I have seen used seem to me crazily volatile, which I expect is most of their appeal but creates a constant threat of changing too far too fast, leaving the service unable to balance its bettors' bets against each other, so that the service takes a loss. Which could be a pretty huge loss. This danger leads to having to charge high fees to even begin to be able to plan on covering against it.

Now possibly if one were allowed to use, say, a 48 hour volume-averaged price, or in some other such way use a price that isn't so likely to be able to skyrocket or drop to nothing in a matter of moments, the risk could be mitigated, but, so would the appeal to the gamblers, so you'd likely lose all your business anyway to some shop that is going to vanish with everyone's money when it finally does get unlucky.

There is though also the problem of who can influence the oracle. Some think that merely by having half a million coins to play with, Pirate could in theory have manipulated prices. So basically by using an oracle you are maybe just turning yourself into a pawn of some manipulator.

(Some have even suggested that bitcoinica helped manipulators by providing a bunch of trigger points where people would get margin calls forcing them out of the manipulator's way or something...)

So although I see how nice and efficient CFD could be if you truly had a reliable, stable way of determining an actual value of an asset instead of letting someone''s ability to starve or flood a specific venue manipulate "price" (potentially quite distinct from actual value), I have so far been forced to think really it is more a gambling thing than a serious investment/hedging thing...

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
August 30, 2012, 03:28:39 PM
#9
After some thinking, I like raw CFD's the best. There is the risk that the opposite party won't pay, but what's the point of having a shortcoin if it cost you 3 BTC?
legendary
Activity: 2940
Merit: 1090
August 30, 2012, 02:49:23 PM
#8
Part of why I generated the pages at http://galaxies.mygamesonline.org/digitalisassets.html was to be able to eyeball the columns to get some idea of how stable various assets have been. Obviously some kind of calculations on the data would be better but I wanted to get an actual look first so that if I do code some actual calculations intended to tell me how stable they have been which is most stable and such I would have some basis to be able to guess whether the code was actually working or not. (I'd expect it to be telling me ones that look relatively stable to my eye rather than ones that I can see at a glance are highly unstable.)

I have actually been thinking of using Martian BotCoin (MBC) as backdrop/ballast for many simply because it is larger than most, though not as large as a bitcoin, and seems to have been quite a bit more stable than bitcoins.

-MarkM-
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
August 30, 2012, 02:43:43 PM
#7
I like it. If I take out a loan denominated in BTC and sell the BTC, I want to be long to hedge against a price increase. Similarly, if I buy bitcoins just to invest them with PatrickHarnett, I want to be short to hedge against a price decrease. The idea is sound, except for the backdrop risk.
legendary
Activity: 2940
Merit: 1090
August 30, 2012, 02:35:53 PM
#6
Okay, nice example. But does it lead to thinking yes this does seem a useful/workable idea, or to thinking heck all that for only 15 LTC, not worth the trouble?

-MarkM-
sr. member
Activity: 574
Merit: 250
August 29, 2012, 09:31:29 PM
#6
Heh....
hero member
Activity: 950
Merit: 1001
August 30, 2012, 01:22:03 PM
#5
1 LG = 1000 LTC + 1 BTC
1 SH = 1000 LTC - 1 BTC

IssuerAliceBobDescription
[1 LG + 1 SH]2000 LTC2000 LTCIssuer creates a long + short basket
2000 LTC[1 LG + 1 SH]2000 LTCAlice buys long + short basket from Issuer for 2000 LTC
2000 LTC1 SH + 1285 LTC1 LG + 715 LTCAlice sells the longcoin to Bob for 1285 LTC
2000 LTC1985 LTC1 LG + 1 SH + 15 LTCLater, Alice sells her shortcoin for 700 LTC.
(BTC/LTC has gone up)
[1 LG + 1 SH]1985 LTC2015 LTCBob redeems the long + short basket from the Issuer.
legendary
Activity: 2940
Merit: 1090
August 28, 2012, 06:27:56 AM
#4
Well one good thing about this method is the exchange doing it does not have to be able to handle the type of asset that is being shorted or longed at all, nor does it need to have any way of discovering any prices of them; in effect the prices of them are discovered by the prices the shorts and longs sell for. There is thus no dependence on some external ticker for a price against which to compare or to settle. People simply directly buy and sell the baskets, the shorts, and the longs.

Lets take CAD as an example. The  exchange could make BTCslCAD baskets available at a cost of 2 BTC per basket.

The basket would consist of one BTCsCAD unit worth one bitcoin minus one CAD, and one BTClCAD unit worth one bitcoin plus one CAD.

The plus one CAD and minus one CAD cancel out, so there is no need for any support for actual CAD; the exchange can persist in dealing only with non-fait currencies. These Short+Long baskets and their comprising shortcoins and longcoins are purely bitcoin-based wagering tokens. The server redeems completed baskets, for two bitcoins (plus maybe some slight profit for going to the trouble). The users choose how much, or even whether, to buy or sell the shortcoins or longcoins for. They are simply tokens that by convention represent either shorting CAD or going long CAD.

In effect you are borrowing a CAD worth of bitcoin if you buy a basket and sell the longcoin, retaining the shortcoin. The shortcoin is a bitcoin that is short by one CAD from being a full bitcoin. The longcoin is a bitcoin that is long by a CAD from being merely a single whole bitcoin.

(Whether it is by retaining the shortcoin or by retaining the longcoin that you in effect borrowed is confusing isn't it? By holding the shortcoin, you are basically out by the value of a CAD. So you can think of that as being in debt to that amount. You need the longcoin back to repay that shortage so you can turn in the completed basket for a full two bitcoins.)

-MarkM-
Pages:
Jump to: