Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tolyo committed Jan 30, 2024
1 parent c00fe03 commit 05aa5f2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sql/0006_order_time_in_force.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- +goose Up
-- time constraints imposed on the order
CREATE TYPE order_time_in_force AS ENUM (
-- good-til-cancelled (GTC) orders require a specific cancelling order, which can persist infuncinitely
-- good-til-cancelled (GTC) orders require a specific cancelling order, which can persist infinitely
-- this is the default state for all orders
'GTC',

Expand Down
2 changes: 1 addition & 1 deletion sql/0090_trading_account_transfer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE trading_account_transfer (
amount INTEGER default 0 NOT NULL CHECK (amount > 0),
instrument_id BIGINT REFERENCES instrument(id) NOT NULL,
sender_trading_account_id BIGINT REFERENCES trading_account(id) NOT NULL,
benneficiary_trading_account_id BIGINT REFERENCES trading_account(id) NOT NULL,
beneficiary_trading_account_id BIGINT REFERENCES trading_account(id) NOT NULL,
details TEXT NOT NULL,
external_reference_number TEXT NULL,
-- Resulting debit balance amount
Expand Down
2 changes: 1 addition & 1 deletion sql/0160_create_payment_account.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN
RAISE EXCEPTION 'currency_instance_not_found';
END IF;

-- prevent dublicates
-- prevent duplicates
SELECT * FROM payment_account
WHERE currency_name = currency_instance.name
AND app_entity_id = app_entity_instance.id
Expand Down
2 changes: 1 addition & 1 deletion sql/0230_create_trade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ BEGIN
END)
);
ELSE
-- transfer instuments directly between two accounts
-- transfer instruments directly between two accounts
PERFORM create_trading_account_transfer(
(SELECT pub_id FROM trading_account WHERE app_entity_id = seller_app_entity_instance.id),
(SELECT pub_id FROM trading_account WHERE app_entity_id = buyer_app_entity_instance.id),
Expand Down
2 changes: 1 addition & 1 deletion sql/0280_get_trade_price.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ BEGIN
RETURN best_limit_price_var;
END IF;

-- incoming market matches an outstandling limit
-- incoming market matches an outstanding limit
IF maker_order_type_param = 'LIMIT'::order_type THEN
RETURN best_limit_price_var;
END IF;
Expand Down
2 changes: 1 addition & 1 deletion sql/0290_process_trade_order.sql
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ BEGIN
WHERE id = taker_trade_order_instance.id
INTO taker_trade_order_instance;

-- save orderbook_order
-- save order book_order
PERFORM create_book_order(
taker_trade_order_instance
);
Expand Down
2 changes: 1 addition & 1 deletion sql/0300_update_price_level.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BEGIN
INTO price_level_instance;

-- create new price level if not found
-- for decreatsing price level it will always be found
-- for decreasing price level it will always be found
IF NOT FOUND AND increasing_param = TRUE THEN
INSERT INTO price_level(
instrument_id,
Expand Down

0 comments on commit 05aa5f2

Please sign in to comment.