|
@ -485,10 +485,13 @@ int32_t marketmaker_spread(char *exchange,char *base,char *rel,double bid,double |
|
|
if ( bid > SMALLVAL && bidvol > SMALLVAL && ptr->dir > 0 && fabs(bid - ptr->price) < separation ) |
|
|
if ( bid > SMALLVAL && bidvol > SMALLVAL && ptr->dir > 0 && fabs(bid - ptr->price) < separation ) |
|
|
nearflags[0]++; |
|
|
nearflags[0]++; |
|
|
if ( ask > SMALLVAL && askvol > SMALLVAL && ptr->dir < 0 && fabs(ask - ptr->price) < separation ) |
|
|
if ( ask > SMALLVAL && askvol > SMALLVAL && ptr->dir < 0 && fabs(ask - ptr->price) < separation ) |
|
|
|
|
|
{ |
|
|
|
|
|
printf("%.8f near %.8f\n",ask,ptr->price); |
|
|
nearflags[1]++; |
|
|
nearflags[1]++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
//printf("spread.%s (%.8f %.6f) (%.8f %.6f)\n",exchange,bid,bidvol,ask,askvol);
|
|
|
//printf("spread.%s (%.8f %.6f) (%.8f %.6f)\n",exchange,bid,bidvol,ask,askvol);
|
|
|
if ( bid > SMALLVAL && bidvol > SMALLVAL && nearflags[0] == 0 ) |
|
|
if ( bid > SMALLVAL && bidvol > SMALLVAL && nearflags[0] == 0 ) |
|
|
{ |
|
|
{ |
|
|