Improve posting trades to OANDA and make everything more robust
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user