From db450101bde820f7b9d2e78ca38c7edc9f315383 Mon Sep 17 00:00:00 2001 From: Luis Brienze Date: Sun, 4 Sep 2022 00:00:27 -0300 Subject: [PATCH] [SCRIPTS] - removed unused scripts Signed-off-by: Luis Brienze --- scripts/create_client.sh | 122 --------------------------------------- scripts/query_client.sh | 11 ---- 2 files changed, 133 deletions(-) delete mode 100644 scripts/create_client.sh delete mode 100644 scripts/query_client.sh diff --git a/scripts/create_client.sh b/scripts/create_client.sh deleted file mode 100644 index aac42e4..0000000 --- a/scripts/create_client.sh +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/sh - -echo "########### Inserting test client on DynamoDB 'crypto_robot.clients' table ###########" -aws dynamodb put-item \ - --endpoint-url=http://localhost:4566 \ - --profile localstack \ - --table-name crypto_robot.clients \ - --item '{ - "client_id": { - "S": "aa324edf-99fa-4a95-b9c4-a588d1ccb441e" - }, - "active": { - "BOOL": true - }, - "locked_until": { - "S": "20-07-2022 02:18:10" - }, - "locked": { - "BOOL": false - }, - "cash_amount": { - "N": "100" - }, - "cash_reserved": { - "N": "0" - }, - "crypto_amount": { - "N": "0.0000312" - }, - "crypto_symbol": { - "S": "BTC" - }, - "crypto_reserved": { - "N": "0" - }, - "buy_on": { - "S": "STRONG_BUY" - }, - "sell_on": { - "S": "SELL" - }, - "ops_timeout_seconds": { - "N": "60" - }, - "operation_stop_loss": { - "N": "50" - }, - "day_stop_loss": { - "N": "500" - }, - "month_stop_loss": { - "N": "500" - }, - "month_sell_cap": { - "N": "25000" - }, - "symbols": { - "L": [ - { - "S": "BTC" - }, - { - "S": "SOL" - } - ] - }, - "monthly_summary": { - "M": { - "month": { - "S": "08/2022" - }, - "amount_sold": { - "N": "23000.42" - }, - "amount_bought": { - "N": "37123.42" - }, - "profit": { - "N": "1032.32" - }, - "crypto": { - "L": [ - { - "M": { - "profit": { - "N": "-53" - } - } - } - ] - } - } - }, - "daily_summary": { - "M": { - "day": { - "S": "14/08/2022" - }, - "amount_sold": { - "N": "23000.42" - }, - "amount_bought": { - "N": "37123.42" - }, - "profit": { - "N": "-53" - }, - "crypto": { - "L": [ - { - "M": { - "profit": { - "N": "-53" - } - } - } - ] - } - } - } - }' \ - --return-consumed-capacity TOTAL \ No newline at end of file diff --git a/scripts/query_client.sh b/scripts/query_client.sh deleted file mode 100644 index 66d2d8b..0000000 --- a/scripts/query_client.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -echo "########### Inserting test client on DynamoDB 'crypto_robot.clients' table ###########" -aws dynamodb query \ - --endpoint-url=http://localhost:4566 \ - --profile localstack \ - --table-name crypto_robot.clients \ - --key-condition-expression "client_id = :v1" \ - --expression-attribute-values '{ - ":v1": {"S": "aa324edf-99fa-4a95-b9c4-a588d1ccb441e"} - }' \ No newline at end of file