{"id":19836286,"url":"https://github.com/fooeybar/oandav20","last_synced_at":"2025-05-01T18:30:20.891Z","repository":{"id":65467228,"uuid":"298316106","full_name":"Fooeybar/oandav20","owner":"Fooeybar","description":"Oanda V20 functions","archived":false,"fork":false,"pushed_at":"2023-07-21T18:45:33.000Z","size":60,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T13:04:41.452Z","etag":null,"topics":["currency","forex","fxtrade","mt4","oanda","oanda-api-v20","oanda-api-wrapper","trading"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fooeybar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-24T15:14:15.000Z","updated_at":"2023-12-18T23:23:49.000Z","dependencies_parsed_at":"2023-01-25T09:00:15.267Z","dependency_job_id":null,"html_url":"https://github.com/Fooeybar/oandav20","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fooeybar%2Foandav20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fooeybar%2Foandav20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fooeybar%2Foandav20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fooeybar%2Foandav20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fooeybar","download_url":"https://codeload.github.com/Fooeybar/oandav20/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924542,"owners_count":21665987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["currency","forex","fxtrade","mt4","oanda","oanda-api-v20","oanda-api-wrapper","trading"],"created_at":"2024-11-12T12:10:50.414Z","updated_at":"2025-05-01T18:30:20.542Z","avatar_url":"https://github.com/Fooeybar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **OandaV20**\n\n![Oanda](https://img.shields.io/badge/oanda%20api-v20-blue)\n![npm](https://img.shields.io/npm/v/oandav20)\n![license](https://img.shields.io/badge/license-MIT-green)\nMade with ![linux](https://img.shields.io/badge/Linux-FCC624?logo=linux\u0026logoColor=black)\n\n## OandaV20 is a wrapper factory utilizing the [Oanda V20 API](https://developer.oanda.com/rest-live-v20/introduction/)\n\n\u003cbr/\u003e\n\n`npm i oandav20`\n\n`oandav20=require('oandav20')`\n\n`wrappers=oandav20(api,host,datetime)`\n\n\u003cbr/\u003e\n\nTo generate an `api` token, log in to the Account Management Portal and select Manage Api Access:\n- CA\n    - [Account Management Portal](https://fxtrade.oanda.ca/account/login)\n    - [Manage API Access](https://www.oanda.ca/account/tpa/personal_token)\n- US\n    - [Account Management Portal](https://fxtrade.oanda.com/account/login)\n    - [Manage API Access](https://www.oanda.com/account/tpa/personal_token)\n\n\u003c/br\u003e\n\nBy default the host is set for live accounts, `'api-fxtrade.oanda.com'`, and can be omitted\u003c/br\u003e\nFor practice accounts, input `'api-fxpractice.oanda.com'` as the host.\u003c/br\u003e\n\nDatime can either be `'RFC3339'` or `'UNIX'`; by default the datetime is set as `'RFC3339'`.\u003c/br\u003e\nPlease see the Oanda reference: [AcceptDatetimeFormat](https://developer.oanda.com/rest-live-v20/primitives-df/#AcceptDatetimeFormat).\n\n\u003c/br\u003e\n\n---\n\n- Accounts\n    - [getAccounts](#getaccounts)\n    - [getAccountsMeta](#getaccountsmeta)\n    - [getAccount](#getaccount)\n    - [getAccountSummary](#getaccountsummary)\n    - [getAccountInstruments](#getAccountInstruments)\n    - [getAccountChangesSinceTransaction](#getAccountChangesSinceTransaction)\n    - [setAccountConfiguration](#setAccountConfiguration)\n- Instrument\n    - [getInstrument](#getInstrument)\n    - [getOrderBook](#getOrderBook)\n    - [getPositionBook](#getPositionBook)\n- Positions\n    - [getPositions](#getPositions)\n    - [getPosition](#getPosition)\n    - [getOpenPositions](#getOpenPositions)\n    - [closePosition](#closePosition)\n- Transactions\n    - [getTransactions](#getTransactions)\n    - [getTransaction](#getTransaction)\n    - [getTransactionsByIdRange](#getTransactionsByIdRange)\n    - [getTransactionsSinceId](#getTransactionsSinceId)\n- Pricing\n    - [getInstrumentsPricing](#getInstrumentsPricing)\n- Trades\n    - [getTrades](#getTrades)\n    - [getOpenTrades](#getOpenTrades)\n    - [getClosedTrades](#getClosedTrades)\n    - [getCloseWhenTradeableTrades](#getCloseWhenTradeableTrades)\n    - [getAllTrades](#getAllTrades)\n    - [getAllOpenTrades](#getAllOpenTrades)\n    - [getTrade](#getTrade)\n    - [closeTrade](#closeTrade)\n    - [setTradeClientExtensions](#setTradeClientExtensions)\n    - [setTradeOrders](#setTradeOrders)\n- Orders\n    - [getOrders](#getOrders)\n    - [getPendingOrders](#getPendingOrders)\n    - [getFilledOrders](#getFilledOrders)\n    - [getTriggeredOrders](#getTriggeredOrders)\n    - [getCancelledOrders](#getCancelledOrders)\n    - [getAllPendingOrders](#getAllPendingOrders)\n    - [getAllOrders](#getAllOrders)\n    - [getOrder](#getOrder)\n    - [cancelOrder](#cancelOrder)\n    - [setOrderClientExtensions](#setOrderClientExtensions)\n    - [createMarketOrder](#createMarketOrder)\n    - [createLimitOrder](#createLimitOrder)\n    - [createStopOrder](#createStopOrder)\n    - [createMarketIfTouchedOrder](#createMarketIfTouchedOrder)\n    - [createTakeProfitOrder](#createTakeProfitOrder)\n    - [createStopLossOrder](#createStopLossOrder)\n    - [createGuaranteedStopLossOrder](#createGuaranteedStopLossOrder)\n    - [createTrailingStopLossOrder](#createTrailingStopLossOrder)\n    - [replaceWithMarketOrder](#replaceWithMarketOrder)\n    - [replaceWithLimitOrder](#replaceWithLimitOrder)\n    - [replaceWithStopOrder](#replaceWithStopOrder)\n    - [replaceWithMarketIfTouchedOrder](#replaceWithMarketIfTouchedOrder)\n    - [replaceWithTakeProfitOrder](#replaceWithTakeProfitOrder)\n    - [replaceWithStopLossOrder](#replaceWithStopLossOrder)\n    - [replaceWithGuaranteedStopLossOrder](#replaceWithGuaranteedStopLossOrder)\n    - [replaceWithTrailingStopLossOrder](#replaceWithTrailingStopLossOrder)\n\n\u003c/br\u003e\n\n---\n\n## Accounts\n\nOanda reference: [Account Endpoints](https://developer.oanda.com/rest-live-v20/account-ep/)\n\n### \u003cu\u003egetAccounts\u003c/u\u003e\n\n- Get list of accounts\n- `getAccounts(callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAccountsMeta\u003c/u\u003e\n\n- Get summary details of a list of accounts\n- `getAccountsMeta(callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAccount\u003c/u\u003e\n\n- Get full details of a single account\n- `getAccount(account,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetAccountSummary\u003c/u\u003e\n\n- Get summary details of a single account\n- `getAccountSummary(account,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetAccountInstruments\u003c/u\u003e\n\n- Get a list of tradeable instruments\n- `getAccountInstruments(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAccountChangesSinceTransaction\u003c/u\u003e\n\n- Get changes to account since a specific transaction id\n- `getAccountChangesSinceTransaction(account,transactionID,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003esetAccountConfiguration\u003c/u\u003e\n\n- Set the client-configurable portions on an account\n- `setAccountConfiguration(account,callback,options)`\n- Callback data: object `{}`\n\n\u003c/br\u003e\n\n---\n\n## Instrument\n\nOanda reference: [Instrument Endpoints](https://developer.oanda.com/rest-live-v20/instrument-ep/)\n\n### \u003cu\u003egetInstrument\u003c/u\u003e \n\n- Get candlestick data for an instrument\n- `getInstrument(instrument,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetOrderBook\u003c/u\u003e\n\n- Get order book data for an instrument\n- `getOrderBook(instrument,callback,options)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetPositionBook\u003c/u\u003e\n\n- Get position book data for an instrument\n- `getPositionBook(instrument,callback,options)`\n- Callback data: object `{}`\n\n\u003c/br\u003e\n\n---\n\n## Positions\n\nOanda reference: [Position Endpoints](https://developer.oanda.com/rest-live-v20/position-ep/)\n\n### \u003cu\u003egetPositions\u003c/u\u003e\n\n- List positions for the lifetime of an account\n- `getPositions(account,callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetPosition\u003c/u\u003e\n\n- Get details of an instrument position\n- `getPosition(account,instrument,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetOpenPositions\u003c/u\u003e\n\n- List positions with open trades\n- `getOpenPositions(account,callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003eclosePosition\u003c/u\u003e\n\n- Fully or partially close an open position\n- `closePosition(account,instrument,callback,options)`\n- Callback data: object `{}`\n\n\u003c/br\u003e\n\n---\n\n## Transactions\n\nOanda reference: [Transaction Endpoints](https://developer.oanda.com/rest-live-v20/transaction-ep/)\n\n### \u003cu\u003egetTransactions\u003c/u\u003e\n\n- Get a list of transaction pages\n- `getTransactions(account,callback,options)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetTransaction\u003c/u\u003e\n\n- Get details of a single transaction\n- `getTransaction(account,transactionID,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003egetTransactionsByIdRange\u003c/u\u003e\n\n- Get a list of transactions by transaction id range\n- `getTransactionsByIdRange(account,from,to,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetTransactionsSinceId\u003c/u\u003e\n\n- Get a list of transactions starting after a specified transaction id\n- `getTransactionsSinceId(account,id,callback,options)`\n- Callback data: array `[]`\n\n\u003c/br\u003e\n\n---\n\n## Pricing\n\nOanda reference: [Pricing Endpoints](https://developer.oanda.com/rest-live-v20/pricing-ep/)\n\n### \u003cu\u003egetInstrumentsPricing\u003c/u\u003e\n\n- Get pricing details for a list of instruments\n- `getInstrumentsPricing(account,instruments,callback,options)`\n- Callback data: array `[]`\n\n\u003c/br\u003e\n\n---\n\n## Trades\n\nOanda reference: [Trade Endpoints](https://developer.oanda.com/rest-live-v20/trade-ep/)\n\n### \u003cu\u003egetTrades\u003c/u\u003e\n\n- Get a list of trades by account\n- `getTrades(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetOpenTrades\u003c/u\u003e\n\n- Get a list of open trades by account\n- `getOpenTrades(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetClosedTrades\u003c/u\u003e\n\n- Get a list of closed trades by account\n- `getClosedTrades(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetCloseWhenTradeableTrades\u003c/u\u003e\n\n- Get a list of Close-when-tradeable trades by account\n- `getCloseWhenTradeableTrades(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAllTrades\u003c/u\u003e\n\n- Get a list of all trades by account\n- `getAllTrades(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAllOpenTrades\u003c/u\u003e\n\n- Get a list of all open trades by account\n- `getAllOpenTrades(account,callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetTrade\u003c/u\u003e\n\n- Get details of a single trade\n- `getTrade(account,tradeSpecifier,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003ecloseTrade\u003c/u\u003e\n\n- Fully or partially close an open trade\n- `closeTrade(account,tradeSpecifier,callback,options)`\n- Callback data: object `{}`\n\n### \u003cu\u003esetTradeClientExtensions\u003c/u\u003e\n\n- Set the client extensions for a trade\n- `setTradeClientExtensions(account,tradeSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference:\n    - [Client Extensions](https://developer.oanda.com/rest-live-v20/transaction-df/#ClientExtensions)\n\n### \u003cu\u003esetTradeOrders\u003c/u\u003e\n\n- Create, replace and cancel the orders for a trade\n- `setTradeOrders(account,tradeSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: \n    - [Take Profit Details](https://developer.oanda.com/rest-live-v20/transaction-df/#TakeProfitDetails)\n    - [Stop Loss Details](https://developer.oanda.com/rest-live-v20/transaction-df/#StopLossDetails)\n    - [Guaranteed Stop Loss Details](https://developer.oanda.com/rest-live-v20/transaction-df/#GuaranteedStopLossDetails)\n    - [Trailing Stop Loss Details](https://developer.oanda.com/rest-live-v20/transaction-df/#TrailingStopLossDetails)\n\n\u003c/br\u003e\n\n---\n\n## Orders\n\nOanda reference: [Order Endpoints](https://developer.oanda.com/rest-live-v20/order-ep/)\n\n### \u003cu\u003egetOrders\u003c/u\u003e\n\n- Get a list of orders\n- `getOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetPendingOrders\u003c/u\u003e\n\n- Get a list of pending orders\n- `getPendingOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetFilledOrders\u003c/u\u003e\n\n- Get a list of filled orders\n- `getFilledOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetTriggeredOrders\u003c/u\u003e\n\n- Get a list of triggered orders\n- `getTriggeredOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetCancelledOrders\u003c/u\u003e\n\n- Get a list of cancelled orders\n- `getCancelledOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAllPendingOrders\u003c/u\u003e\n\n- Get a list of all pending orders\n- `getAllPendingOrders(account,callback)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetAllOrders\u003c/u\u003e\n\n- Get a list of all orders\n- `getAllOrders(account,callback,options)`\n- Callback data: array `[]`\n\n### \u003cu\u003egetOrder\u003c/u\u003e\n\n- Get details of a single order\n- `getOrder(account,orderSpecifier,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003ecancelOrder\u003c/u\u003e\n\n- Cancel a pending order\n- `cancelOrder(account,orderSpecifier,callback)`\n- Callback data: object `{}`\n\n### \u003cu\u003esetOrderClientExtensions\u003c/u\u003e\n\n- Set the client extensions for an order\n- Set the client extensions for a trade when the order is filled\n- `setOrderClientExtensions(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Client Extensions](https://developer.oanda.com/rest-live-v20/transaction-df/#ClientExtensions)\n\n### \u003cu\u003ecreateMarketOrder\u003c/u\u003e\n\n- Create a market order\n- `createMarketOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#MarketOrderRequest)\n\n### \u003cu\u003ecreateLimitOrder\u003c/u\u003e\n\n- Create a limit order\n- `createLimitOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Limit Order Request](https://developer.oanda.com/rest-live-v20/order-df/#LimitOrderRequest)\n\n### \u003cu\u003ecreateStopOrder\u003c/u\u003e\n\n- Create a stop order\n- `createStopOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Stop Order Request](https://developer.oanda.com/rest-live-v20/order-df/#StopOrderRequest)\n\n### \u003cu\u003ecreateMarketIfTouchedOrder\u003c/u\u003e\n\n- Create a market-if-touched order\n- `createMarketIfTouchedOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market If Touched Order Request](https://developer.oanda.com/rest-live-v20/order-df/#MarketIfTouchedOrderRequest)\n\n### \u003cu\u003ecreateTakeProfitOrder\u003c/u\u003e\n\n- Create a take profit order\n- `createTakeProfitOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Take Profit Order Request](https://developer.oanda.com/rest-live-v20/order-df/#TakeProfitOrderRequest)\n\n### \u003cu\u003ecreateStopLossOrder\u003c/u\u003e\n\n- Create a stop loss order\n- `createStopLossOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Stop Loss Order Request](https://developer.oanda.com/rest-live-v20/order-df/#StopLossOrderRequest)\n\n### \u003cu\u003ecreateGuaranteedStopLossOrder\u003c/u\u003e\n\n- Create a guaranteed stop loss order\n- `createGuaranteedStopLossOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Guaranteed Stop Loss Order Request](https://developer.oanda.com/rest-live-v20/order-df/#GuaranteedStopLossOrderRequest)\n\n### \u003cu\u003ecreateTrailingStopLossOrder\u003c/u\u003e\n\n- Create a trailing stop loss order\n- `createTrailingStopLossOrder(account,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Trailing Stop Loss Order Request](https://developer.oanda.com/rest-live-v20/order-df/#TrailingStopLossOrderRequest)\n\n\n### \u003cu\u003ereplaceWithMarketOrder\u003c/u\u003e\n\n- Cancel an order and replace with a market order\n- `replaceWithMarketOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#MarketOrderRequest)\n\n### \u003cu\u003ereplaceWithLimitOrder\u003c/u\u003e\n\n- Cancel an order and replace with a limit order\n- `replaceWithLimitOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#LimitOrderRequest)\n\n### \u003cu\u003ereplaceWithStopOrder\u003c/u\u003e\n\n- Cancel an order and replace with a stop order\n- `replaceWithStopOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#StopOrderRequest)\n\n### \u003cu\u003ereplaceWithMarketIfTouchedOrder\u003c/u\u003e\n\n- Cancel an order and replace with a market-if-touched order\n- `replaceWithMarketIfTouchedOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#MarketIfTouchedOrderRequest)\n\n### \u003cu\u003ereplaceWithTakeProfitOrder\u003c/u\u003e\n\n- Cancel an order and replace with a take profit order\n- `replaceWithTakeProfitOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#TakeProfitOrderRequest)\n\n### \u003cu\u003ereplaceWithStopLossOrder\u003c/u\u003e\n\n- Cancel an order and replace with a stop loss order\n- `replaceWithStopLossOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#StopLossOrderRequest)\n\n### \u003cu\u003ereplaceWithGuaranteedStopLossOrder\u003c/u\u003e\n\n- Cancel an order and replace with a guaranteed stop loss order\n- `replaceWithGuaranteedStopLossOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#GuaranteedStopLossOrderRequest)\n\n### \u003cu\u003ereplaceWithTrailingStopLossOrder\u003c/u\u003e\n\n- Cancel an order and replace with a trailing stop loss order\n- `replaceWithTrailingStopLossOrder(account,orderSpecifier,callback,options)`\n- Callback data: object `{}`\n- ***Do not set, modify, or delete client extensions if your account is associated with MT4***\n- Oanda reference: [Market Order Request](https://developer.oanda.com/rest-live-v20/order-df/#TrailingStopLossOrderRequest)\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooeybar%2Foandav20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffooeybar%2Foandav20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooeybar%2Foandav20/lists"}