Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/signals target processor #93

Merged
merged 4 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions docs/key.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Key" class="doc_header"><code>class</code> <code>Key</code><a href="https://github.com/crowdcent/numerblox/tree/master/numerblox/key.py#L11" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Key</code>(<strong><code>pub_id</code></strong>:<code>str</code>, <strong><code>secret_key</code></strong>:<code>str</code>)</p>
<h2 id="Key" class="doc_header"><code>class</code> <code>Key</code><a href="https://github.com/crowdcent/numerblox/tree/master/numerblox/key.py#L9" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Key</code>(<strong><code>pub_id</code></strong>:<code>str</code>, <strong><code>secret_key</code></strong>:<code>str</code>)</p>
</blockquote>
<p>Immutable Numerai credentials.</p>
<p>Numerai credentials.</p>

</div>

Expand All @@ -91,7 +91,7 @@ <h2 id="Key" class="doc_header"><code>class</code> <code>Key</code><a href="http


<div class="output_markdown rendered_html output_subarea ">
<h4 id="load_key_from_json" class="doc_header"><code>load_key_from_json</code><a href="https://github.com/crowdcent/numerblox/tree/master/numerblox/key.py#L30" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>load_key_from_json</code>(<strong><code>file_path</code></strong>:<code>str</code>, <strong>*<code>args</code></strong>, <strong>**<code>kwargs</code></strong>)</p>
<h4 id="load_key_from_json" class="doc_header"><code>load_key_from_json</code><a href="https://github.com/crowdcent/numerblox/tree/master/numerblox/key.py#L22" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>load_key_from_json</code>(<strong><code>file_path</code></strong>:<code>str</code>, <strong>*<code>args</code></strong>, <strong>**<code>kwargs</code></strong>)</p>
</blockquote>
<p>Initialize Key object from JSON file.</p>
<p>Credentials file must have the following format:</p>
Expand Down Expand Up @@ -119,14 +119,14 @@ <h4 id="load_key_from_json" class="doc_header"><code>load_key_from_json</code><a



<div id="dabf124b-00b6-4cfe-9a42-38caaadd09ef" class="output_subarea output_javascript ">
<div id="0df8e837-bcb8-4e8e-88d2-c17ca0ef587e" class="output_subarea output_javascript ">
<script type="text/javascript">
var element = $('#dabf124b-00b6-4cfe-9a42-38caaadd09ef');
var element = $('#0df8e837-bcb8-4e8e-88d2-c17ca0ef587e');

setTimeout(function() {
var nbb_cell_id = 5;
var nbb_unformatted_code = "# export\nclass Key:\n \"\"\"Immutable Numerai credentials.\"\"\"\n def __init__(self, pub_id: str, secret_key: str):\n __slots__ = []\n self.pub_id = pub_id\n self.secret_key = secret_key\n\n def __post_init__(self):\n rich_print(\n f\":key: Numerai Auth key initialized with pub_id = '{self.pub_id}' :key:\"\n )\n\n def __repr__(self):\n return f\"Numerai Auth Key. pub_id = '{self.pub_id}'\"\n\n def __str__(self):\n return self.__repr__()\n\n\ndef load_key_from_json(file_path: str, *args, **kwargs):\n \"\"\"\n Initialize Key object from JSON file. \\n\n Credentials file must have the following format: \\n\n `{\"pub_id\": \"PUBLIC_ID\", \"secret_key\": \"SECRET_KEY\"}`\n \"\"\"\n with open(file_path) as json_file:\n json_data = json.load(json_file, *args, **kwargs)\n pub_id = json_data[\"pub_id\"]\n secret_key = json_data[\"secret_key\"]\n return Key(pub_id=pub_id, secret_key=secret_key)";
var nbb_formatted_code = "# export\nclass Key:\n \"\"\"Immutable Numerai credentials.\"\"\"\n\n def __init__(self, pub_id: str, secret_key: str):\n __slots__ = []\n self.pub_id = pub_id\n self.secret_key = secret_key\n\n def __post_init__(self):\n rich_print(\n f\":key: Numerai Auth key initialized with pub_id = '{self.pub_id}' :key:\"\n )\n\n def __repr__(self):\n return f\"Numerai Auth Key. pub_id = '{self.pub_id}'\"\n\n def __str__(self):\n return self.__repr__()\n\n\ndef load_key_from_json(file_path: str, *args, **kwargs):\n \"\"\"\n Initialize Key object from JSON file. \\n\n Credentials file must have the following format: \\n\n `{\"pub_id\": \"PUBLIC_ID\", \"secret_key\": \"SECRET_KEY\"}`\n \"\"\"\n with open(file_path) as json_file:\n json_data = json.load(json_file, *args, **kwargs)\n pub_id = json_data[\"pub_id\"]\n secret_key = json_data[\"secret_key\"]\n return Key(pub_id=pub_id, secret_key=secret_key)";
var nbb_unformatted_code = "# export\nclass Key:\n \"\"\"Numerai credentials.\"\"\"\n def __init__(self, pub_id: str, secret_key: str):\n self.pub_id = pub_id\n self.secret_key = secret_key\n\n def __repr__(self):\n return f\"Numerai Auth Key. pub_id = '{self.pub_id}'\"\n\n def __str__(self):\n return self.__repr__()\n\n\ndef load_key_from_json(file_path: str, *args, **kwargs):\n \"\"\"\n Initialize Key object from JSON file. \\n\n Credentials file must have the following format: \\n\n `{\"pub_id\": \"PUBLIC_ID\", \"secret_key\": \"SECRET_KEY\"}`\n \"\"\"\n with open(file_path) as json_file:\n json_data = json.load(json_file, *args, **kwargs)\n pub_id = json_data[\"pub_id\"]\n secret_key = json_data[\"secret_key\"]\n return Key(pub_id=pub_id, secret_key=secret_key)";
var nbb_formatted_code = "# export\nclass Key:\n \"\"\"Numerai credentials.\"\"\"\n\n def __init__(self, pub_id: str, secret_key: str):\n self.pub_id = pub_id\n self.secret_key = secret_key\n\n def __repr__(self):\n return f\"Numerai Auth Key. pub_id = '{self.pub_id}'\"\n\n def __str__(self):\n return self.__repr__()\n\n\ndef load_key_from_json(file_path: str, *args, **kwargs):\n \"\"\"\n Initialize Key object from JSON file. \\n\n Credentials file must have the following format: \\n\n `{\"pub_id\": \"PUBLIC_ID\", \"secret_key\": \"SECRET_KEY\"}`\n \"\"\"\n with open(file_path) as json_file:\n json_data = json.load(json_file, *args, **kwargs)\n pub_id = json_data[\"pub_id\"]\n secret_key = json_data[\"secret_key\"]\n return Key(pub_id=pub_id, secret_key=secret_key)";
var nbb_cells = Jupyter.notebook.get_cells();
for (var i = 0; i < nbb_cells.length; ++i) {
if (nbb_cells[i].input_prompt_number == nbb_cell_id) {
Expand Down Expand Up @@ -178,9 +178,9 @@ <h3 id="Example-usage-1:-direct-initialization">Example usage 1: direct initiali



<div id="f626ac14-f081-47b3-baed-7aeab8a70484" class="output_subarea output_javascript ">
<div id="ef54303d-8926-4d44-bb35-c50953b85df8" class="output_subarea output_javascript ">
<script type="text/javascript">
var element = $('#f626ac14-f081-47b3-baed-7aeab8a70484');
var element = $('#ef54303d-8926-4d44-bb35-c50953b85df8');

setTimeout(function() {
var nbb_cell_id = 6;
Expand Down Expand Up @@ -230,9 +230,9 @@ <h3 id="Example-usage-1:-direct-initialization">Example usage 1: direct initiali



<div id="b2846aa8-f920-4cda-9ba2-1061f5d7415b" class="output_subarea output_javascript ">
<div id="576ee839-e765-4b72-84df-2272d09cbb0c" class="output_subarea output_javascript ">
<script type="text/javascript">
var element = $('#b2846aa8-f920-4cda-9ba2-1061f5d7415b');
var element = $('#576ee839-e765-4b72-84df-2272d09cbb0c');

setTimeout(function() {
var nbb_cell_id = 7;
Expand Down Expand Up @@ -288,9 +288,9 @@ <h3 id="Example-usage-2:--loading-from-JSON">Example usage 2: loading from JSON



<div id="6456dac9-ee35-49e4-a195-bbeb00456d70" class="output_subarea output_javascript ">
<div id="7af6a109-9b6b-4200-9643-08449407d72c" class="output_subarea output_javascript ">
<script type="text/javascript">
var element = $('#6456dac9-ee35-49e4-a195-bbeb00456d70');
var element = $('#7af6a109-9b6b-4200-9643-08449407d72c');

setTimeout(function() {
var nbb_cell_id = 8;
Expand Down Expand Up @@ -350,9 +350,9 @@ <h3 id="Example-usage-2:--loading-from-JSON">Example usage 2: loading from JSON



<div id="71beac83-df34-44d0-9496-9ecaa2307580" class="output_subarea output_javascript ">
<div id="cff49d04-13ac-4a3f-826e-43e52b00b63d" class="output_subarea output_javascript ">
<script type="text/javascript">
var element = $('#71beac83-df34-44d0-9496-9ecaa2307580');
var element = $('#cff49d04-13ac-4a3f-826e-43e52b00b63d');

setTimeout(function() {
var nbb_cell_id = 9;
Expand Down
Loading