-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (20 loc) · 839 Bytes
/
Copy pathmain.py
File metadata and controls
32 lines (20 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from views.api import API
from indicators.indicators import Indicators
if __name__ == "__main__":
# Connect to API
api = API()
api.connect_to_api("Key",
"Secret")
# Get Api Keys and Secret to See
api.get_api_key()
api.get_api_secret()
# Taking Crypto Currency Values
crypto_currency = api.get_crypto_currency('BTCUSDT', "1d", 100)
# To check some information about the crypto currency which we got its values
print("Symbol: {}\nInterval: {}\nLimit: {}".format(crypto_currency.symbol,
crypto_currency.interval,
crypto_currency.limit))
# Its Open Values
print(crypto_currency.open_values)
# RSI Scores
rsi = Indicators.RSI(crypto_currency)