#!/usr/bin/env python

from binance.client import Client
import json
import os.path
import sys


def main():
    client = Client()
    klines = client.get_historical_klines('BTCUSDT', Client.KLINE_INTERVAL_1HOUR, "1 day ago UTC", limit=3)
    filename = os.path.join(os.path.dirname(sys.argv[0]), 'fixtures', 'ohlc_binance.json')
    with open(filename, 'w') as f:
        json.dump(klines, f, indent=2)


if __name__ == '__main__':
    main()

47d1af0e0802c4830a7013fca01e72bce6b241c5
<mask token>

<mask token>


def main():
    client = Client()
    klines = client.get_historical_klines('BTCUSDT', Client.
        KLINE_INTERVAL_1HOUR, '1 day ago UTC', limit=3)
    filename = os.path.join(os.path.dirname(sys.argv[0]), 'fixtures',
        'ohlc_binance.json')
    with open(filename, 'w') as f:
        json.dump(klines, f, indent=2)


<mask token>

<mask token>


def main():
    client = Client()
    klines = client.get_historical_klines('BTCUSDT', Client.
        KLINE_INTERVAL_1HOUR, '1 day ago UTC', limit=3)
    filename = os.path.join(os.path.dirname(sys.argv[0]), 'fixtures',
        'ohlc_binance.json')
    with open(filename, 'w') as f:
        json.dump(klines, f, indent=2)


if __name__ == '__main__':
    main()

from binance.client import Client
import json
import os.path
import sys


def main():
    client = Client()
    klines = client.get_historical_klines('BTCUSDT', Client.
        KLINE_INTERVAL_1HOUR, '1 day ago UTC', limit=3)
    filename = os.path.join(os.path.dirname(sys.argv[0]), 'fixtures',
        'ohlc_binance.json')
    with open(filename, 'w') as f:
        json.dump(klines, f, indent=2)


if __name__ == '__main__':
    main()

#!/usr/bin/env python

from binance.client import Client
import json
import os.path
import sys


def main():
    client = Client()
    klines = client.get_historical_klines('BTCUSDT', Client.KLINE_INTERVAL_1HOUR, "1 day ago UTC", limit=3)
    filename = os.path.join(os.path.dirname(sys.argv[0]), 'fixtures', 'ohlc_binance.json')
    with open(filename, 'w') as f:
        json.dump(klines, f, indent=2)


if __name__ == '__main__':
    main()
