mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
orderbook: Refactor package structure for simplicity and efficiency (#1465)
* initial purge and benchmarks proof before rn overhaul * rn LinkedList -> Tranche(s) and purge references * roll out acrost exchanges * linterino * rn silly billy label * linter strikes AAAAAGAIN! * fix some things * rm comment * Add actual comparison from master to branch benchmark for sorting algorithms * lower case via git mv YAAY! * drop code * convert type name * glorious: nits --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
@@ -3474,13 +3474,13 @@ func TestGetOrderbookMovement(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
bid := []orderbook.Item{
|
||||
bid := []orderbook.Tranche{
|
||||
{Price: 10, Amount: 1},
|
||||
{Price: 9, Amount: 1},
|
||||
{Price: 8, Amount: 1},
|
||||
{Price: 7, Amount: 1},
|
||||
}
|
||||
ask := []orderbook.Item{
|
||||
ask := []orderbook.Tranche{
|
||||
{Price: 11, Amount: 1},
|
||||
{Price: 12, Amount: 1},
|
||||
{Price: 13, Amount: 1},
|
||||
@@ -3587,13 +3587,13 @@ func TestGetOrderbookAmountByNominal(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
bid := []orderbook.Item{
|
||||
bid := []orderbook.Tranche{
|
||||
{Price: 10, Amount: 1},
|
||||
{Price: 9, Amount: 1},
|
||||
{Price: 8, Amount: 1},
|
||||
{Price: 7, Amount: 1},
|
||||
}
|
||||
ask := []orderbook.Item{
|
||||
ask := []orderbook.Tranche{
|
||||
{Price: 11, Amount: 1},
|
||||
{Price: 12, Amount: 1},
|
||||
{Price: 13, Amount: 1},
|
||||
@@ -3693,13 +3693,13 @@ func TestGetOrderbookAmountByImpact(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
bid := []orderbook.Item{
|
||||
bid := []orderbook.Tranche{
|
||||
{Price: 10, Amount: 1},
|
||||
{Price: 9, Amount: 1},
|
||||
{Price: 8, Amount: 1},
|
||||
{Price: 7, Amount: 1},
|
||||
}
|
||||
ask := []orderbook.Item{
|
||||
ask := []orderbook.Tranche{
|
||||
{Price: 11, Amount: 1},
|
||||
{Price: 12, Amount: 1},
|
||||
{Price: 13, Amount: 1},
|
||||
|
||||
Reference in New Issue
Block a user