Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wrighter
wrighter / download_bars.py
Last active May 3, 2024 21:38
A command line utility to download historical data from Interactive Brokers
#!/usr/bin/env python
import os
import sys
import argparse
import logging
from datetime import datetime, timedelta
from typing import List, Optional
from collections import defaultdict
@wrighter
wrighter / get_ticks.py
Created January 23, 2020 23:45
A basic Interactive Brokers command line Python application to fetch streaming market data.
#!/usr/bin/env python
""" A simple Interactive Brokers application that will fetch
current market data for a contract from the IB TWS/Gateway. """
import argparse
import logging
from typing import List
from ibapi import wrapper
from btgym import BTgymEnv
import IPython.display as Display
import PIL.Image as Image
from gym import spaces
import gym
import numpy as np
import random
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: run-atari.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
# Решение для хакатона https://vk.com/4liftnet?w=wall-136020006_164
# https://github.com/ppwwyyxx/tensorpack/tree/master/examples/A3C-Gym
import numpy as np
import os
@Kedrigern
Kedrigern / Com.latte
Last active March 14, 2023 00:04
Nette: Ajaxové ovládání komponenty
{* Component template *}
<div style="border-style: solid; border-width: 1px;">
<h4>Komponenta</h4>
<p>Jméno komponenty: {$control->name}</p>
{snippet com}
<p>Čas vykreslení:{$time|date:'%H:%M:%S'}</p>
{/snippet}
<p><a n:href="refresh!" class="ajax">REFRESH (invalidování)</a></p>
</div>