|
|
@@ -64,6 +64,7 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
|
|
|
name = "as-market-binance-okx-spot"
|
|
|
version = "0.1.0"
|
|
|
dependencies = [
|
|
|
+ "binance",
|
|
|
"chrono",
|
|
|
"ndarray",
|
|
|
"reqwest",
|
|
|
@@ -102,12 +103,34 @@ version = "0.2.11"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "4cbbc9d0964165b47557570cce6c952866c2678457aca742aafc9fb771d30270"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "base64"
|
|
|
+version = "0.13.1"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "base64"
|
|
|
version = "0.21.2"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "binance"
|
|
|
+version = "0.20.2"
|
|
|
+source = "git+https://github.com/wisespace-io/binance-rs.git#0a7128d812b05953ee9564f04b76dd14df079b28"
|
|
|
+dependencies = [
|
|
|
+ "error-chain",
|
|
|
+ "hex",
|
|
|
+ "hmac",
|
|
|
+ "reqwest",
|
|
|
+ "serde",
|
|
|
+ "serde_json",
|
|
|
+ "sha2",
|
|
|
+ "tungstenite",
|
|
|
+ "url",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "bitflags"
|
|
|
version = "1.3.2"
|
|
|
@@ -132,6 +155,15 @@ dependencies = [
|
|
|
"wyz",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "block-buffer"
|
|
|
+version = "0.10.4"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
|
+dependencies = [
|
|
|
+ "generic-array",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "borsh"
|
|
|
version = "0.10.3"
|
|
|
@@ -269,6 +301,36 @@ version = "0.8.4"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "cpufeatures"
|
|
|
+version = "0.2.9"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1"
|
|
|
+dependencies = [
|
|
|
+ "libc",
|
|
|
+]
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "crypto-common"
|
|
|
+version = "0.1.6"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
|
|
+dependencies = [
|
|
|
+ "generic-array",
|
|
|
+ "typenum",
|
|
|
+]
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "digest"
|
|
|
+version = "0.10.7"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
|
+dependencies = [
|
|
|
+ "block-buffer",
|
|
|
+ "crypto-common",
|
|
|
+ "subtle",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "discard"
|
|
|
version = "1.0.4"
|
|
|
@@ -305,6 +367,15 @@ dependencies = [
|
|
|
"libc",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "error-chain"
|
|
|
+version = "0.12.4"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc"
|
|
|
+dependencies = [
|
|
|
+ "version_check",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "fastrand"
|
|
|
version = "2.0.0"
|
|
|
@@ -362,6 +433,12 @@ version = "0.3.28"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "futures-io"
|
|
|
+version = "0.3.28"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "futures-sink"
|
|
|
version = "0.3.28"
|
|
|
@@ -381,9 +458,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
|
|
|
dependencies = [
|
|
|
"futures-core",
|
|
|
+ "futures-io",
|
|
|
"futures-task",
|
|
|
+ "memchr",
|
|
|
"pin-project-lite",
|
|
|
"pin-utils",
|
|
|
+ "slab",
|
|
|
+]
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "generic-array"
|
|
|
+version = "0.14.7"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
|
+dependencies = [
|
|
|
+ "typenum",
|
|
|
+ "version_check",
|
|
|
]
|
|
|
|
|
|
[[package]]
|
|
|
@@ -440,6 +530,27 @@ dependencies = [
|
|
|
"ahash 0.8.3",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "hermit-abi"
|
|
|
+version = "0.3.2"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b"
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "hex"
|
|
|
+version = "0.4.3"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "hmac"
|
|
|
+version = "0.12.1"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
|
|
+dependencies = [
|
|
|
+ "digest",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "http"
|
|
|
version = "0.2.9"
|
|
|
@@ -700,6 +811,16 @@ dependencies = [
|
|
|
"autocfg",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "num_cpus"
|
|
|
+version = "1.16.0"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
|
|
|
+dependencies = [
|
|
|
+ "hermit-abi",
|
|
|
+ "libc",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "object"
|
|
|
version = "0.31.1"
|
|
|
@@ -908,7 +1029,7 @@ version = "0.11.18"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55"
|
|
|
dependencies = [
|
|
|
- "base64",
|
|
|
+ "base64 0.21.2",
|
|
|
"bytes",
|
|
|
"encoding_rs",
|
|
|
"futures-core",
|
|
|
@@ -1086,6 +1207,9 @@ name = "serde"
|
|
|
version = "1.0.183"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c"
|
|
|
+dependencies = [
|
|
|
+ "serde_derive",
|
|
|
+]
|
|
|
|
|
|
[[package]]
|
|
|
name = "serde_derive"
|
|
|
@@ -1130,12 +1254,34 @@ dependencies = [
|
|
|
"sha1_smol",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "sha1"
|
|
|
+version = "0.10.5"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
|
|
|
+dependencies = [
|
|
|
+ "cfg-if",
|
|
|
+ "cpufeatures",
|
|
|
+ "digest",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "sha1_smol"
|
|
|
version = "1.0.0"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "sha2"
|
|
|
+version = "0.10.7"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
|
|
|
+dependencies = [
|
|
|
+ "cfg-if",
|
|
|
+ "cpufeatures",
|
|
|
+ "digest",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "simdutf8"
|
|
|
version = "0.1.4"
|
|
|
@@ -1219,7 +1365,7 @@ dependencies = [
|
|
|
"serde",
|
|
|
"serde_derive",
|
|
|
"serde_json",
|
|
|
- "sha1",
|
|
|
+ "sha1 0.6.1",
|
|
|
"syn 1.0.109",
|
|
|
]
|
|
|
|
|
|
@@ -1229,6 +1375,12 @@ version = "0.1.5"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "subtle"
|
|
|
+version = "2.5.0"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "syn"
|
|
|
version = "1.0.109"
|
|
|
@@ -1270,6 +1422,26 @@ dependencies = [
|
|
|
"windows-sys",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "thiserror"
|
|
|
+version = "1.0.46"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "d9207952ae1a003f42d3d5e892dac3c6ba42aa6ac0c79a6a91a2b5cb4253e75c"
|
|
|
+dependencies = [
|
|
|
+ "thiserror-impl",
|
|
|
+]
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "thiserror-impl"
|
|
|
+version = "1.0.46"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "f1728216d3244de4f14f14f8c15c79be1a7c67867d28d69b719690e2a19fb445"
|
|
|
+dependencies = [
|
|
|
+ "proc-macro2",
|
|
|
+ "quote",
|
|
|
+ "syn 2.0.28",
|
|
|
+]
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "time"
|
|
|
version = "0.1.45"
|
|
|
@@ -1344,6 +1516,7 @@ dependencies = [
|
|
|
"bytes",
|
|
|
"libc",
|
|
|
"mio",
|
|
|
+ "num_cpus",
|
|
|
"pin-project-lite",
|
|
|
"socket2 0.5.3",
|
|
|
"windows-sys",
|
|
|
@@ -1414,6 +1587,32 @@ version = "0.2.4"
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed"
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "tungstenite"
|
|
|
+version = "0.18.0"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "30ee6ab729cd4cf0fd55218530c4522ed30b7b6081752839b68fcec8d0960788"
|
|
|
+dependencies = [
|
|
|
+ "base64 0.13.1",
|
|
|
+ "byteorder",
|
|
|
+ "bytes",
|
|
|
+ "http",
|
|
|
+ "httparse",
|
|
|
+ "log",
|
|
|
+ "native-tls",
|
|
|
+ "rand",
|
|
|
+ "sha1 0.10.5",
|
|
|
+ "thiserror",
|
|
|
+ "url",
|
|
|
+ "utf-8",
|
|
|
+]
|
|
|
+
|
|
|
+[[package]]
|
|
|
+name = "typenum"
|
|
|
+version = "1.16.0"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba"
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "unicode-bidi"
|
|
|
version = "0.3.13"
|
|
|
@@ -1446,6 +1645,12 @@ dependencies = [
|
|
|
"percent-encoding",
|
|
|
]
|
|
|
|
|
|
+[[package]]
|
|
|
+name = "utf-8"
|
|
|
+version = "0.7.6"
|
|
|
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
|
|
+
|
|
|
[[package]]
|
|
|
name = "uuid"
|
|
|
version = "1.4.1"
|