This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
OlderNewer