<commit_before>[BTCC-BTCCNY-Restful]
exchange = BTCC
instmt_name = BTCCNY
instmt_code = btccny
enabled = 1
order_book_link = https://data.btcchina.com/data/orderbook?limit=5&market=btccny
trades_link = https://data.btcchina.com/data/historydata?limit=1000&since=<id>&market=btccny
order_book_fields_mapping = {"date":"TIMESTAMP",
                                     "bids":"BIDS", 
                                     "asks":"ASKS"
                                    }
trades_fields_mapping = {"date":"TIMESTAMP",
                                 "type":"TRADE_SIDE", 
                                 "tid":"TRADE_ID",
                                 "price":"TRADE_PRICE",
                                 "amount":"TRADE_VOLUME"
                                }

[BTCC-XBTCNY-Restful]
exchange = BTCC
instmt_name = XBTCNY
instmt_code = xbtcny
enabled = 1
order_book_link = https://pro-data.btcc.com/data/pro/orderbook?limit=5&symbol=xbtcny
trades_link = https://pro-data.btcc.com/data/pro/historydata?limit=1000<id>&symbol=xbtcny
order_book_fields_mapping = {"date":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS",
                             "TIMESTAMP_OFFSET":1000
                             }
trades_fields_mapping = {"Timestamp":"TIMESTAMP",
                         "Side":"TRADE_SIDE",
                         "Id":"TRADE_ID",
                         "Price":"TRADE_PRICE",
                         "Quantity":"TRADE_VOLUME",
                         "TIMESTAMP_OFFSET":1000
                         }
                                
[BitMEX-XBTUSD-WS]
exchange = BitMEX
instmt_name = XBTUSD
instmt_code = XBTUSD
enabled = 1
link = wss://www.bitmex.com/realtime
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"timestamp":"TIMESTAMP",
                         "side":"TRADE_SIDE",
                         "trdMatchID":"TRADE_ID",
                         "price":"TRADE_PRICE",
                         "size":"TRADE_VOLUME"
                         }

[BitMEX-XBTZ16-WS]
exchange = BitMEX
instmt_name = XBTZ16
instmt_code = XBTZ16
enabled = 1
link = wss://www.bitmex.com/realtime
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"timestamp":"TIMESTAMP",
                         "side":"TRADE_SIDE",
                         "trdMatchID":"TRADE_ID",
                         "price":"TRADE_PRICE",
                         "size":"TRADE_VOLUME"
                         }

[Bitfinex-BTCUSD-WS]
exchange = Bitfinex
instmt_name = BTCUSD
instmt_code = BTCUSD
enabled = 0
link = wss://api2.bitfinex.com:3000/ws
trades_fields_mapping = {"1":"TIMESTAMP",
                         "0":"TRADE_ID",
                         "2":"TRADE_PRICE",
                         "3":"TRADE_VOLUME"
                         }

[Bitfinex-ETHUSD-WS]
exchange = Bitfinex
instmt_name = ETHUSD
instmt_code = ETHUSD
enabled = 1
link = wss://api2.bitfinex.com:3000/ws
trades_fields_mapping = {"1":"TIMESTAMP",
                         "0":"TRADE_ID",
                         "2":"TRADE_PRICE",
                         "3":"TRADE_VOLUME"
                         }

[OkCoin-SPOTBTCUSD-WS]
exchange = OkCoin
instmt_name = SPOT_BTCUSD
instmt_code = spotusd_btc
enabled = 1
link = wss://real.okcoin.com:10440/websocket/okcoinapi
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"3":"TIMESTAMP",
                         "4":"TRADE_SIDE",
                         "0":"TRADE_ID",
                         "1":"TRADE_PRICE",
                         "2":"TRADE_VOLUME"
                         }

[OkCoin-FUTBTCUSD_QUARTER-WS]
exchange = OkCoin
instmt_name = FUT_BTCUSD_1230
instmt_code = futureusd_btc_quarter
enabled = 1
link = wss://real.okcoin.com:10440/websocket/okcoinapi
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"3":"TIMESTAMP",
                         "4":"TRADE_SIDE",
                         "0":"TRADE_ID",
                         "1":"TRADE_PRICE",
                         "2":"TRADE_VOLUME"
                         }<commit_msg>Resolved issue of reversed ask book in OkCoin<commit_after>[BTCC-BTCCNY-Restful]
exchange = BTCC
instmt_name = BTCCNY
instmt_code = btccny
enabled = 1
order_book_link = https://data.btcchina.com/data/orderbook?limit=5&market=btccny
trades_link = https://data.btcchina.com/data/historydata?limit=1000&market=btccny<id>
order_book_fields_mapping = {"date":"TIMESTAMP",
                                     "bids":"BIDS", 
                                     "asks":"ASKS"
                                    }
trades_fields_mapping = {"date":"TIMESTAMP",
                                 "type":"TRADE_SIDE", 
                                 "tid":"TRADE_ID",
                                 "price":"TRADE_PRICE",
                                 "amount":"TRADE_VOLUME"
                                }

[BTCC-XBTCNY-Restful]
exchange = BTCC
instmt_name = XBTCNY
instmt_code = xbtcny
enabled = 1
order_book_link = https://pro-data.btcc.com/data/pro/orderbook?limit=5&symbol=xbtcny
trades_link = https://pro-data.btcc.com/data/pro/historydata?limit=1000&symbol=xbtcny<id>
order_book_fields_mapping = {"date":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS",
                             "TIMESTAMP_OFFSET":1000
                             }
trades_fields_mapping = {"Timestamp":"TIMESTAMP",
                         "Side":"TRADE_SIDE",
                         "Id":"TRADE_ID",
                         "Price":"TRADE_PRICE",
                         "Quantity":"TRADE_VOLUME",
                         "TIMESTAMP_OFFSET":1000
                         }
                                
[BitMEX-XBTUSD-WS]
exchange = BitMEX
instmt_name = XBTUSD
instmt_code = XBTUSD
enabled = 1
link = wss://www.bitmex.com/realtime
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"timestamp":"TIMESTAMP",
                         "side":"TRADE_SIDE",
                         "trdMatchID":"TRADE_ID",
                         "price":"TRADE_PRICE",
                         "size":"TRADE_VOLUME"
                         }

[BitMEX-XBTZ16-WS]
exchange = BitMEX
instmt_name = XBTZ16
instmt_code = XBTZ16
enabled = 1
link = wss://www.bitmex.com/realtime
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"timestamp":"TIMESTAMP",
                         "side":"TRADE_SIDE",
                         "trdMatchID":"TRADE_ID",
                         "price":"TRADE_PRICE",
                         "size":"TRADE_VOLUME"
                         }

[Bitfinex-BTCUSD-WS]
exchange = Bitfinex
instmt_name = BTCUSD
instmt_code = BTCUSD
enabled = 0
link = wss://api2.bitfinex.com:3000/ws
trades_fields_mapping = {"1":"TIMESTAMP",
                         "0":"TRADE_ID",
                         "2":"TRADE_PRICE",
                         "3":"TRADE_VOLUME"
                         }

[Bitfinex-ETHUSD-WS]
exchange = Bitfinex
instmt_name = ETHUSD
instmt_code = ETHUSD
enabled = 1
link = wss://api2.bitfinex.com:3000/ws
trades_fields_mapping = {"1":"TIMESTAMP",
                         "0":"TRADE_ID",
                         "2":"TRADE_PRICE",
                         "3":"TRADE_VOLUME"
                         }

[OkCoin-SPOTBTCUSD-WS]
exchange = OkCoin
instmt_name = SPOT_BTCUSD
instmt_code = spotusd_btc
enabled = 1
link = wss://real.okcoin.com:10440/websocket/okcoinapi
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"3":"TIMESTAMP",
                         "4":"TRADE_SIDE",
                         "0":"TRADE_ID",
                         "1":"TRADE_PRICE",
                         "2":"TRADE_VOLUME"
                         }

[OkCoin-FUTBTCUSD_QUARTER-WS]
exchange = OkCoin
instmt_name = FUT_BTCUSD_1230
instmt_code = futureusd_btc_quarter
enabled = 1
link = wss://real.okcoin.com:10440/websocket/okcoinapi
order_book_fields_mapping = {"timestamp":"TIMESTAMP",
                             "bids":"BIDS",
                             "asks":"ASKS"
                             }
trades_fields_mapping = {"3":"TIMESTAMP",
                         "4":"TRADE_SIDE",
                         "0":"TRADE_ID",
                         "1":"TRADE_PRICE",
                         "2":"TRADE_VOLUME"
                         }

[Kraken-XBTEUR-Restful]
exchange = Kraken
instmt_name = XBTEUR
instmt_code = xbteur
enabled = 1
order_book_link = https://api.kraken.com/0/public/Depth?pair=xbteur&count=5
trades_link = https://api.kraken.com/0/public/Trades?pair=XBTEUR&since=<id>
order_book_fields_mapping = {"date":"TIMESTAMP",
                                     "bids":"BIDS",
                                     "asks":"ASKS"
                                    }
trades_fields_mapping = {"date":"TIMESTAMP",
                                 "type":"TRADE_SIDE",
                                 "tid":"TRADE_ID",
                                 "price":"TRADE_PRICE",
                                 "amount":"TRADE_VOLUME"
                                }
{'fraction_non_alphanumeric': 0.11832176275279203, 'fraction_numerical': 0.015293289063286045, 'mean_word_length': 1.3621673003802282, 'pattern_counts': {'":': 124, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 21, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2834907', 'n_tokens_mistral': 3171, 'n_tokens_neox': 2926, 'n_words': 358}