Improve posting trades to OANDA and make everything more robust

This commit is contained in:
2022-11-10 19:27:46 +00:00
parent bf863f43b2
commit af9f874209
11 changed files with 267 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
import uuid
import orjson
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseBadRequest
from django.shortcuts import render
@@ -17,9 +17,11 @@ class AccountInfo(LoginRequiredMixin, View):
VIEWABLE_FIELDS_MODEL = [
"name",
"exchange",
"currency",
"api_key",
"sandbox",
"supported_symbols",
"instruments",
]
allowed_types = ["modal", "widget", "window", "page"]
window_content = "window-content/account-info.html"