Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Im looking to accomplish a price feed for - Shanghai Stock Exchange Index  (Read 363 times)

0 Members and 1 Guest are viewing this topic.

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile

I need to know where I go to get the price feed scripts, I want to get this up.

I want a price feed for the index whereby every 15 minutes we grab the feed from https://www.google.com/finance?q=SHA%3A000001&ei=0R5oVYHfCoKRiQK5lYHADg

I also want to get a price feed up for Hong Kong Stock Index (Hang Seng Stock Exchange Index) https://www.google.com/finance?q=INDEXHANGSENG%3AHSI&ei=0R5oVYHfCoKRiQK5lYHADg

Can someone guide me?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12065
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
with the current BitShares implementation you need to ask delegates to do this .. and implement pulling those indices ..

however, I don't think pulling from finance.google.com complies with their terms ..
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
with the current BitShares implementation you need to ask delegates to do this .. and implement pulling those indices ..

however, I don't think pulling from finance.google.com complies with their terms ..

Where do I go in the code to get the implementation of the price feeds.

If we make the feeds rip once every 15 minutes or 5 minutes its probably not that big of a nusance for them.  There are other places to get the feed like http://www.bloomberg.com/quote/SHCOMP:IND they probably dont mind.

Offline monsterer

however, I don't think pulling from finance.google.com complies with their terms ..

This. Google will ban the IP address of the delegate if you try to scrape their feeds.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
however, I don't think pulling from finance.google.com complies with their terms ..

This. Google will ban the IP address of the delegate if you try to scrape their feeds.

We are getting bitGOLD somehow.  I dont see how come we cant overcome this, we need to get to yes instead of no's.  How about this site http://english.sse.com.cn/ directly from the Shanghai Stock Exchange?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12065
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
This is the script I use for the bitassets price feeds:

https://github.com/xeroc/bitshares-pytools/blob/master/delegate-feed/main.py
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
This is the script I use for the bitassets price feeds:

https://github.com/xeroc/bitshares-pytools/blob/master/delegate-feed/main.py

The price feeds were are getting for bitGOLD must be scraped together.  We should be able to do this for Shanghai Stock Exchange Index.

Offline monsterer

We are getting bitGOLD somehow.  I dont see how come we cant overcome this, we need to get to yes instead of no's.  How about this site http://english.sse.com.cn/ directly from the Shanghai Stock Exchange?

Gold come from yahoo's feed. If you can find a ticker from an API for the indexes you want to run, that would be the best way - even if they are 15 min delayed...
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
We are getting bitGOLD somehow.  I dont see how come we cant overcome this, we need to get to yes instead of no's.  How about this site http://english.sse.com.cn/ directly from the Shanghai Stock Exchange?

Gold come from yahoo's feed. If you can find a ticker from an API for the indexes you want to run, that would be the best way - even if they are 15 min delayed...

Here it is https://ca.finance.yahoo.com/q?s=000001.SS , from your logic, we can do this.  Lets get this up and running and watch the market cap approach $20 billion USD in 3 - 6 months.

Offline eagleeye

  • Hero Member
  • *****
  • Posts: 931
    • View Profile
Im going to need to get the delegates on board, how do I do this?

If we do this, it will be huge.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12065
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Im going to need to get the delegates on board, how do I do this?

If we do this, it will be huge.
Easierst would be to present a patch to the existing price feed scripts and "campaign" for delegate support in a separated forum thread ..
only need 51 delegates publishing the price at least once every 24h
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline monsterer

First of all, you'll want to create an MPA for SHANGHAI, before some dumb name camper creates a UIA for it. If you're going to campaign the delegates, best to get feeds for as many indicies as you can, I have already created some MPAs for this purpose:

http://www.bitsharesblocks.com/asset/orderbook?asset=HANGSENG
http://www.bitsharesblocks.com/asset/orderbook?asset=NASDAQC
http://www.bitsharesblocks.com/asset/orderbook?asset=NIKKEI

That way you only have to campaign once for them to update their feeds, rather than every single time you add an index.



My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads


Offline mint chocolate chip

First of all, you'll want to create an MPA for SHANGHAI, before some dumb name camper creates a UIA for it. If you're going to campaign the delegates, best to get feeds for as many indicies as you can, I have already created some MPAs for this purpose:

http://www.bitsharesblocks.com/asset/orderbook?asset=HANGSENG
http://www.bitsharesblocks.com/asset/orderbook?asset=NASDAQC
http://www.bitsharesblocks.com/asset/orderbook?asset=NIKKEI

That way you only have to campaign once for them to update their feeds, rather than every single time you add an index.
How much is it again to create an MPA, I think it is rather expensive.

Offline monsterer

How much is it again to create an MPA, I think it is rather expensive.

Same price as a UIA.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

 

Google+