BitShares Forum
Main => General Discussion => Topic started by: speedy on February 25, 2014, 04:29:36 am
-
I wrote a python script that pulls in $ prices of various BitAssets from Yahoo finance, and automatically prices them in terms of BTS. This should help the prediction market come to consensus, and let you know if an asset is overbought/sold. If anyone thinks this is cool/useful, I can post the source.
(http://i.imgur.com/nww60NK.png)
-
it would be nice
-
Ok here you go:
http://pastebin.com/R6faJ3zN
Tested on linux. Only extra things it needs is PyQt4 and ystockquote.
sudo pip install ystockquote
Later I will fill those BID/ASK columns with the results of RPC orderbook calls to the BTS client for each asset.
-
tip this guy
-
tip sent, appreciate your efforts :D
-
Now we just need to identify an automated trading algorithm that can do the following:
Calculate the average price of BTS normalized across all assets (weighted) and then sell the assets above the average and buy the ones below. This trading engine should be open source and throughly reviewed.
I think we should discuss potential algorithms and try it out. If things work as I expect then the ratio of BitGLD to BitUSD to BitSLV should mirror the real world ratios and any discrepancy should indicate a buying or selling opportunity.
-
tip sent, appreciate your efforts :D
Thank you very much :)
Bytemaster yes as soon as the network is running and my wallet can pull in some order book data, an average from all the assets will be a good way to calculate the price of BTS. That will save me from having to get it from Cryptsy or somewhere.
-
Brilliant, I've been thinking we'll want something like this. Instant visual feedback on where to buy and where to sell.
-
Now we just need to identify an automated trading algorithm that can do the following:
Calculate the average price of BTS normalized across all assets (weighted) and then sell the assets above the average and buy the ones below. This trading engine should be open source and throughly reviewed.
I think we should discuss potential algorithms and try it out. If things work as I expect then the ratio of BitGLD to BitUSD to BitSLV should mirror the real world ratios and any discrepancy should indicate a buying or selling opportunity.
This should be built into the Bitshares client itself.
-
Now we just need to identify an automated trading algorithm that can do the following:
Calculate the average price of BTS normalized across all assets (weighted) and then sell the assets above the average and buy the ones below. This trading engine should be open source and throughly reviewed.
I think we should discuss potential algorithms and try it out. If things work as I expect then the ratio of BitGLD to BitUSD to BitSLV should mirror the real world ratios and any discrepancy should indicate a buying or selling opportunity.
This should be built into the Bitshares client itself.
If everybody used the same trading algorithm you would get thousands of identical orders. You need some kind of randomisation for this to work as a standard.