minermedic/pools/base_pool.py
def parse_json(self, json, results, miner, worker, pool, algo, algo_idx, coin_idx, coin_cost):

        """
        Parses the JSON data retrieved from the Mining Pool's API.
        This method must be implemented per POOL and is a POOL
        dependent implementation of how to parse the data.

            The following stats are to be collected from the pool:

            - "profitability" - This is a measure of COIN / speed suffix / per DAY
                                This is a calculated stat, usually.
                                Sometimes several metrics are needed

                                e.g. profitability = ((coins_mined_per_minute * (60 * 24))/speed_accepted)

            - "speed_accepted" - The "accepted" hashrate by the pool (i.e. what miner gets paid on).
                                Almost all pools report on this

            - "speed_reported" - The "reported" hashrate by the pool (i.e. how much work the miner
                                reports to the pool that it is doing). If this is not available from
                                the pool or the miner is not sending it, set to NONE, do NOT set to 0.

            - "speed_suffix"   - The "units" that the pool is reporting hashrate in (e.g. 'MH')

            Sometimes not all these statistics can be retrieved, as some APIs are less verbose.
            In those cases the implementation will have to fill in the gaps.

            Once stats are collected, pass them to "create_api_results",
            then pass that dict to the "set_api_results",
            along with any other information passed in

        """

        pass

        Parses the JSON data retrieved from the Mining Pool's API.
        This method must be implemented per POOL and is a POOL
        dependent implementation of how to parse the data.

            The following stats are to be collected from the pool:

            - "profitability" - This is a measure of COIN / speed suffix / per DAY
                                This is a calculated stat, usually.
                                Sometimes several metrics are needed

                                e.g. profitability = ((coins_mined_per_minute * (60 * 24))/speed_accepted)

            - "speed_accepted" - The "accepted" hashrate by the pool (i.e. what miner gets paid on).
                                Almost all pools report on this

            - "speed_reported" - The "reported" hashrate by the pool (i.e. how much work the miner
                                reports to the pool that it is doing). If this is not available from
                                the pool or the miner is not sending it, set to NONE, do NOT set to 0.

            - "speed_suffix"   - The "units" that the pool is reporting hashrate in (e.g. 'MH')

            Sometimes not all these statistics can be retrieved, as some APIs are less verbose.
            In those cases the implementation will have to fill in the gaps.

            Once stats are collected, pass them to "create_api_results",
            then pass that dict to the "set_api_results",
            along with any other information passed in

        
Parses the JSON data retrieved from the Mining Pool's API.
This method must be implemented per POOL and is a POOL
dependent implementation of how to parse the data.

The following stats are to be collected from the pool.

"profitability" - This is a measure of COIN / speed suffix / per DAY
This is a calculated stat, usually.
Sometimes several metrics are needed



"speed_accepted" - The "accepted" hashrate by the pool .
Almost all pools report on this

"speed_reported" - The "reported" hashrate by the pool . If this is not available from
the pool or the miner is not sending it, set to NONE, do NOT set to 0.

"speed_suffix"   - The "units" that the pool is reporting hashrate in

Sometimes not all these statistics can be retrieved, as some APIs are less verbose.
In those cases the implementation will have to fill in the gaps.

Once stats are collected, pass them to "create_api_results",
then pass that dict to the "set_api_results",
along with any other information passed in
Parses the JSON data retrieved from the Mining Pool ' s API . This method must be implemented per POOL and is a POOL dependent implementation of how to parse the data . The following stats are to be collected from the pool . " profitability " - This is a measure of COIN / speed suffix / per DAY This is a calculated stat usually . Sometimes several metrics are needed " speed_accepted " - The " accepted " hashrate by the pool . Almost all pools report on this " speed_reported " - The " reported " hashrate by the pool . If this is not available from the pool or the miner is not sending it set to NONE do NOT set to 0 . " speed_suffix " - The " units " that the pool is reporting hashrate in Sometimes not all these statistics can be retrieved as some APIs are less verbose . In those cases the implementation will have to fill in the gaps . Once stats are collected pass them to " create_api_results " then pass that dict to the " set_api_results " along with any other information passed in
def parse_json(self, json, results, miner, worker, pool, algo, algo_idx, coin_idx, coin_cost):
        pass
def parse_json ( self , json , results , miner , worker , pool , algo , algo_idx , coin_idx , coin_cost ) : pass
Parses the JSON data retrieved from the Mining Pool's API.
Parses the JSON data retrieved from the Mining Pool ' s API .
"""
        Parses the JSON data retrieved from the Mining Pool's API.
        This method must be implemented per POOL and is a POOL
        dependent implementation of how to parse the data.

            The following stats are to be collected from the pool:

            - "profitability" - This is a measure of COIN / speed suffix / per DAY
                                This is a calculated stat, usually.
                                Sometimes several metrics are needed

                                e.g. profitability = ((coins_mined_per_minute * (60 * 24))/speed_accepted)

            - "speed_accepted" - The "accepted" hashrate by the pool (i.e. what miner gets paid on).
                                Almost all pools report on this

            - "speed_reported" - The "reported" hashrate by the pool (i.e. how much work the miner
                                reports to the pool that it is doing). If this is not available from
                                the pool or the miner is not sending it, set to NONE, do NOT set to 0.

            - "speed_suffix"   - The "units" that the pool is reporting hashrate in (e.g. 'MH')

            Sometimes not all these statistics can be retrieved, as some APIs are less verbose.
            In those cases the implementation will have to fill in the gaps.

            Once stats are collected, pass them to "create_api_results",
            then pass that dict to the "set_api_results",
            along with any other information passed in

        """
self
json
results
miner
worker
pool
algo
algo_idx
coin_idx
coin_cost