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

Calling the API for specific point in time #36

Open
cdschwartz opened this issue Oct 9, 2018 · 1 comment
Open

Calling the API for specific point in time #36

cdschwartz opened this issue Oct 9, 2018 · 1 comment

Comments

@cdschwartz
Copy link

Are there any plans to make it possible to call the API for a specific asset/market at a specific points in time?

I'm specifically looking into
get_asset, get_settle_orders and get_order_book
http://185.208.208.184:5000/apidocs/#!/asset/api_explorer_get_asset

I saw that making an ES plugin for historical snapshots were discussed here some time ago: bitshares/bitshares-core#205

@Zapata
Copy link
Member

Zapata commented Aug 3, 2019

It should be possible to get the value of get_asset in the past as we have this kind of entries in ES each time an asset changes:

{
  "_index": "objects-asset",
  "_type": "data",
  "_id": "1.3.110",
  "_version": 99373,
  "_score": null,
  "_source": {
    "id": "1.3.110",
    "symbol": "RUB",
    "precision": 4,
    "issuer": "1.2.0",
    "options": {
      "max_supply": 1000000000000000,
      "market_fee_percent": 0,
      "max_market_fee": 1000000000000000,
      "issuer_permissions": 511,
      "flags": 128,
      "core_exchange_rate": {
        "base": {
          "amount": 63460000,
          "asset_id": "1.3.110"
        },
        "quote": {
          "amount": 178500000,
          "asset_id": "1.3.0"
        }
      },
      "whitelist_authorities": [],
      "blacklist_authorities": [],
      "whitelist_markets": [],
      "blacklist_markets": [],
      "description": "1 Russian ruble",
      "extensions": {}
    },
    "dynamic_asset_data_id": "2.3.110",
    "bitasset_data_id": "2.4.10",
    "object_id": "1.3.110",
    "block_time": "2019-08-03T16:55:21",
    "block_number": 39760504
  },
  "fields": {
    "block_time": [
      "2019-08-03T16:55:21.000Z"
    ]
  },
  "sort": [
    1564851321000
  ]
}

About the order book, currently there is no way to do it, and no plan for it, as it might be very space consuming.

What is you use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants