---
title: "Comment by Arnold Holm on \"How To Build Algorithmic Trading Systems in the US: A Developer's Guide to Forex APIs\" \" | Hashnode"
description: "Small API correction in the FIFO example: OANDA documents closing a trade as PUT /v3/accounts/{accountID}/trades/{tradeSpecifier}/close, rather than DELETE. The"
url: "https://hashnode.com/posts/how-to-build-algorithmic-trading-systems-in-the-us-a-developer-s-guide-to-forex-apis/6ab96169cb06fef56dfa960b/comment/6ad5c9305f815fb3752fa0b1"
---

[Discussion](https://hashnode.com/posts/how-to-build-algorithmic-trading-systems-in-the-us-a-developer-s-guide-to-forex-apis/6ab96169cb06fef56dfa960b)

Comment [How To Build Algorithmic Trading Systems in the US: A Developer's Guide to Forex APIs"](https://hashnode.com/posts/how-to-build-algorithmic-trading-systems-in-the-us-a-developer-s-guide-to-forex-apis/6ab96169cb06fef56dfa960b)

[Arnold Holm](https://hashnode.com/@stratcorealpha)

[Oct 19](https://hashnode.com/posts/how-to-build-algorithmic-trading-systems-in-the-us-a-developer-s-guide-to-forex-apis/6ab96169cb06fef56dfa960b/comment/6ad5c9305f815fb3752fa0b1)

Small API correction in the FIFO example: OANDA documents closing a trade as PUT /v3/accounts/{accountID}/trades/{tradeSpecifier}/close, rather than DELETE. The body uses units: "ALL" or a positive number of units. I would check the HTTP method before interpreting a rejection as an account-routing rule. The current reference is [developer.oanda.com/rest-live-v20/trade-ep](https://developer.oanda.com/rest-live-v20/trade-ep/) .
