WordPress database error for query INSERT INTO

You’re inserting a float into market_cap, which is of bigint type. Doesn’t seem to be the thing that would cause the issue in this case, but you might want to use intval() instead of floatval() or change the field to one that’ll handle a float.