Skip to content

Commit

Permalink
chore(): Cleaning changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Jun 3, 2024
1 parent 01d6849 commit 6fdac98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/futures/submitLimitOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function submitFuturesOrder() {
const result = await gateRestClient.submitFuturesOrder({
settle: 'usdt',
contract: 'BTC_USDT',
size: 0.1, // positive for long, negative for short
size: 10, // positive for long, negative for short
price: '45000',
tif: 'gtc',
});
Expand Down
4 changes: 3 additions & 1 deletion examples/futures/submitMarketOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ async function submitFuturesOrder() {
const result = await gateRestClient.submitFuturesOrder({
settle: 'usdt',
contract: 'BTC_USDT',
size: 0.1, // positive for long, negative for short
size: 20, // positive for long, negative for short
price: '0',
tif: 'ioc',
});

console.log('Response: ', result);
Expand Down
2 changes: 1 addition & 1 deletion examples/spot/submitLimitOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function submitSpotOrder() {
currency_pair: 'BTC_USDT',
side: 'buy',
type: 'limit',
amount: '0.10',
amount: '0.001',
price: '45000',
time_in_force: 'gtc',
});
Expand Down

0 comments on commit 6fdac98

Please sign in to comment.