BitShares Forum
Main => Technical Support => Topic started by: R on July 13, 2017, 02:29:54 am
-
Can anyone provide a working example of the get_market_history CLI command please?
I've been unable to provide the command valid input data, I keep getting error messages about ISO time formatting (despite attempting to use such formatting).
I'm wanting to dump the market history for the MPA/BTS trading pairs & summarize market making participation using Hadoop, potentially incentivizing market making activity (filled orders only, select trading pairs).
Side note: I think it'd be a great idea to provide a single working usage example for each documented API command, this would significantly improve the ease of learning the CLI commands.
Docs API content:
vector<bucket_object> graphene::app::history_api::get_market_history(asset_id_type a, asset_id_type b, uint32_t bucket_seconds, fc::time_point_sec start, fc::time_point_sec end) const
Reference:
docs.bitshares.org/api/history.html?highlight=get_market_history
Thanks,
CM.
-
An example:
get_market_history BTS USD 3600 "2017-07-01T00:00:00" "2017-07-02T00:00:00"
Output:
get_market_history BTS USD 3600 "2017-07-01T00:00:00" "2017-07-02T00:00:00"
[{
"id": "5.1.1768216",
"key": {
"base": "1.3.0",
"quote": "1.3.121",
"seconds": 3600,
"open": "2017-07-01T00:00:00"
},
"high_base": 283,
"high_quote": 6,
"low_base": 129072761,
"low_quote": 3173899,
"open_base": 427095301,
"open_quote": 10000000,
"close_base": 129072761,
"close_quote": 3173899,
"base_volume": 1645300312,
"quote_volume": 39864423
},{
...
You have to be connected to a FULL node.
-
Thank you very much sahkan, I was missing the quotations around the timestamps, lol.
That said, the output seems more of an overhead summary rather than a dump of the fill orders, perhaps the following is a more appropriate command?
vector<order_history_object> graphene::app::history_api::get_fill_order_history(asset_id_type a, asset_id_type b, uint32_t limit) const
My CLI wallet interface stated that 'get_fill_order_history' isn't an available command, so time to look into this 'full node' you mentioned..
-
Full node has all the history plug-ins. Are you running one? If not you can connect to mine like so:
./programs/cli_wallet/cli_wallet -s wss://dexnode.net/ws
-
I just closed down my full node to connect to yours, connected successfully but the command returns an error:
unlocked >>> get_fill_order_history
get_fill_order_history
10 assert_exception: Assert Exception
itr != _by_name.end(): no method with name 'get_fill_order_history'
{"name":"get_fill_order_history","api":[["about",3],["add_operation_to_builder_transaction",5],["approve_proposal",91],["begin_builder_transaction",4],["blind_history",111],["blind_transfer",110],["borrow_asset",35],["buy",34],["cancel_order",36],["create_account_with_brain_key",31],["create_asset",40],["create_blind_account",107],["create_committee_member",53],["create_witness",58],["create_worker",60],["dbg_generate_blocks",95],["dbg_make_mia",93],["dbg_make_uia",92],["dbg_push_blocks",94],["dbg_stream_json_objects",96],["dbg_update_object",97],["derive_owner_keys_from_brain_key",28],["dump_private_keys",18],["flood_network",98],["fund_asset_fee_pool",48],["get_account",68],["get_account_count",71],["get_account_history",72],["get_account_id",69],["get_asset",46],["get_bitasset_data",47],["get_blind_accounts",104],["get_blind_balances",106],["get_block",70],["get_call_orders",83],["get_committee_member",55],["get_dynamic_global_properties",77],["get_global_properties",76],["get_key_label",102],["get_limit_orders",82],["get_market_history",75],["get_my_blind_accounts",105],["get_object",78],["get_order_book",113],["get_private_key",79],["get_prototype_operation",88],["get_public_key",103],["get_relative_account_history",73],["get_settle_orders",84],["get_transaction_id",39],["get_vesting_balances",62],["get_witness",54],["gethelp",1],["global_settle_asset",50],["help",0],["import_account_keys",25],["import_accounts",24],["import_balance",26],["import_key",23],["info",2],["is_locked",14],["is_new",13],["is_public_key_registered",74],["issue_asset",45],["list_account_balances",21],["list_accounts",20],["list_assets",22],["list_committee_members",57],["list_my_accounts",19],["list_witnesses",56],["load_wallet_file",80],["lock",15],["network_add_nodes",99],["network_get_connected_peers",100],["normalize_brain_key",81],["preview_builder_transaction",8],["propose_builder_transaction",10],["propose_builder_transaction2",11],["propose_fee_change",90],["propose_parameter_change",89],["publish_asset_feed",44],["receive_blind_transfer",112],["register_account",29],["remove_builder_transaction",12],["replace_operation_in_builder_transaction",6],["reserve_asset",49],["save_wallet_file",85],["sell",33],["sell_asset",32],["serialize_transaction",86],["set_desired_witness_and_committee_member_count",67],["set_fees_on_builder_transaction",7],["set_key_label",101],["set_password",17],["set_voting_proxy",66],["settle_asset",51],["sign_builder_transaction",9],["sign_transaction",87],["suggest_brain_key",27],["transfer",37],["transfer2",38],["transfer_from_blind",109],["transfer_to_blind",108],["unlock",16],["update_asset",41],["update_asset_feed_producers",43],["update_bitasset",42],["update_witness",59],["update_worker_votes",61],["upgrade_account",30],["vote_for_committee_member",64],["vote_for_witness",65],["whitelist_account",52],["withdraw_vesting",63]]}
th_a api_connection.hpp:109 call
Am I calling this command incorrectly? :S
-
I just closed down my full node to connect to yours, connected successfully but the command returns an error:
unlocked >>> get_fill_order_history
get_fill_order_history
10 assert_exception: Assert Exception
itr != _by_name.end(): no method with name 'get_fill_order_history'
{"name":"get_fill_order_history","api":[["about",3],["add_operation_to_builder_transaction",5],["approve_proposal",91],["begin_builder_transaction",4],["blind_history",111],["blind_transfer",110],["borrow_asset",35],["buy",34],["cancel_order",36],["create_account_with_brain_key",31],["create_asset",40],["create_blind_account",107],["create_committee_member",53],["create_witness",58],["create_worker",60],["dbg_generate_blocks",95],["dbg_make_mia",93],["dbg_make_uia",92],["dbg_push_blocks",94],["dbg_stream_json_objects",96],["dbg_update_object",97],["derive_owner_keys_from_brain_key",28],["dump_private_keys",18],["flood_network",98],["fund_asset_fee_pool",48],["get_account",68],["get_account_count",71],["get_account_history",72],["get_account_id",69],["get_asset",46],["get_bitasset_data",47],["get_blind_accounts",104],["get_blind_balances",106],["get_block",70],["get_call_orders",83],["get_committee_member",55],["get_dynamic_global_properties",77],["get_global_properties",76],["get_key_label",102],["get_limit_orders",82],["get_market_history",75],["get_my_blind_accounts",105],["get_object",78],["get_order_book",113],["get_private_key",79],["get_prototype_operation",88],["get_public_key",103],["get_relative_account_history",73],["get_settle_orders",84],["get_transaction_id",39],["get_vesting_balances",62],["get_witness",54],["gethelp",1],["global_settle_asset",50],["help",0],["import_account_keys",25],["import_accounts",24],["import_balance",26],["import_key",23],["info",2],["is_locked",14],["is_new",13],["is_public_key_registered",74],["issue_asset",45],["list_account_balances",21],["list_accounts",20],["list_assets",22],["list_committee_members",57],["list_my_accounts",19],["list_witnesses",56],["load_wallet_file",80],["lock",15],["network_add_nodes",99],["network_get_connected_peers",100],["normalize_brain_key",81],["preview_builder_transaction",8],["propose_builder_transaction",10],["propose_builder_transaction2",11],["propose_fee_change",90],["propose_parameter_change",89],["publish_asset_feed",44],["receive_blind_transfer",112],["register_account",29],["remove_builder_transaction",12],["replace_operation_in_builder_transaction",6],["reserve_asset",49],["save_wallet_file",85],["sell",33],["sell_asset",32],["serialize_transaction",86],["set_desired_witness_and_committee_member_count",67],["set_fees_on_builder_transaction",7],["set_key_label",101],["set_password",17],["set_voting_proxy",66],["settle_asset",51],["sign_builder_transaction",9],["sign_transaction",87],["suggest_brain_key",27],["transfer",37],["transfer2",38],["transfer_from_blind",109],["transfer_to_blind",108],["unlock",16],["update_asset",41],["update_asset_feed_producers",43],["update_bitasset",42],["update_witness",59],["update_worker_votes",61],["upgrade_account",30],["vote_for_committee_member",64],["vote_for_witness",65],["whitelist_account",52],["withdraw_vesting",63]]}
th_a api_connection.hpp:109 call
Am I calling this command incorrectly? :S
get_fill_order_history
is not a valid method in Bitshares CLI. If I have some today after work I will see if there is a way to get the info you are looking for.
-
I just closed down my full node to connect to yours, connected successfully but the command returns an error:
unlocked >>> get_fill_order_history
get_fill_order_history
10 assert_exception: Assert Exception
itr != _by_name.end(): no method with name 'get_fill_order_history'
{"name":"get_fill_order_history","api":[["about",3],["add_operation_to_builder_transaction",5],["approve_proposal",91],["begin_builder_transaction",4],["blind_history",111],["blind_transfer",110],["borrow_asset",35],["buy",34],["cancel_order",36],["create_account_with_brain_key",31],["create_asset",40],["create_blind_account",107],["create_committee_member",53],["create_witness",58],["create_worker",60],["dbg_generate_blocks",95],["dbg_make_mia",93],["dbg_make_uia",92],["dbg_push_blocks",94],["dbg_stream_json_objects",96],["dbg_update_object",97],["derive_owner_keys_from_brain_key",28],["dump_private_keys",18],["flood_network",98],["fund_asset_fee_pool",48],["get_account",68],["get_account_count",71],["get_account_history",72],["get_account_id",69],["get_asset",46],["get_bitasset_data",47],["get_blind_accounts",104],["get_blind_balances",106],["get_block",70],["get_call_orders",83],["get_committee_member",55],["get_dynamic_global_properties",77],["get_global_properties",76],["get_key_label",102],["get_limit_orders",82],["get_market_history",75],["get_my_blind_accounts",105],["get_object",78],["get_order_book",113],["get_private_key",79],["get_prototype_operation",88],["get_public_key",103],["get_relative_account_history",73],["get_settle_orders",84],["get_transaction_id",39],["get_vesting_balances",62],["get_witness",54],["gethelp",1],["global_settle_asset",50],["help",0],["import_account_keys",25],["import_accounts",24],["import_balance",26],["import_key",23],["info",2],["is_locked",14],["is_new",13],["is_public_key_registered",74],["issue_asset",45],["list_account_balances",21],["list_accounts",20],["list_assets",22],["list_committee_members",57],["list_my_accounts",19],["list_witnesses",56],["load_wallet_file",80],["lock",15],["network_add_nodes",99],["network_get_connected_peers",100],["normalize_brain_key",81],["preview_builder_transaction",8],["propose_builder_transaction",10],["propose_builder_transaction2",11],["propose_fee_change",90],["propose_parameter_change",89],["publish_asset_feed",44],["receive_blind_transfer",112],["register_account",29],["remove_builder_transaction",12],["replace_operation_in_builder_transaction",6],["reserve_asset",49],["save_wallet_file",85],["sell",33],["sell_asset",32],["serialize_transaction",86],["set_desired_witness_and_committee_member_count",67],["set_fees_on_builder_transaction",7],["set_key_label",101],["set_password",17],["set_voting_proxy",66],["settle_asset",51],["sign_builder_transaction",9],["sign_transaction",87],["suggest_brain_key",27],["transfer",37],["transfer2",38],["transfer_from_blind",109],["transfer_to_blind",108],["unlock",16],["update_asset",41],["update_asset_feed_producers",43],["update_bitasset",42],["update_witness",59],["update_worker_votes",61],["upgrade_account",30],["vote_for_committee_member",64],["vote_for_witness",65],["whitelist_account",52],["withdraw_vesting",63]]}
th_a api_connection.hpp:109 call
Am I calling this command incorrectly? :S
get_fill_order_history
is not a valid method in Bitshares CLI. If I have some today after work I will see if there is a way to get the info you are looking for.
Ah, I didn't realize - the API documentation doesn't make that clear.
What I'm wanting to do is to dump the transactions to disk to which I can then filter with map reduce to focus on filled orders.
Perhaps this is what I'm looking for?
vector<market_trade> graphene::app::database_api::get_trade_history(const string &base, const string "e, fc::time_point_sec start, fc::time_point_sec stop, unsigned limit = 100)
Same problem..
unlocked >>> get_trade_history
get_trade_history
10 assert_exception: Assert Exception
itr != _by_name.end(): no method with name 'get_trade_history'
{"name":"get_trade_history","api":[["about",3],["add_operation_to_builder_transaction",5],["approve_proposal",91],["begin_builder_transaction",4],["blind_history",111],["blind_transfer",110],["borrow_asset",35],["buy",34],["cancel_order",36],["create_account_with_brain_key",31],["create_asset",40],["create_blind_account",107],["create_committee_member",53],["create_witness",58],["create_worker",60],["dbg_generate_blocks",95],["dbg_make_mia",93],["dbg_make_uia",92],["dbg_push_blocks",94],["dbg_stream_json_objects",96],["dbg_update_object",97],["derive_owner_keys_from_brain_key",28],["dump_private_keys",18],["flood_network",98],["fund_asset_fee_pool",48],["get_account",68],["get_account_count",71],["get_account_history",72],["get_account_id",69],["get_asset",46],["get_bitasset_data",47],["get_blind_accounts",104],["get_blind_balances",106],["get_block",70],["get_call_orders",83],["get_committee_member",55],["get_dynamic_global_properties",77],["get_global_properties",76],["get_key_label",102],["get_limit_orders",82],["get_market_history",75],["get_my_blind_accounts",105],["get_object",78],["get_order_book",113],["get_private_key",79],["get_prototype_operation",88],["get_public_key",103],["get_relative_account_history",73],["get_settle_orders",84],["get_transaction_id",39],["get_vesting_balances",62],["get_witness",54],["gethelp",1],["global_settle_asset",50],["help",0],["import_account_keys",25],["import_accounts",24],["import_balance",26],["import_key",23],["info",2],["is_locked",14],["is_new",13],["is_public_key_registered",74],["issue_asset",45],["list_account_balances",21],["list_accounts",20],["list_assets",22],["list_committee_members",57],["list_my_accounts",19],["list_witnesses",56],["load_wallet_file",80],["lock",15],["network_add_nodes",99],["network_get_connected_peers",100],["normalize_brain_key",81],["preview_builder_transaction",8],["propose_builder_transaction",10],["propose_builder_transaction2",11],["propose_fee_change",90],["propose_parameter_change",89],["publish_asset_feed",44],["receive_blind_transfer",112],["register_account",29],["remove_builder_transaction",12],["replace_operation_in_builder_transaction",6],["reserve_asset",49],["save_wallet_file",85],["sell",33],["sell_asset",32],["serialize_transaction",86],["set_desired_witness_and_committee_member_count",67],["set_fees_on_builder_transaction",7],["set_key_label",101],["set_password",17],["set_voting_proxy",66],["settle_asset",51],["sign_builder_transaction",9],["sign_transaction",87],["suggest_brain_key",27],["transfer",37],["transfer2",38],["transfer_from_blind",109],["transfer_to_blind",108],["unlock",16],["update_asset",41],["update_asset_feed_producers",43],["update_bitasset",42],["update_witness",59],["update_worker_votes",61],["upgrade_account",30],["vote_for_committee_member",64],["vote_for_witness",65],["whitelist_account",52],["withdraw_vesting",63]]}
th_a api_connection.hpp:109 call
Hmm
-
You can simply type:
help
in the CLI wallet to get the list of all available commands. It does not match the list from the graphene.
Maybe we can get one of the devs to jump in here and help you out.
-
Cool, perhaps I could lookup the holders of an asset, then pull their individual transaction history for an user input time period if they have a minimum asset holdings..
Re: The help command, for later reference I'm posting it here:
unlocked >>> help
help
N2fc14static_variantIINS_14variant_objectEEEE about()
char add_operation_to_builder_transaction(uint16_t, graphene::chain::operation)
graphene::chain::signed_transaction approve_proposal(string, string, graphene::wallet::approval_delta, bool)
uint16_t begin_builder_transaction()
std::vector<graphene::wallet::blind_receipt> blind_history(string)
graphene::wallet::blind_confirmation blind_transfer(string, string, string, string, bool)
graphene::chain::signed_transaction borrow_asset(string, string, string, string, bool)
graphene::chain::signed_transaction buy(string, string, string, double, double, bool)
graphene::chain::signed_transaction cancel_order(graphene::db::object_id_type, bool)
graphene::chain::signed_transaction create_account_with_brain_key(string, string, string, string, bool)
graphene::chain::signed_transaction create_asset(string, string, uint8_t, graphene::chain::asset_options, optional<graphene::chain::bitasset_options>, bool)
graphene::chain::public_key_type create_blind_account(string, string)
graphene::chain::signed_transaction create_committee_member(string, string, bool)
graphene::chain::signed_transaction create_witness(string, string, bool)
graphene::chain::signed_transaction create_worker(string, fc::time_point_sec, fc::time_point_sec, graphene::chain::share_type, string, string, fc::variant, bool)
char dbg_generate_blocks(string, uint32_t)
char dbg_make_mia(string, string)
char dbg_make_uia(string, string)
char dbg_push_blocks(string, uint32_t)
char dbg_stream_json_objects(string)
char dbg_update_object(N2fc14static_variantIINS_14variant_objectEEEE)
std::vector<graphene::wallet::brain_key_info> derive_owner_keys_from_brain_key(string, int32_t)
std::map<graphene::chain::public_key_type,string> dump_private_keys()
char flood_network(string, uint32_t)
graphene::chain::signed_transaction fund_asset_fee_pool(string, string, string, bool)
graphene::chain::account_object get_account(string)
uint64_t get_account_count()
std::vector<graphene::wallet::operation_detail> get_account_history(string, int32_t)
graphene::chain::account_id_type get_account_id(string)
graphene::chain::asset_object get_asset(string)
graphene::chain::asset_bitasset_data_object get_bitasset_data(string)
std::map<string,graphene::chain::public_key_type> get_blind_accounts()
std::vector<graphene::chain::asset> get_blind_balances(string)
optional<graphene::wallet::signed_block_with_info> get_block(uint32_t)
std::vector<graphene::chain::call_order_object> get_call_orders(string, uint32_t)
graphene::chain::committee_member_object get_committee_member(string)
graphene::chain::dynamic_global_property_object get_dynamic_global_properties()
graphene::chain::global_property_object get_global_properties()
string get_key_label(graphene::chain::public_key_type)
std::vector<graphene::chain::limit_order_object> get_limit_orders(string, string, uint32_t)
std::vector<graphene::market_history::bucket_object> get_market_history(string, string, uint32_t, fc::time_point_sec, fc::time_point_sec)
std::map<string,graphene::chain::public_key_type> get_my_blind_accounts()
fc::variant get_object(graphene::db::object_id_type)
graphene::app::order_book get_order_book(string, string, uint32_t)
string get_private_key(graphene::chain::public_key_type)
graphene::chain::operation get_prototype_operation(string)
graphene::chain::public_key_type get_public_key(string)
std::vector<graphene::wallet::operation_detail> get_relative_account_history(string, uint32_t, int32_t, uint32_t)
std::vector<graphene::chain::force_settlement_object> get_settle_orders(string, uint32_t)
uint160_t get_transaction_id(graphene::chain::signed_transaction)
std::vector<graphene::wallet::vesting_balance_object_with_info> get_vesting_balances(string)
graphene::chain::witness_object get_witness(string)
string gethelp(string)
graphene::chain::signed_transaction global_settle_asset(string, graphene::chain::price, bool)
string help()
bool import_account_keys(string, string, string, string)
std::map<string,bool> import_accounts(string, string)
std::vector<graphene::chain::signed_transaction> import_balance(string, std::vector<string>, bool)
bool import_key(string, string)
fc::variant info()
bool is_locked()
bool is_new()
bool is_public_key_registered(string)
graphene::chain::signed_transaction issue_asset(string, string, string, string, bool)
std::vector<graphene::chain::asset> list_account_balances(string)
std::map<string,graphene::chain::account_id_type> list_accounts(string, uint32_t)
std::vector<graphene::chain::asset_object> list_assets(string, uint32_t)
std::map<string,graphene::chain::committee_member_id_type> list_committee_members(string, uint32_t)
std::vector<graphene::chain::account_object> list_my_accounts()
std::map<string,graphene::chain::witness_id_type> list_witnesses(string, uint32_t)
bool load_wallet_file(string)
char lock()
char network_add_nodes(std::vector<string>)
std::vector<fc::variant> network_get_connected_peers()
string normalize_brain_key(string)
graphene::chain::transaction preview_builder_transaction(uint16_t)
graphene::chain::signed_transaction propose_builder_transaction(uint16_t, fc::time_point_sec, uint32_t, bool)
graphene::chain::signed_transaction propose_builder_transaction2(uint16_t, string, fc::time_point_sec, uint32_t, bool)
graphene::chain::signed_transaction propose_fee_change(string, fc::time_point_sec, N2fc14static_variantIINS_14variant_objectEEEE, bool)
graphene::chain::signed_transaction propose_parameter_change(string, fc::time_point_sec, N2fc14static_variantIINS_14variant_objectEEEE, bool)
graphene::chain::signed_transaction publish_asset_feed(string, string, graphene::chain::price_feed, bool)
graphene::wallet::blind_receipt receive_blind_transfer(string, string, string)
graphene::chain::signed_transaction register_account(string, graphene::chain::public_key_type, graphene::chain::public_key_type, string, string, uint32_t, bool)
char remove_builder_transaction(uint16_t)
char replace_operation_in_builder_transaction(uint16_t, uint32_t, graphene::chain::operation)
graphene::chain::signed_transaction reserve_asset(string, string, string, bool)
char save_wallet_file(string)
graphene::chain::signed_transaction sell(string, string, string, double, double, bool)
graphene::chain::signed_transaction sell_asset(string, string, string, string, string, uint32_t, bool, bool)
string serialize_transaction(graphene::chain::signed_transaction)
graphene::chain::signed_transaction set_desired_witness_and_committee_member_count(string, uint16_t, uint16_t, bool)
graphene::chain::asset set_fees_on_builder_transaction(uint16_t, string)
bool set_key_label(graphene::chain::public_key_type, string)
char set_password(string)
graphene::chain::signed_transaction set_voting_proxy(string, optional<string>, bool)
graphene::chain::signed_transaction settle_asset(string, string, string, bool)
graphene::chain::signed_transaction sign_builder_transaction(uint16_t, bool)
graphene::chain::signed_transaction sign_transaction(graphene::chain::signed_transaction, bool)
graphene::wallet::brain_key_info suggest_brain_key()
graphene::chain::signed_transaction transfer(string, string, string, string, string, bool)
N2fc14static_variantIISt4pairINS_9ripemd160EN8graphene5chain18signed_transactionEEEEE transfer2(string, string, string, string, string)
graphene::wallet::blind_confirmation transfer_from_blind(string, string, string, string, bool)
graphene::wallet::blind_confirmation transfer_to_blind(string, string, std::vector<N2fc14static_variantIISt4pairISsSsEEEE>, bool)
char unlock(string)
graphene::chain::signed_transaction update_asset(string, optional<string>, graphene::chain::asset_options, bool)
graphene::chain::signed_transaction update_asset_feed_producers(string, flat_set<string>, bool)
graphene::chain::signed_transaction update_bitasset(string, graphene::chain::bitasset_options, bool)
graphene::chain::signed_transaction update_witness(string, string, string, bool)
graphene::chain::signed_transaction update_worker_votes(string, graphene::wallet::worker_vote_delta, bool)
graphene::chain::signed_transaction upgrade_account(string, bool)
graphene::chain::signed_transaction vote_for_committee_member(string, string, bool, bool)
graphene::chain::signed_transaction vote_for_witness(string, string, bool, bool)
graphene::chain::signed_transaction whitelist_account(string, string, graphene::chain::account_whitelist_operation::account_listing, bool)
graphene::chain::signed_transaction withdraw_vesting(string, string, string, bool)
Edit: More commands in curl format
Account history of account
curl --data '{"jsonrpc": "2.0", "method": "get_account_history", "params": ["customminer", "1000"], "id": 1}' http://127.0.0.1:8092/rpc > customminer_account_history.json
List account balances w/ username
curl --data '{"jsonrpc": "2.0", "method": "list_account_balances", "params": ["customminer"], "id": 1}' http://127.0.0.1:8092/rpc > customminer_account_balances.json
Get_Asset AssetName
curl --data '{"jsonrpc": "2.0", "method": "get_asset", "params": ["USD"], "id": 1}' http://127.0.0.1:8092/rpc
wget https://cryptofresh.com/api/holders?asset=USD > USD.json
Websockets!
> {"id":2,"method":"call","params":[1,"login",["",""]]}
< {"id":2,"jsonrpc":"2.0","result":true}
> {"id":2,"method":"call","params":[1,"asset",[]]}
< {"id":2,"jsonrpc":"2.0","result":2}
> {"id":1, "method":"call", "params":[2,"get_asset_holders_count",["1.3.0"]]}
< {"id":1,"jsonrpc":"2.0","result":24085}
>
Top 10 holders:
> {"id":1, "method":"call", "params":[2,"get_asset_holders",["1.3.0", 0, 10]]}
< {"id":1,"jsonrpc":"2.0","result":[{"name":"poloniexcoldstorage","account_id":"1.2.24484","amount":"29000120286608"},{"name":"chbts","account_id":"1.2.224015","
amount":"21323905140061"},{"name":"yunbi-cold-wallet","account_id":"1.2.29211","amount":"14000000042195"},{"name":"bitcc-bts-cold","account_id":"1.2.152313","amo
unt":"10943523959939"},{"name":"yunbi-granary","account_id":"1.2.170580","amount":"10000000048617"},{"name":"jubi-bts","account_id":"1.2.253310","amount":"699215
7568429"},{"name":"bittrex-deposit","account_id":"1.2.22583","amount":"6843227690310"},{"name":"btschbtc","account_id":"1.2.224081","amount":"5000098977059"},{"n
ame":"bterdeposit","account_id":"1.2.9173","amount":"2195728656599"},{"name":"aloha","account_id":"1.2.10946","amount":"2061578333527"}]}
>
-
curl --data '{"jsonrpc": "2.0", "method": "get_account_history", "params": ["customminer", "1000"], "id": 1}' http://127.0.0.1:8092/rpc > customminer_account_history.json
If I want to get memo information from this get_account_history , could we this api after login(unlocked)?