Binance API 与 Google 脚本
Binance API with Google Script
我试图将我的交易历史从 Binance(使用签名端点安全)提取到 google 表格中,以便我可以使用 google 脚本保存我所有交易的记录。我被困在无法使用 api 键提取数据的地方。下面的片段是我对 Binance API 和 UrlFetchApp API.
的理解所能得到的。
var data = UrlFetchApp.fetch("https://api.binance.com/api/v3/myTrades", {headers : apiKey})
我也找到了this post。
您不能在 url 栏中添加 header。
编辑我看到您正在使用 UrlFetchApp。在这种情况下,正确的语法是
var headers = {'X-MBX-APIKEY': apiKey}
UrlFetchApp.fetch("https://api.binance.com/api/v3/myTrades", {'headers': headers})
我试图将我的交易历史从 Binance(使用签名端点安全)提取到 google 表格中,以便我可以使用 google 脚本保存我所有交易的记录。我被困在无法使用 api 键提取数据的地方。下面的片段是我对 Binance API 和 UrlFetchApp API.
的理解所能得到的。var data = UrlFetchApp.fetch("https://api.binance.com/api/v3/myTrades", {headers : apiKey})
我也找到了this post。
您不能在 url 栏中添加 header。
编辑我看到您正在使用 UrlFetchApp。在这种情况下,正确的语法是
var headers = {'X-MBX-APIKEY': apiKey}
UrlFetchApp.fetch("https://api.binance.com/api/v3/myTrades", {'headers': headers})