Implement an order watcher deamon
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Empieza leyendo la API de OrderWatcher del issue y la referencia enlazada de 0x OrderWatcher. Define cómo deberían funcionar invalidWatcher, expirationWatcher, la eliminación de órdenes, los eventos de cambio de estado, la gestión de listas y el min-heap de expiración; terminado significa que las órdenes emiten un evento una vez cuando cambia su capacidad de ejecución y luego se eliminan del libro de órdenes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
CODEX order watcher is similar to 0x order watcher
- The
OrderWatcheris a daemon.You can start and stop it from subscribing to order state changes, add orders you would like to track and remove orders that are no longer relevant.Just can add order and get an event if the status of the order is changed. - Once the
OrderWatcheris started and an order has been added to it, it will emit events once, if there is a change in the state backing an order's fillability. If orderWatcher gets an event than it removes an order from the order book. - There are two kinds of watchers in the order watcher. One is
invalidWatcherwhich check the validity of orders except for expiration time. Another one isexpirationWatcherwhich check an expiration time of order. The difference between them is the length of the checking time interval. TheexpirationWatcher's time interval will be much shorter than theorderWatcher. - The
orderWatcherwill be managed by just list and theexpirationWatcherwill be managed by a min-heap. Therefore theexpirationWatcheronly need to monitor one order, which has a minimum expiration time.
API
// orderWatcher
addOrder(order): void
// expirationWatcher
addOrder(order, expiration): void
- Lenguaje dominante
- TypeScript
- Estrellas
- 17
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeChain-io/codechain-exchange
-
I cannot run testsAbiertohelp wanted test
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
CodeChain-io/codechain-exchange#28 · 3 comentarios ·
-
design
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
design
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
-
layout- responsive webAbiertodesign
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
log Matcher :m:
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de CodeChain-io/codechain-exchange
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
inu-appcenter/memorIN-frontend#106 ·
Los mantenedores suelen responder en 1 día
-
kind/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 7 días
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
fix: CopyFilters ignores tabAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
CSCfi/sd-search-ui#145 ·
Los mantenedores suelen responder en 1 día
-
Add: Cbeebies pl SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día