commit
This commit is contained in:
2
backend/thirdparty/trading212/views.py
vendored
2
backend/thirdparty/trading212/views.py
vendored
@@ -1,7 +1,6 @@
|
||||
# thirdparty/trading212/views.py
|
||||
import os
|
||||
import requests
|
||||
from decouple import config
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.permissions import IsAuthenticated
|
||||
@@ -18,6 +17,7 @@ class Trading212AccountCashView(APIView):
|
||||
)
|
||||
def get(self, request):
|
||||
api_key = os.getenv("API_KEY_TRADING212")
|
||||
|
||||
headers = {
|
||||
"Authorization": f"Bearer {api_key}",
|
||||
"Accept": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user