Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: quotes-server #430

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0ff4862
feat: quotes-server
bodymindarts Sep 13, 2023
b6dc7ca
chore: copy currency code to quotes
bodymindarts Sep 14, 2023
fdf2eb1
chore: more scoping under currency_exchange
bodymindarts Sep 14, 2023
cb680e8
refactor: rename currency_exchange -> price
bodymindarts Sep 14, 2023
d1ff1a7
chore: quotes app init
bodymindarts Sep 15, 2023
5f45af3
test: improve mixer test with Dummys
bodymindarts Sep 15, 2023
5cbbd0c
chore: price use case
bodymindarts Sep 15, 2023
c7ba7a6
test: all use cases of PriceCaclculator
bodymindarts Sep 15, 2023
8121681
refactor: rename proto api
bodymindarts Sep 18, 2023
990ea90
feat: use order book in quotes server
thevaibhav-dixit Oct 3, 2023
29e0bdb
chore: add entity folder for quotes-server
thevaibhav-dixit Oct 4, 2023
b95e5c3
feat: add entity events and repo
thevaibhav-dixit Oct 4, 2023
539a22b
chore: quotes_server in cli
thevaibhav-dixit Oct 5, 2023
3331a64
chore: construct quote
thevaibhav-dixit Oct 5, 2023
2f6d6db
chore: run sqlx prepare
thevaibhav-dixit Oct 5, 2023
e3b77c7
feat: add sats/cents for sell/buy
thevaibhav-dixit Oct 5, 2023
00ba01b
refactor: index only required fields
thevaibhav-dixit Oct 5, 2023
04cd534
chore: address pr reviews
thevaibhav-dixit Oct 5, 2023
76b52f7
chore: complete server_side code
thevaibhav-dixit Oct 6, 2023
13c272f
chore: address pr review
thevaibhav-dixit Oct 6, 2023
5388ba9
chore: fix quote table
thevaibhav-dixit Oct 6, 2023
1300d11
feat: add quote_buy_template
thevaibhav-dixit Oct 10, 2023
ebc5f6f
feat: add templates for quotes
thevaibhav-dixit Oct 23, 2023
f145658
refactor: remove revert templates
thevaibhav-dixit Oct 23, 2023
df81c15
fix: use proper error message
thevaibhav-dixit Oct 23, 2023
5b6360c
feat: implement accept_quote use case
thevaibhav-dixit Oct 25, 2023
81550fb
fix: rename stablesats_quote -> stablesats_quotes
thevaibhav-dixit Oct 25, 2023
8fab192
fix: add update fn for quotes
thevaibhav-dixit Oct 26, 2023
edecb90
test: add quotes_app test
thevaibhav-dixit Oct 26, 2023
b16e0e7
refactor: add config based expiration_interval
thevaibhav-dixit Oct 26, 2023
f45cf99
refactor: remove redundant errors
thevaibhav-dixit Oct 26, 2023
2b85777
refactor: add accepted and expiration related errors
thevaibhav-dixit Oct 26, 2023
da7c5db
test: cover various cases for quotes_app test
thevaibhav-dixit Oct 26, 2023
7688148
refactor: checks on entity and make txn's atomic
thevaibhav-dixit Nov 6, 2023
3dc60d9
chore: add mark_events to entity_events
bodymindarts Nov 6, 2023
5276163
fix: use consistent style
thevaibhav-dixit Nov 7, 2023
bc940f4
feat: include cent/sat spread in quote(first-iteration)
thevaibhav-dixit Nov 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 80 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"shared",
"ledger",
"price-server",
"quotes-server",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to be different than the price server?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easier to immutably replace rather than try to merge legacy with new server IMO

"cli",
"hedging",
"user-trades",
Expand All @@ -17,7 +18,7 @@ members = [

[workspace.dependencies]
reqwest = { version = "0.11.15", default-features = false, features = ["json", "rustls-tls"] }
tokio-tungstenite = { version = "0.18.0", features = ["rustls-tls-webpki-roots"] }
tokio-tungstenite = { version = "0.20.1", features = ["rustls-tls-webpki-roots"] }
url = { version = "2.3.1", features = ["serde"] }
axum = "0.6.11"
axum-core = "0.3.4"
Expand All @@ -27,7 +28,7 @@ serde_yaml = "0.9.19"
serde_with = { version = "3.3.0", features = ["chrono_0_4"] }
sqlx = { version = "0.7.2", features = [ "runtime-tokio-rustls", "postgres", "rust_decimal", "uuid", "chrono", "json" ] }
sqlxmq = { git = "https://github.com/GaloyMoney/sqlxmq", rev = "f03f73c", default-features = false, features = ["runtime-tokio-rustls"] }
sqlx-ledger = { version = "0.10.0", features = ["otel"] }
sqlx-ledger = { version = "0.11.1", features = ["otel"] }
tokio = { version = "1.29.1", features = ["full"] }
futures = "0.3.27"
async-trait = "0.1.67"
Expand Down
1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description = "The stablesats cli binary"
[dependencies]
shared = { path = "../shared", package = "stablesats-shared" }
price-server = { path = "../price-server" }
quotes-server = { path = "../quotes-server" }
user-trades = { path = "../user-trades" }
galoy-client = { path = "../galoy-client" }
okex-client = { path = "../okex-client" }
Expand Down
Loading