error = {
const order = {
size: `0.01`,
price: `0.100`,
side: `buy`,
product_id: `BTC-USD`
};
const response = await fetch(`https://api.gdax.com/orders`, {
method: 'POST',
body: JSON.stringify(order),
headers: new Headers({
'Content-Type': 'application/json'
})
});
return await response.json();
}