Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

price normalized for dispensers has too many decimal place #2863

Open
dime-squanderer opened this issue Dec 18, 2024 · 0 comments
Open

price normalized for dispensers has too many decimal place #2863

dime-squanderer opened this issue Dec 18, 2024 · 0 comments

Comments

@dime-squanderer
Copy link

 ~/ curl 'https://dev.counterparty.io:4000/v2/addresses/bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp/dispensers?verbose=true&status=open' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5523  100  5523    0     0  12676      0 --:--:-- --:--:-- --:--:-- 12696
{
  "result": [
    {
      "tx_index": 2977567,
      "tx_hash": "53e62511030f8ea221b1525457e1bf311eeeaa3aa571a70f132ee1d1fc6f452e",
      "block_index": 875201,
      "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "asset": "XCP",
      "give_quantity": 500000,
      "escrow_quantity": 50000000,
      "satoshirate": 650,
      "status": 0,
      "give_remaining": 49000000,
      "oracle_address": null,
      "last_status_tx_hash": null,
      "origin": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "dispense_count": 1,
      "last_status_tx_source": null,
      "close_block_index": null,
      "price": 0.0013,
      "fiat_price": null,
      "oracle_price": null,
      "fiat_unit": null,
      "oracle_price_last_updated": null,
      "satoshi_price": 650,
      "block_time": 1734471049,
      "asset_info": {
        "asset_longname": null,
        "description": "The Counterparty protocol native currency",
        "issuer": null,
        "divisible": true,
        "locked": true
      },
      "give_quantity_normalized": "0.00500000",
      "give_remaining_normalized": "0.49000000",
      "escrow_quantity_normalized": "0.50000000",
      "satoshirate_normalized": "0.00000650",
      "satoshi_price_normalized": "0.00000650",
      "price_normalized": "0.0013000000000000"
    },
    {
      "tx_index": 2977566,
      "tx_hash": "7abb22e43b17e8330bf801659921b834c48d229ae80e9bdae28d050bc1396cd1",
      "block_index": 875201,
      "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "asset": "A7805927145042695546",
      "give_quantity": 2,
      "escrow_quantity": 18,
      "satoshirate": 700,
      "status": 0,
      "give_remaining": 16,
      "oracle_address": null,
      "last_status_tx_hash": null,
      "origin": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "dispense_count": 1,
      "last_status_tx_source": null,
      "close_block_index": null,
      "price": 350.0,
      "fiat_price": null,
      "oracle_price": null,
      "fiat_unit": null,
      "oracle_price_last_updated": null,
      "satoshi_price": 700,
      "block_time": 1734471049,
      "asset_info": {
        "asset_longname": "USMINT.GOV",
        "description": "",
        "issuer": "bc1qtke38j72qv4d8eljn7pccaykypw8luytfwdn7q",
        "divisible": false,
        "locked": false
      },
      "give_quantity_normalized": "2",
      "give_remaining_normalized": "16",
      "escrow_quantity_normalized": "18",
      "satoshirate_normalized": "0.00000700",
      "satoshi_price_normalized": "0.00000700",
      "price_normalized": "350.0000000000000000"
    },
    {
      "tx_index": 2977292,
      "tx_hash": "2bb0f9c8f0056d94058bb1943db4776bc20a633e83aca2a6a73bc17c1ec0d22f",
      "block_index": 875048,
      "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "asset": "A4630460187535670455",
      "give_quantity": 150000000,
      "escrow_quantity": 15050000000,
      "satoshirate": 6000,
      "status": 0,
      "give_remaining": 15050000000,
      "oracle_address": null,
      "last_status_tx_hash": null,
      "origin": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "dispense_count": 0,
      "last_status_tx_source": null,
      "close_block_index": null,
      "price": 0.00004,
      "fiat_price": null,
      "oracle_price": null,
      "fiat_unit": null,
      "oracle_price_last_updated": null,
      "satoshi_price": 6000,
      "block_time": 1734377644,
      "asset_info": {
        "asset_longname": null,
        "description": "",
        "issuer": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
        "divisible": true,
        "locked": true
      },
      "give_quantity_normalized": "1.50000000",
      "give_remaining_normalized": "150.50000000",
      "escrow_quantity_normalized": "150.50000000",
      "satoshirate_normalized": "0.00006000",
      "satoshi_price_normalized": "0.00006000",
      "price_normalized": "0.0000400000000000"
    },
    {
      "tx_index": 2977248,
      "tx_hash": "09623a2380dc45e2154d5832e78ff23eb820eb2a28dfc4fdcabf678760a08706",
      "block_index": 875201,
      "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "asset": "CANTREACH",
      "give_quantity": 1,
      "escrow_quantity": 10,
      "satoshirate": 600,
      "status": 0,
      "give_remaining": 8,
      "oracle_address": null,
      "last_status_tx_hash": null,
      "origin": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "dispense_count": 1,
      "last_status_tx_source": null,
      "close_block_index": null,
      "price": 600.0,
      "fiat_price": null,
      "oracle_price": null,
      "fiat_unit": null,
      "oracle_price_last_updated": null,
      "satoshi_price": 600,
      "block_time": 1734471049,
      "asset_info": {
        "asset_longname": null,
        "description": "https://me753f2ivqjgh66gknr5tlg7aa4ukfltnuwtjpkpmhzcwke4tkoa.arweave.net/YT_dl0isEmP7xlNj2azfADlFFXNtLTS9T2HyKyicmpw/CANTR.json",
        "issuer": "bc1q44dnlzkngksuttmds54rhw9q04wqmfr9sq5u0z",
        "divisible": false,
        "locked": false
      },
      "give_quantity_normalized": "1",
      "give_remaining_normalized": "8",
      "escrow_quantity_normalized": "10",
      "satoshirate_normalized": "0.00000600",
      "satoshi_price_normalized": "0.00000600",
      "price_normalized": "600.0000000000000000"
    },
    {
      "tx_index": 2757921,
      "tx_hash": "dca90de20031ac19fdcfb9412fd9ba208316674ee610629576f8f6e5339d8bdd",
      "block_index": 864928,
      "source": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "asset": "A12256739633266178981",
      "give_quantity": 10000000,
      "escrow_quantity": 10000000,
      "satoshirate": 10000,
      "status": 0,
      "give_remaining": 10000000,
      "oracle_address": null,
      "last_status_tx_hash": null,
      "origin": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
      "dispense_count": 0,
      "last_status_tx_source": null,
      "close_block_index": null,
      "price": 0.001,
      "fiat_price": null,
      "oracle_price": null,
      "fiat_unit": null,
      "oracle_price_last_updated": null,
      "satoshi_price": 10000,
      "block_time": 1728499156,
      "asset_info": {
        "asset_longname": null,
        "description": "a new description",
        "issuer": "bc1q0eapk4tyqa7r2vcta6z6v2mgnqcux3kfkmurzp",
        "divisible": true,
        "locked": false
      },
      "give_quantity_normalized": "0.10000000",
      "give_remaining_normalized": "0.10000000",
      "escrow_quantity_normalized": "0.10000000",
      "satoshirate_normalized": "0.00010000",
      "satoshi_price_normalized": "0.00010000",
      "price_normalized": "0.0010000000000000"
    }
  ],
  "next_cursor": null,
  "result_count": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants