minor typos and fixes
This commit is contained in:
parent
ad1adeff0a
commit
866a130c35
12
main.py
12
main.py
|
|
@ -286,7 +286,7 @@ def set_time_between_subscriptions():
|
|||
for item in earners:
|
||||
if str(item.connector)==broker:
|
||||
item.set_time_between_subscriptions(new_time_between_subscriptions)
|
||||
return jsonify({'percentage': new_time_between_subscriptions})
|
||||
return jsonify({'time_between_subscriptions': new_time_between_subscriptions})
|
||||
return jsonify({'Error': 'broker not found'})
|
||||
return jsonify({'Error': 'API key not valid'}), 401
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ def set_time_between_redemptions():
|
|||
for item in earners:
|
||||
if str(item.connector)==broker:
|
||||
item.set_time_between_redemptions(new_time_between_redemptions)
|
||||
return jsonify({'percentage': new_time_between_redemptions})
|
||||
return jsonify({'time_between_redemptions': new_time_between_redemptions})
|
||||
return jsonify({'Error': 'broker not found'})
|
||||
return jsonify({'Error': 'API key not valid'}), 401
|
||||
|
||||
|
|
@ -360,7 +360,7 @@ def set_minimum_amount_in_trading_account():
|
|||
for item in earners:
|
||||
if str(item.connector)==broker:
|
||||
item.set_minimum_amount_in_trading_account(new_minimum_amount_in_trading_account)
|
||||
return jsonify({'percentage': new_minimum_amount_in_trading_account})
|
||||
return jsonify({'minimum_amount_in_trading_account': new_minimum_amount_in_trading_account})
|
||||
return jsonify({'Error': 'broker not found'})
|
||||
return jsonify({'Error': 'API key not valid'}), 401
|
||||
|
||||
|
|
@ -467,8 +467,8 @@ def redeem():
|
|||
return jsonify({'Error': 'force_pause is None'})
|
||||
for item in earners:
|
||||
if str(item.connector)==broker:
|
||||
subscription = item.redeem(amount, force_pause=force_pause)
|
||||
return jsonify({'Success': str(subscription)})
|
||||
redemption = item.redeem(amount, force_pause=force_pause)
|
||||
return jsonify({'Success': str(redemption)})
|
||||
return jsonify({'Error': 'broker not found'})
|
||||
return jsonify({'Error': 'API key not valid'}), 401
|
||||
|
||||
|
|
@ -480,7 +480,7 @@ def run_API(port):
|
|||
|
||||
if __name__=="__main__":
|
||||
|
||||
version = "2025.02.21"
|
||||
version = "2025.03.10"
|
||||
start_time = time.time()
|
||||
|
||||
with open("config.json") as f:
|
||||
|
|
|
|||
Loading…
Reference in New Issue