Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - madforstrength

Pages: 1 2 [3]
31
Technical Support / Re: Does cryptofresh.com has any API?
« on: January 20, 2016, 06:58:59 am »
Hi guys,

Thanks a lot to all of you for your help.

I have created a recursive function to get the list of all assets (as mentioned by @svk )
Then I filtered the assets in to smartcoins and userIssuedAssets by checking if they contain "bitasset_data_id" and their issuer is "1.2.0" (as mentioned by @xeroc )
After that I fetched number of holders of each asset from http://cryptofresh.com/api/holders?asset=OPENMUSE (as mentioned by @roadscape )

I got around 15 smartcoins having holders>0 and 45 userIssuedAssets having holders>3. This is perfectly fine.

Now to remove settled assets from this list I am fetching objects using "bitasset_data_id" and checking if the "settlement_fund" > 0 then the asset is settled. is it ok?


32
Technical Support / Re: Does cryptofresh.com has any API?
« on: January 19, 2016, 12:31:09 pm »
@svk Thanks for your response,

Well the method you are saying is quite tedious but practical, I will have it as last resort.
I can fetch the list of smartcoins by filtering on assets having "bitasset_data_id" but I still do not get the Holders and active/inactive status of asset.

Would appreciate if you can help me in this regard.

33
Technical Support / Re: Does cryptofresh.com has any API?
« on: January 19, 2016, 12:24:09 pm »
Hello guyz thankyou so much for your prompt response.

@xeroc I have tried what you mention but I am getting following response:

Code: [Select]
"id": "2.4.21",
            "feeds": [
                [
                    "1.2.167",
                    [
                        "2016-01-12T20:01:48",
                        {
                            "settlement_price": {
                                "base": {
                                    "amount": 16,
                                    "asset_id": "1.3.121"
                                },
                                "quote": {
                                    "amount": 51551,
                                    "asset_id": "1.3.0"
                                }
                            },
                            "maintenance_collateral_ratio": 1750,
                            "maximum_short_squeeze_ratio": 1100,
                            "core_exchange_rate": {
                                "base": {
                                    "amount": 16,
                                    "asset_id": "1.3.121"
                                },
                                "quote": {
                                    "amount": 48973,
                                    "asset_id": "1.3.0"
                                }
                            }
                        }
                    ]
                ],

Which only has one asset 1.3.121 and it does not contain any "bitasset_data_id". Am I missing something?

Thanks in advance, Really appreciate your help

34
Technical Support / Does cryptofresh.com has any API?
« on: January 19, 2016, 05:05:07 am »
Hi I am trying to integrate bitshares payment gateway in one of my project. Right now the problem I am facing is that I need the list of smarcoins similar to cryptofresh.com along with holders, price feed, active/inactive and settlement information.

I am currently using:
https://bitshares.openledger.info/ws/
with params:
{"id":2,"method":"list_assets","params":["",100]}

But I am not getting any demarcation for which assests are smartcoins and which are user issued, also I am not getting holders, price feed and etc

And there is also a limit of 100 assets on api call.

I couldnt find any API of cryptofresh.com, all I could find was just this URL:
http://cryptofresh.com/api/cmc

I would appreciate if someone can guide me in the right direction.

Pages: 1 2 [3]