Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
browser_policy.hpp File Reference
#include <nlohmann/json.hpp>
#include <array>
#include <cstdint>
#include <span>
#include <string>
#include <string_view>
Include dependency graph for browser_policy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  slick
namespace  slick::trader

Enumerations

enum class  slick::trader::PolicyUrl { slick::trader::ADDED , slick::trader::LISTED , slick::trader::FAILED }

Functions

std::string slick::trader::dashboard_origin (std::string_view ip, int64_t port)
PolicyUrl slick::trader::add_policy_url (std::string_view key, std::string_view url, std::string &error)
void slick::trader::list_origin (const nlohmann::json &config, std::string_view setting, int64_t default_port, std::span< const std::string_view > keys)

Variables

constexpr std::string_view slick::trader::EDGE_POPUPS_KEY = R"(Software\Policies\Microsoft\Edge\PopupsAllowedForUrls)"
constexpr std::string_view slick::trader::CHROME_POPUPS_KEY = R"(Software\Policies\Google\Chrome\PopupsAllowedForUrls)"
constexpr std::array< std::string_view, 2 > slick::trader::POPUP_POLICY_KEYS {EDGE_POPUPS_KEY, CHROME_POPUPS_KEY}
constexpr std::string_view slick::trader::EDGE_SECURE_KEY
constexpr std::string_view slick::trader::CHROME_SECURE_KEY
constexpr std::array< std::string_view, 2 > slick::trader::SECURE_POLICY_KEYS {EDGE_SECURE_KEY, CHROME_SECURE_KEY}