-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support apple M1! Known issues: (1) host.docker.internal still…
… not works, so I have to use local nginx & grpcgateway in the host; (2) wurstmeister/kafka-docker#516 occurs sometimes
- Loading branch information
Showing
8 changed files
with
149 additions
and
187 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ authors = ["lispczz <[email protected]>"] | |
edition = "2018" | ||
|
||
[dependencies] | ||
log = "0.4.13" | ||
log = "0.4.14" | ||
env_logger = "0.8.2" | ||
config_rs = { package = "config", version = "0.10.1" } | ||
serde = { version = "1.0.120", features = ["derive"] } | ||
serde = { version = "1.0.123", features = ["derive"] } | ||
serde_json = "1.0.61" | ||
prost = "0.7.0" | ||
prost-types = "0.7.0" | ||
|
@@ -18,19 +18,20 @@ futures-core = { version = "0.3.12", default-features = false } | |
futures-channel = "0.3.12" | ||
futures-util = { version = "0.3.12", default-features = false } | ||
|
||
tokio = { version = "1.0.2", features = ["full"] } | ||
tokio = { version = "1.1.1", features = ["full"] } | ||
thread-id = "3.3.0" | ||
|
||
futures = "0.3.12" | ||
hyper = "0.14.2" | ||
crossbeam-channel = "0.5.0" | ||
rdkafka = "0.24.0" | ||
rdkafka = { version = "0.25.0", features = ["cmake-build"] } | ||
nix = "0.19.1" | ||
anyhow = "1.0.38" | ||
sqlx = { git = "https://github.com/launchbadge/sqlx.git", features=["runtime-tokio-rustls", "postgres", "chrono", "decimal", "json", "migrate" ] } | ||
chrono = { version = "0.4.19", features = ["serde"] } | ||
rust_decimal = { version = "1.10.0", features = ["postgres", "diesel", "bytes", "byteorder"] } | ||
rust_decimal_macros = "1.10.0" | ||
humantime-serde = "1.0" | ||
rust_decimal = { version = "1.10.1", features = ["postgres", "bytes", "byteorder"] } | ||
rust_decimal_macros = "1.10.1" | ||
humantime-serde = "1.0.1" | ||
|
||
ttl_cache = "0.5.1" | ||
itertools = "0.10.0" | ||
|
@@ -40,7 +41,7 @@ tonic = "0.4.0" | |
actix-web = "4.0.0-beta.1" | ||
qstring = "0.7.2" | ||
thiserror = "1.0.23" | ||
rand = "0.8.2" | ||
rand = "0.8.3" | ||
|
||
[build-dependencies] | ||
prost = "0.7.0" | ||
|
File renamed without changes.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import axios from "axios"; | ||
async function main() { | ||
const server = "0.0.0.0"; | ||
console.log("closed orders:"); | ||
console.log( | ||
(await axios.get(`http://${server}:8765/restapi/closedorders/ETH_USDT/3`)) | ||
.data | ||
); | ||
console.log("active orders:"); | ||
console.log( | ||
(await axios.get("http://localhost:8765/api/orders/ETH_USDT/3")).data | ||
(await axios.get(`http://${server}:8765/api/orders/ETH_USDT/3`)).data | ||
); | ||
console.log("closed orders:"); | ||
console.log("market ticker:"); | ||
console.log( | ||
(await axios.get("http://localhost:8765/restapi/closedorders/ETH_USDT/3")) | ||
.data | ||
(await axios.get(`http://${server}:8765/restapi/ticker_24h/ETH_USDT`)).data | ||
); | ||
} | ||
main().catch(console.log); |
This file contains 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
This file contains 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
This file contains 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