Skip to content

Instantly share code, notes, and snippets.

View kailashyogeshwar85's full-sized avatar

kailash k yogeshwar kailashyogeshwar85

View GitHub Profile
package engine
import "encoding/json"
type Trade struct {
TakerOrderID string `json:"taker_order_id"`
MakerOrderID string `json:"maker_order_id"`
Quantity uint64 `json:"quantity"`
Price uint64 `json:"price"`
Timestamp int64 `json:"timestamp"`
package main
import (
"fmt"
"log"
"time"
"github.com/Shopify/sarama"
cluster "github.com/bsm/sarama-cluster"
"github.com/kailashyogeshwar85/slim-orderbook/cmd/slim-orderbook/engine"