-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to tokio v1; support apple silicon; and other deps
Known issues: (1) host.docker.internal not works on macos (2) kafka 'in the middle of a leadership election' sometimes <wurstmeister/kafka-docker#516>
- Loading branch information
Showing
18 changed files
with
768 additions
and
1,095 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
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
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
Oops, something went wrong.