Skip to content

Commit

Permalink
Merge pull request #206 from dom-jiang/main
Browse files Browse the repository at this point in the history
Add batch get account fee
  • Loading branch information
WillaGao1 authored Sep 28, 2024
2 parents f61ca8d + 26506a2 commit 92d585b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import bleach
import requests

service_version = "20240913.01"
service_version = "20240928.01"
Welcome = 'Welcome to ref datacenter API server, version ' + service_version + ', indexer %s' % \
Cfg.NETWORK[Cfg.NETWORK_ID]["INDEXER_HOST"][-3:]
# Instantiation, which can be regarded as fixed format
Expand Down Expand Up @@ -712,13 +712,13 @@ def handle_fee_by_account():

@app.route('/batch-get-fee-by-account', methods=['GET'])
def handle_batch_fee_by_account():
ret_data = []
ret_data = {}
pool_ids = request.args.get("pool_ids")
account_id = request.args.get("account_id")
pool_id_list = pool_ids.split(",")
for pool_id in pool_id_list:
ret = handel_account_fee(pool_id, account_id)
ret_data.append(ret)
pool_fee = handel_account_fee(pool_id, account_id)
ret_data[pool_id] = pool_fee
return compress_response_content(ret_data)


Expand Down

0 comments on commit 92d585b

Please sign in to comment.