Post
Topic
Board Mining (Altcoins)
Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 200000 miners
by
ABCMint.cc
on 28/03/2020, 20:37:50 UTC
How to get the value of 'buy_price' on this?

{
    "markets": [
        {
            "coin_name": "Ankh Credit",
            "coin_tck": "0AC",
            "market": "0AC/BTC",
            "buy_price": "0.0000003300",
            "sell_price": "0.0000012300",
            "volume24h": 100,
            "price24hago": "0.0000003300",
            "latest_price": "0.0000003300"
        },
I think it should work with:
markets[0].buy_price

The reason for
Code:
[0]
is that markets is an JSON array, starting with
Code:
[
. In your case you pick the first element in the array.

Ok. But how to get the value of:

Coin:

Ankh Electrum
buy_price


{
    "markets": [
        {
            "coin_name": "Ankh Credit",
            "coin_tck": "0AC",
            "market": "0AC/BTC",
            "buy_price": "0.0000003300",
            "sell_price": "0.0000012300",
            "volume24h": 100,
            "price24hago": "0.0000003300",
            "latest_price": "0.0000003300"
        },
        {
            "coin_name": "Ankh Electrum",
            "coin_tck": "0AE",
            "market": "0AE/BTC",
            "buy_price": "0.0000002200",
            "sell_price": "0.0000002300",
            "volume24h": 0,
            "price24hago": "0.0000002200",
            "latest_price": "0.0000002200"
        },
        {
            "coin_name": "ABCMint",
            "coin_tck": "ABCM",
            "market": "ABCM/BTC",
            "buy_price": null,
            "sell_price": "0.0000040000",
            "volume24h": 0,
            "price24hago": "0.0000007500",
            "latest_price": "0.0000007500"
        },

https://www.abcmint.cc/